Renaming/log rotation of opmn default island application logs

Hi, I wonder if someone has already figured this out.
We are running 10.1.2 OAS and we would like to control the rotation of our instance applicaiton logs. Currently in $J2EE_HOME/opmn/logs we have files named "OC4J~<container name>~default_island~1" and we have to stop the OC4J container to control these. Placement and naming would be nice, but rotation is the most important.
Is there any way of adding something to opmn.conf to do this? Perhaps like the log-file tag that is used by the ipm.log e.g
<log-file path="$ORACLE_HOME\opmn\logs\ons.log" level="6" rotation-size="10000" rotation-hour="00"/>?
Regards, Aidan

for OPMN logs you can add this to the log part
<log-file path="/u09/app/oracle/product/ias903/opmn/logs/ipm.log" level="3" rotation-size="1024"/>
when it get 1024 kbits it will rotate.
THis apply for 902 and 904 OAS
Im not sure this work for 10.x.x
And I dont know a way to delete this files, but for sure you can create a script with cron who deletes the oldest ones.
Hope this Helps.
Regards

Similar Messages

  • Log entries in Service Consupmtion Layer Application Logs of Duet Enterpr

    Dear all,
    I need your inputs to solve the below mentioned issue,
    There is a communication developed between MS sharepoint and SAP.
    By using Mapper Classes for each and every operations the conversion of data format from Sharepoint to SAP and viceversa happens.
    We can see the message or error logs created during the conversion process using the T-code /iwfnd/view_log.
    But i want my custumized messages has to come in that log for that i used the following code in the mapper class Post method but still my logs are not coming in the T-code /iwfnd/view_log.
    DATA: lo_logger TYPE REF TO /iwfnd/cl_logger,"logger singleton
    lo_message_container TYPE REF TO /iwfnd/if_message_container,"message container
    lv_message TYPE bapi_msg,
    lv_log_material TYPE symsgv,
    lv_log_plant TYPE symsgv,
    lv_instance_counter TYPE i,
    lv_previous_pur_doc TYPE char10.
    CONSTANTS gc_log_agent_name TYPE /iwfnd/sup_iw_agent VALUE 'Dev Guide Purchase Req'.
    CONSTANTS gc_log_msg_id TYPE symsgid VALUE 'ZDUET_SCL_PR'.
    Get logger
    CALL METHOD /iwfnd/cl_logger=>get_logger
    RECEIVING
    ro_logger = lo_logger.
    initialize the post mapper log step
    lo_logger->log_step_init(
    EXPORTING iv_msg_number = 000 "Post Mapping started for Purchase Req Header Query
    iv_msg_id = gc_log_msg_id " message class
    iv_system_alias = iv_system_alias "Backend System Alias
    iv_agent = gc_log_agent_name "Dev Guide Purchase Req
    RECEIVING
    rv_msg_handle = lv_msg_handle ).
    lo_logger->log_message(
    EXPORTING
    iv_msg_type = /iwfnd/cl_logger=>info " Message Type
    iv_msg_id = gc_log_msg_id " Message Class
    iv_msg_number = 006 " Message Number
    iv_msg_v1 = lv_instance_counter " Message Variable
    iv_system_alias = iv_system_alias " System Alias
    iv_agent = gc_log_agent_name " IW Agent
    Else
    read through the input parameters for logging query parameters
    READ TABLE it_parameters INTO ls_parameters WITH KEY attr_name = 'MATERIAL'.
    lv_log_material = ls_parameters-low.
    READ TABLE it_parameters INTO ls_parameters WITH KEY attr_name = 'PLANT'.
    lv_log_plant = ls_parameters-low.
    get the message container to add messages
    lo_message_container = io_request_data->get_message_container( ).
    set the request result code to failed so a fault message can be created
    CALL METHOD io_request_data->set_result_code
    EXPORTING
    iv_result_code = /iwfnd/if_srd_request_context=>cs_result_code-failed_permanent.
    add the message to the message container, this will create an error log entry automatically
    CALL METHOD lo_message_container->add_message
    EXPORTING
    is_object_key = ls_key
    iv_msg_type = 'E' "Error
    iv_msg_id = gc_log_msg_id
    iv_msg_number = 004 "Query for Material &1 and Plant &2 returned no results.
    iv_msg_v1 = lv_log_material
    iv_msg_v2 = lv_log_plant
    iv_is_leading_message = abap_true
    iv_message_creator = gc_log_agent_name.
    Endif.
    end this post mapper log step
    lo_logger->log_step_completion( EXPORTING
    iv_msg_type = /iwfnd/cl_logger=>info
    iv_msg_id = gc_log_msg_id
    iv_msg_number = 002 "Post Mapping finished for Purchase Req Header Query
    iv_system_alias = iv_system_alias
    iv_agent = gc_log_agent_name
    iv_msg_handle = lv_msg_handle ).
    please let me know the answe for this issue.
    Many thanks in Advance,
    Harish

    Hi Girimurugan,
    I am currently working with SAP Gateway related stuffs and I need a clarification regarding the application log.
    Hope you are very busy and please clarify the doubts if you can spare few minutes towards this query.
    Appreciate your valuable advise towards this.
    Query:
    Can we log any of the different types of logs (I Info / W Warning / A Abort or Cancel / E Error ) into Application Log(/IWFND/APPS_LOG) of the Gateway system in a Hub deployment model ?
    How the logging can be achieved?
    What are the scenarios, wherein the Application logs are preferred?
    Also I have already raised a query in the SCN with this link: http://scn.sap.com/message/15477543. But could not get much details about it.
    Can you please clarify the same?
    Thanks & Regards,
    Mohamed Meeran

  • How to create application log in SAP

    According to my reqirement,I need to display messages in the application log whenever some updation is done.
    How to do create application log and display messages in the application log.

    Hello Smriti
    If you have interface IF_RECA_MESSAGE_LIST available on your system then I highly recommend to use as message collector.
    When you create an instance of the interface (CF_RECA_MESSAGE_LIST=>CREATE) you can provide an application log object.
    The collected messages can easily be saved as log.
    For an example have a look at my Wiki posting [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
    Regards
      Uwe

  • LMS3.2 Log rotation problem

    Hi,
    we use LMS3.2 (windows single-server)  for ~4500 devices and have a problem with log rotation.
    That's our configured log roation:
    Name with location
    Size (kb)
    Format
    No.of Backups
    1.
    D:\CSCOpx\log\dcrclient.log
    102400
    gz
    3
    2.
    D:\CSCOpx\log\ICServer.log
    102400
    gz
    3
    3.
    D:\CSCOpx\log\syslog.log
    1024000
    gz
    5
    The backup directory is the same as the usual log directory. The size of the 3 files is already bigger than the configured size in log roation, see:
    dcrclient.log     2,1 GB
    ICServer.log     1,1 GB
    syslog.log        9,7 GB
    After the log roation configuration we restarted the daemon manager, but it's not working. There are no backup files created and the 3 files are still growing.
    Regards
    Hendrik

    After you configure the log rotation you need and restart the daemons, you need to schedule the job. The schedule buttong is available under
    Common Services -> Server -> Admin -> Log Rotation.

  • 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

  • Error/Application Logs

    I have a scenario in which I have to display error logs when exception occurs.
    There is a transaction SLG1 where you can see all the application log for a particular process. Has anyone worked on calling these types of transactions to display error or application logs. If so, please throw some light on this.
    Thanks a lot
    Deno

    Hi Deno,
    If you want to see the error message in SLG1. Follow the following steps:
    1.  Use the FM BAL_LOG_CREATE to create the application log.
    2.  Use the FM BAL_LOG_MSG_ADD to add the message to the application log.
    3. Save the application log using FM BAL_DB_SAVE.
    Now you can see your error message in the SLG1 transaction.
    <b>Reward points if it helps.</b>

  • How to use Application log (slg0 & slg1)

    Hi all,
    Can u please give me some hints to utilize Application log?
    Hope you will help me.
    Thanq in advance,
    Bye.

    hi John,
       Check these FM's out
    BAL_GLB_SEARCH_LOG            
    BAL_LOG_CREATE                
    BAL_LOG_EXC_ADD               
    BAL_LOG_HDR_CHANGE            
    BAL_LOG_HDR_READ              
    BAL_LOG_MSG_ADD               
    BAL_LOG_MSG_ADD_FREE_TEXT     
    BAL_LOG_MSG_CHANGE            
    BAL_LOG_MSG_CUMULATE          
    BAL_LOG_MSG_DELETE            
    BAL_LOG_MSG_DELETE_ALL        
    BAL_LOG_MSG_READ              
    BAL_LOG_REFRESH               
    SBAL_DETAIL                    Application Log: Display: Detail Screens                              
    BAL_DSP_LOG_PARAMETERS         Application Log: Display: Display log header parameter set            
    BAL_DSP_LOG_TECHNICAL_DATA     Application Log: Display: Display log header technical data                                                                               
    SBAL_DISPLAY                   Application Log: Display Log                                          
    BAL_DSP_LOG_DISPLAY            Application Log: Fullscreen log output                                
    BAL_DSP_LOG_PRINT              Application Log: Print log                                                                               
    SBAL_PROFILE                   Application Log: Display Profile                                      
    BAL_DSP_PROFILE_SINGLE_LOG_GET Application Log: Display profile: Standard profile (SLG1) for one log                                                                               
    SBAL_SERVICE                   Application Log: Service Functions                                    
    BAL_LOG_HDR_CHECK              Application Log: Log: Header data: Check                              
    BAL_LOG_MSG_CHECK              Application Log: Log: Message: Check                                                                               
    SBAL_TOOLBOX                   Application Log: Toolbox                                              
    BAL_DB_LOGNUMBER_GET           Application Log: Database: Get internal log number from number range  
    BAL_LOG_DELETE                 Application Log: Log: Delete log (from DB also at save)               
    BAL_LOG_EXIST                  Application Log: Log: Check existence (in memory)                     
    BAL_LOG_MSG_EXIST              Application Log: Log: Message: Check existence (in memory)            
    BAL_LOG_MSG_REPLACE            Application Log: Log: Message: Replace last                           
    BAL_STATISTICS_LOG_GET                                                                               
    BAL_STATISTICS_LOG_SET                                                                               
    Regards,
    Santosh
    Note: Reward Points if helpful

  • Application Log. Report

    Hi All,
    My task is. Develop a report, in background  it has to create a log with all details in report.
    ie online  display in screen, background put it in log file.
    How to create application log  with report informationt.
    Thanks,
    Balamurugan.R

    please follow the below stpes.
    you can create object and subobject in SLGO tcode
    you can able to see the log in SLG1 tcode 
    DATA: lt_obj_long_no TYPE STANDARD TABLE OF balnri,
                 lt_messages TYPE STANDARD TABLE OF balmi,
                 lwa_message TYPE balmi.
           REFRESH lt_messages.
           lwa_message-msgty  = 'E'.
           lwa_message-msgid  = 'YCA_DATA_MIGRATION'.
           lwa_message-msgno  = '110'.
           lwa_message-msgv1   = wa_as91-aibn1.
           lwa_message-msgv2   = wa_as91-aibn2.
           APPEND lwa_message TO lt_messages.
           CLEAR lwa_message.
           CALL FUNCTION 'APPL_LOG_WRITE_MESSAGES'
             EXPORTING
               object              = 'YFICC006'
               subobject           = 'YFICC006'
               update_or_insert    = 'I'
             TABLES
               messages            = lt_messages
             EXCEPTIONS
               object_not_found    = 1
               subobject_not_found = 2
               OTHERS              = 3.
           IF sy-subrc <> 0.
             MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
           ENDIF.
           CALL FUNCTION 'APPL_LOG_WRITE_DB'
             EXPORTING
               object                = 'YFICC006'
               subobject             = 'YFICC006'
             TABLES
               object_with_lognumber = lt_obj_long_no
             EXCEPTIONS
               object_not_found      = 1
               subobject_not_found   = 2
               internal_error        = 3
               OTHERS                = 4.
           IF sy-subrc <> 0.
             MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
           ENDIF.

  • Creating Application Log

    HI SAP Gurus,
    Please let me know the purpose of application log and the creation of it.
    I am strugling with one standard report which have a BADI to it. 
    It is equipement status report(IW38).
    In the production we find some equipments which are not serviceable even all the orders are done.
    I need to find the reason for that.  So, i was sugested to create application logs. But i dont know about it.  Please let me know.
    Will be rewarded with points.
    Regards,
    Kishore

    Hi
    Look at the Tcode <b>SLG1</b> which gives the application log
    You have to create a Object, Subobject for your application to see your own tcode log
    and you can use the following fun modules in your code as per the requirement
    SBAL                           Application Log: Collect Messages                             
    BAL_GLB_SEARCH_LOG             Application Log: Global: Find log(s) (in memory)              
    BAL_GLB_SEARCH_MSG             Application Log: Global: Find message(s) (in memory)          
    BAL_LOG_CREATE                 Application Log: Log: Create with Header Data                 
    BAL_LOG_EXCEPTION_ADD          Application Log: Log: Add Exception                           
    BAL_LOG_EXCEPTION_CHANGE       Application Log: Log: Exception: Change                       
    BAL_LOG_EXCEPTION_DELETE       Application Log: Log: Delete Exception                        
    BAL_LOG_EXCEPTION_READ         Application Log: Log: Exception: Read Data and Texts          
    BAL_LOG_EXC_ADD                Application Log: Log: Exception: Add                          
    BAL_LOG_HDR_CHANGE             Application Log: Log: Header data: Change                     
    BAL_LOG_HDR_READ               Application Log: Log: Header Data: Read Data and Texts        
    BAL_LOG_MSG_ADD                Application Log: Log: Message: Add                            
    BAL_LOG_MSG_ADD_FREE_TEXT      Application Log: Log: Message: Insert as free text            
    BAL_LOG_MSG_CHANGE             Application Log: Log: Message: Change                         
    BAL_LOG_MSG_CUMULATE           Application Log: Log: Message: Add Cumulatively               
    BAL_LOG_MSG_DELETE             Application Log: Log: Message: Delete                         
    BAL_LOG_MSG_DELETE_ALL         Application Log: Log: Message: Delete All Messages            
    BAL_LOG_MSG_READ               Application Log: Log: Message: Read data and texts            
    BAL_LOG_REFRESH                Application Log: Log: Delete log from memory                                                                               
    SBAL_DB                        Application Log: Database Interface                         
    BAL_ARCHIVE_LOAD               Application Log: Archive: Load Logs                         
    BAL_ARCHIVE_SEARCH                                                                         
    BAL_DB_DELETE                  Application Log: Database: Delete Logs from Database        
    BAL_DB_LOAD                    Application Log: Database: Load Logs                        
    BAL_DB_SAVE                    Application Log: Database: Save logs                        
    BAL_DB_SEARCH                  Application Log: Database: Find Logs         
    Regards
    Anji

  • Can I rotate application log in OC4J_Portal_default_island_1?

    My application.log file in %oracle_home%\j2ee\oc4j_portal\application-deployments\portal\oc4j_portal_default_island_1 grows quickly. Can I configure it to rotate every day or when it reaches a certain size? If yes, how?
    TIA
    Edited by: Angrydot on Aug 25, 2008 9:51 PM - what happens if I edit an old post in the new forum?
    Edited by: Angrydot on Aug 25, 2008 9:52 PM - nothing

    To rotate the OC4J log files under $ORACLE_HOME/opmn/logs, there are few parameters you can modify that are not documented in Oracle 9.0.4/10.1.2 documentation.
    [New JVM parameters]
    "stdstream.filesize"
    Max file size limit of each archive. Unit is megabyte.
    "stdstream.filenumber"
    Max number of files that oc4j can keep as archives. The oldest file will be automatically deleted if the limit is exceeded.
    [Usage]
    ex 1: rotate stdout/stderr when the file size is reached to 2.5M byte.
    java -Dstdstream.filesize=2.5 -jar oc4j.jar -out std.out -err std.err
    OraHome\opmn\conf\opmn.xml
    In order to get these parameters in opmn.xml you need to define it as follows:
    <category id="start-parameters">
    <data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless =true -Dstdstream.filesize=0.2 -Dstdstream.filenumber=5"/>
    <data id="oc4j-options" value="-out std.out -err std.err"/>
    </category>
    The new log files will be created under:$ORACLE_HOME\j2ee\home\home_default_island_1\
    The file naming will be like:
    std_2006_02_22_14_01_17.out
    std_2006_02_22_14_16_25.out
    Important notes:
    1. Backup opmn.xml file before any modification.
    2. Modify opmn.xml file to specify stdstream.filesize and stdstream.filenumber. See the example above.
    3. Test and validate this solution in your test system first before implementing in Production.

  • Rotating the default-web-access.log log

    Can the default-web-access.log file be rotated with ODL?

    Yes, at least since on 10g Release 2 (10.1.2) , see the <odl-access-log> secction on:
    Oracle® Application Server Containers for J2EE User's Guide
    10g Release 2 (10.1.2) - 3 Advanced Configuration and Development
    http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14011/advanced.htm
    Bruno Antunes,
    Java Software Engineer

  • OPMN system.out and system.err log rotation?

    I would like to rotate the log generated by OPMN by default for system.out & system.err, which is named:
    OC4J~APPNAME~home~default_island~1
    I see the entries in the opmn.xml file for the ons.log and ipm.log which ARE being rotated properly. I've read that you can redefine the log file for system.out and system.err, but can't find any about rotating these logs.
    Does anyone have any info about this topic?

    If anyone's curious and is trying to do this themselves, I eventually asked Oracle, who stated it could not be done.

  • OPMN Log rotation 10.1.2

    How to rotate the OPMN logs in the 10.1.2 environment
    Here is my environment
    Oracle Application Server: 10.1.2
    Sun Soalris 10
    Infrastructure has the following
    %ORACLE_HOME/opmn/logs
    dcm-daemon~dcm-daemon~dcm~1
    HTTP_Server~1
    ipm.log
    OC4J~OC4J_SECURITY~default_island~1
    OID
    OID~1
    OIDCTL.log
    ons.log
    opmn.log
    Any document which gives step by step implementation of log rotation by size and time
    Is ODL is supported for OPMN log rotation? if then how to do it ?

    The document looking like to rotate the ons.log ipm.log using the configuration change in the opmn.xml file as the
    <log-file path="path" level="level" rotation-size="kBytes" rotation-hour="HOD"/>
    Here are my questions
    1. How can give the rotation-hour (is it timestamp value like 200808020830 yeardaymonthhoursminutes )
    2. Is it going to change the file name like ons200808020830.log ipm200808020830.log , if yes a) ons.log ipm.log files will exist inclusing the above files or not
    3. what about the other log files rotation in the opmn/log directory like (in my previous posting)
    dcm-daemon~dcm-daemon~dcm~1
    HTTP_Server~1
    ipm.log
    OC4J~OC4J_SECURITY~default_island~1
    OID~1
    OIDCTL.log
    Could you please answer my questions and also give me some sugestion to implement OPMN log rotation.

  • 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-

  • OC4J- Default Island in Oracle application forms reports services

    Hi,
    Please can any one answer this question.
    How many cun current sessions will support in OC4J default island in oracle forms & reports services?
    Regards,
    Latha

    Yes, by using SSO you can achieve it. The partner applications should be registered with SSO.
    Method will depend on your version of OAS for the two applications.

Maybe you are looking for

  • Function module import parameter....Urgent

    Hi Experts, I am using User Exit M06E0004 which is using <b>FM EXIT_SAPLEBND_002</b>. It has 4 inport parameters I_CEKKO             LIKE CEKKO           IT_BEKPO            TYPE MMPUR_BEKPO     IT_BEKET            TYPE MMPUR_BEKET     IT_EKKNU      

  • Screenshots no longer working (only grey) in 10.6

    I had a look at some other posts about this but did not find anybody with this problem. I recently upgraded to 10.6 and since than screenshots are a bit of a pain. The old keyboard commands still work but if I try to open the screenshot it is grey. I

  • Windows 7, Photoshop CS6 or CC Dialog boxes Messed up bad!

    Hi Guys, I'm running a PC with Windows 7 and a Nvidia Quadro 600 Card. I have tried solving this one on and off for many months with no luck. Updating the drivers on the GPU etc. Clean installing. It seems to affect only photoshop dialog boxes. But o

  • Log for the Closing Period & Opening Period -Urgent

    Hello, While Opening & Closing Periods in MM where will be the logs saved. Thanx & Regards, Kumar Rayudu

  • Error When Starting Coldfusion

    I just installed Coldfusion, I don't think I configured my external APACHE webserver correctly because I cannot open a cmf (administration) file. When I try to go to the admin login it just asks me to download the login.cfm file rather than actually