How to setup rotation for application.log?

In order to get the Portal Performance Statistics running, we need to retrieve the page views from file application.log in directory <ORAHOME>\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1.
This file continues to grow and therefore we want to set up rotation, in order to get one file per day.
We are following note 264373.1 and have read all documents and manuals about logging, but can not figure out how to manage this.
Can anyone help us? We are working with 9.0.4.1.
For Oracle employees: see also tar 4193327.994.

I can't speak for how portal uses the log file, but in general, the way you do it for a deployed J2EE application on OC4J is as follows.
Deploy the application EAR file. Lets say the app is called Test.
In the j2ee/home/application-deployments/Test directory, a file will be created called orion-application.xml.
If you look in this file, you will see an entry which looks like
<log>
<file path="application.log" />
</log>
This defines the log file for this application.
Now if you want to setup log file rotation for this app, edit the orion-application.xml file and firstly, comment out the above.
Note: you can leave the log tag in if you wish, but you'll get double log messages. Remove it if you do this in production and are trying to conserve space ;-).
Then add in the below to setup ODL based logging for this application:
<log>
<odl path="logdir"
max-file-size="1000" max-directory-size="10000" />
</log>
What this does it to tell OC4J to output the log messages using it's ODL format model, to create a directory called logdir (in the current directory) and then to start writing to log files called log.xml in that directory.
The max file size of log.xml is 1000KB, and the max directory size of the new logdir directory will be 10MB.
The ODL logging system will manage the log files in this directory according to these constraints -- when a log file gets bigger than max-file-size it gets archived as logN.xml. When the overall directory size gets bigger than the max-directory-size specified, the oldest log file from the list is removed so that the max directory size is honoured.
I don't think we can specify a rollover period (ie one day) with ODL. I'm pretty sure it's just file size based only.
I think the above should apply to Portal since it runs on OC4J. In which case, you'd change the orion-application.zml in the <ORAHOME>\j2ee\OC4J_Portal\application-deployments\portal directory instead of j2ee/home/application-deployments/<app-name>.
However, I can't speak officially for Portal since I don't work with that product. From a pure OC4J perspective the above holds true and works.
cheers
-steve-

Similar Messages

  • How to fill setup table for Application 18 Customer services

    Hi,
    How can I fill setup table for application 18.
    Regards,
    ST

    Hi,
    To fill LIS, first set your LIS to update. use the central Tcode OMO1(for SD), OMO2(for MM) or OMO3(for other logistics) or you can set it in MC24 also(activate button).
    SBIW -> settings for application specific datasources -> Logistics -> managing transfer information structures ->.... -> statistical setup Sales. (Application component 17 >transaction OLIIBW,Application component 18> OLISBW )-->select the relevent one whether sales/billings/deliveries etc in the pop-up. enter your LIS, give a name to job and execute.
    Also pls chk this;
    Re: query on setup table filling
    Regards
    CSM Reddy

  • How to setup HFM Task Audit logs?

    How to setup HFM Task Audit logs on 9.3.1. I have been asked to provide this information from the Auditing company.
    Any help would be appreciated.
    Thanks,
    Ragu

    The task audit is a feature which is always on -- it is not configurable. It tracks most common user tasks in HFM, but not everything.
    The feature is accessible from the web, but only by users who are part of the application administrators group as configured in the EPM Configurator utility. This is not the same as having the application administrator role. Whoever installed and configured HFM can show you the configuration of this option, in terms of which user group can access Task Audit, Data Audit, System Messages from the web client.
    Data Audit is an entirely independent feature, configured by enabling at the account and scenario level from within metadata. Once configured, users in the Application Administrators group (as above) can view this report from the web.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to setup variants for webdynpro report in ABAP? Help!

    Hi Experts,
       I have a webdynpro for ABAP report with selection screen. 
       How to setup variants for webdynpro report in ABAP?
    Thanks
    Gopal

    Hi Gopal,
      There is no concept of Variant in Webdynpro ABAP. But in our project we have some tool to do that. Its not release to the client I think. In my scenarieo, We create the Screen variant and program name will be supplied to the tool that will generate the ouput in PDF and Selection screen in One view. But the same is not avilable .
    If you want the same concept in Webdynpro ABAP, you need to go for Dynamic programming only. This is the only option is avilable.
    Warm Regards,
    Vijay

  • How to view the Syslog Application logs in CLI

    On CallManager 6.1.x, how do we view the Application Logs in the Syslog Viewer using the CLI?  I know how to view the traces but not the Application or System logs in CLI.  My RTMT to a customer is being blocked so I need to use the CLI.  Thanks.

    Event Viewer-Application Log = /var/log/active/syslog/CiscoSyslog.*
    Event Viewer-System Log = /var/log/active/syslog/messages.*
    From CLI:
    To list application logs:
    file list activelog syslog/CiscoSyslog.* date detail
    To list system logs:
    file list activelog syslog/messages.* date detail
    To view a specific application log:
    file view activelog syslog/CiscoSyslog.1
    To view a specific system log:
    file view activelog syslog/messages.1
    http://htluo.blogspot.com
    Michael

  • How to setup the client application for the RMI?

    Question:
    I write a short program of RMI It contain server and client
    if server and client are run on localhost they are running ok
    but run client application on remote machine it occure issuses.
    How to setup the client on remote machine?

    hello Dhanraj K, for gmail accounts there shouldn't be much manual configuration required. please try to set it up like described in [[Add an email account to the Mail app in Firefox OS]]

  • How to setup the email application for my gmail account in firefox os.. I need the configuration steps for gmail.

    I don't know how to setup the email account sync in firefox os.. can anyone explain the steps to be followed for setting up a gmail account...

    hello Dhanraj K, for gmail accounts there shouldn't be much manual configuration required. please try to set it up like described in [[Add an email account to the Mail app in Firefox OS]]

  • How to get event's application log handle for application log mssg

    Hi,
    I would like to get the application log handle for an event call, can someone pls help.
    Rgds.

    Hello wong ,
    Did u get the solution for this respective query.
    if so can u please send it to me also .
    i am struck over with the similar problem.
    Thanks,
    pavankumar.

  • Create Object and Subject for Application Log

    Hello Experts,
    Could anyone tell me how to create the Z Object and subobject for the Application Log.
    ie) <b>BALOBJ_D & BALSUBOBJ</b>
    Could you please tell me the Tcode for that.
    Since I have to save the application in the new object so that it can be displayed using this Key.
    Thanks & Regards,
    Vasanth

    Hello Vasanth
    The transaction is SLG0 (Object Maintenance).
    Regards
       Uwe

  • How to setup SSL for Business Objects

    Dear colleagues,
    can you help with the following issue: we want to setup SSL for BO and have dedicted information for the implementation of certificates and know that sapcryptolib needs to be used. But there is no information provided how to inform BO about the location of the sapcryptolib. Can anybody provide a hint for this? Many thanks in advance.
    Best regards,
          Detlef Kreiss (HP Outsourcing services)

    Detlef,
    The SAP Crypto library is not required if you are simply trying to secure the webserver using SSL.
    Securing IIS (.NET infoview, or IIS fronting a Java application server) is pretty simple as you would follow the same steps to SSL secure it as you would any IIS server (there is an add certificate button in the properties of IIS).
    If you are using a Java Application server solely and want to SSL secure that, there is an SAP note to describe the steps required to add an SSL certificate to the (Tomcat) Java keystore.
    Please see:
    1299147 - How to setup SSL on Tomcat in Business Objects Enterprise XI 3.1?
    https://bosap-support.wdf.sap.corp/sap/support/notes/print/1299147
    -Brian

  • Rotate OC4J_Portal application log?

    How can I rotate the OC4J_PORTAL application.log file that resides in %oracle_home%\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1 without stopping the Portal?

    http://www.oracle.com/technology/products/ias/portal/html/admin_monitor_modplsql.htm#maintenance

  • Transaction for application log

    Using IDOCS.  One has errored but cannot get into application log as pop up not appearing (memory issue or something) for me to double click the log number and go into the application log to view it.  Does anyone know the transaction or menu path to access the application log direct so I can see what the error is about?
    Many thanks
    Larissa

    Hi,
    USE SLG1 Transaction.
    Thanks,
    Naga

  • How to setup QoS for IP/Mac Address WRVS4400N

    I need some help setting up QoS for two Cisco/Linksys devivces on my network. 
    Network devices are Comcast SB6120 modem into WRVS4400n (v2.0.2.1 firmware) that divides into one 24 port gigabit Netgear unmanaged switch, 1 port into AT&T Cisco Microcell, 1 port to HP Officejet 7700 wired printer.  Unmanaged switch has approx 10 devices attached (including another 8 port unmanaged gigabit switch).  3 static leases are defined for the network for three devices (HP OJ 7700 printer, Cisco/Linksys PAP2 VOIP adapter, windows home server v1.  DHCP is handled by WRVS4400n.  Comcast service provides 12mbps of service upstream, 4mbps downstream.
    Need to setup QoS for AT&T Microcell and PAP2 VOIP adapter.  The real issue that I can't figure out how to configure is IP based priority access.  I can do rate control for an IP address but can't figure out how to specify priority control for an IP.
    Here are my the current config questions:
    1.  Bandwidth management page:  For the microcell device plugged into port 1, do i set the default CoS to 4 or 1?
    2.  Bandwidth management page:  Should the bandwidth management type be set to priority?  I assume yes since I need to define the UDP/TCP ports for priority.  The major issues here are
    a) one of the ports the Microcell uses is secure https (TCP 443) which is could also be used by any other internet device. 
    b) can't specify priority for the PAP2, since it's behind the unmanaged 24 port switch
    3.  QoS setup page:  Do I need just 2 queues (one for the port ID for the Microcell and one for the IP address of the Linksys adapter)?
    4.  QoS setup page:  I assume I need to define DSCP for the unmanaged switch but not sure how to tie a queue to an IP address
    4.  QoS setup page:  Shoud priority 0 be set for the most important queue (microcell) and the priority 1 CoS be for the VOIP adapter?  Again, not sure about how to define priority by IP address.
    5.  DSCP setup page:  As far as I can find, there's no documentation on how to setup this page.   

    That's what I do. I keep it simple, one calendar, one set of contacts.
    iCloud is really the simplest way to go, as it will sync your (eventual) single Contacts and Calendar across all your devices.
    I would:
    Figure out which single calendar (in Calendar.app) and contacts (in Contacts.app) that you want to keep.
    I'd make a backup of each one. For example,
    in Contacts, File > Export... > Contacts Archive...
    in Calendar, File > Export... > Calendar Archive...
    Make a backup of the other calendar events and contacts that you want to save.
    delete all the contacts and calendars from your phones and your iPad.
    add the contacts and events from the backups to the single calendar in Calendar.app and your contacts in Contacts.app on your iMac. There is probably some way to export the contacts and events you are adding, and then combine them, but you could also just add them manually.
    Then when you configure all your devices for iCloud, they will be all synced automatically.
    Message was edited by: arthur

  • How to copy links for applications

    How do I copy links for applications? I do this and nothing happens. Where does it go❓      

    What you want to do is already possible to do. If you find an app while surfing the web that you are considering downloading, and you tap on the link for that app, it should open in the App Store. You can then add it to your Wish List in the App Store and download it later if you so desire. You can build a whole list of apps for downloading later.
    When the app description window is open in the App Store, tap the action icon - the upward pointing arrow inside the square - and select Add to Wish List.  You can come backs later to the wish list, select the app and download it when you are ready. To access the Wish List, tap the 3 horizontal lines next to the search field in the upper right corner of the App Store.
    Just keep keep adding apps to the wish list as you find ones that you like.

  • Calling SLG1 for Application log creation

    Hi All,
    I have a requirement for writing logs in SLG1 transaction. I embedded the logic for creating log in a method of a class. The method is getting called in CRM inbound proxy where I would need to make mutiple calls to this log. If I use a call more than one time, I am getting only the log for the first call. The second and the rest of the calls are not throwing any message in SLG1 but shown as greyed out. Could we not call the log SLG1 more than one time in the same application?
    Any ideas would be appreciated.
    Thanks
    Anand

    Hi,
    did you have a look at my weblog:
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for

  • IPod Touch 4g upgraded to iOS 5; now 80% of music won't play (even in iTunes)

    I saw a lot of related questions, but not this issue:  after updating to iOS 5 on my Touch 4g, 64GB.  most of the music simply won't play.  No error messages, the albums and songs still show, but when pushing play, nothing happens.  The capacity bar

  • WSA wsdl-gen won't get a custom WSDL

    Hi, I'm trying to make Web Service Assembler in OC4J 10.1.2 get my custom WSDL file, but it won't no matter what i change. This is the config file i'm using now: <web-service>      <display-name>Web Service Demo</display-name>      <description>Web S

  • XI question on two different sender

    Hello all,   I want XI to pick up two files and send them to two different receivers based on some conditions. This condition will be done via message mapping. Is it possible to do it without BPM? If we can do it with BPM how? I don't want to use tra

  • Macbook Pro Late 2011 Grey screen

    Hi pals, I have a Macbook Pro Late 2011 since 2012. I've upgraded it to Yosemite, thing that I've to do from scratch because it worked very slow, but that's not the deal here. The other day I started it, and it simply didn't do it. I've tried everyth

  • Projected available balance from Horizontal plan ASCP

    Which table and column stores the projected available balance details of ASCP horizontal plan Details: I can see the PAB (projected available balance) for a item in Horizontal plan in ASCP. which table and column stores this data.