Change beasvc.exe default stdout log rotation parameters in WLS10.0

Weblogic Server 10.0:
I'm trying to change default log rotation parameters for weblogic server service as suggested here:
http://edocs.bea.com/wls/docs100/server_start/winservice.html#wp1193277
my installsvc.cmd contains:
set ROTATION_TYPE = TIME
set TIME_START_DATE = Jun 12 2008 15:07:00
set TIME_INTERVAL_MINS = 3
set STD_LOG=C:\logs\stdout.log
beasvc.exe -install.... -log:"%STD_LOG%"
This is the sniplet from the stdout.log:
[Thu Jun 12 15:45:09 2008] [initLog] initializing logger
[Thu Jun 12 15:45:09 2008] [E] [initLog] No 'ROTATION_TYPE' header found. 'TIME' based rotation will be used by default.
[Thu Jun 12 15:45:09 2008] [E] [initLog] No 'TIME_START_DATE' header found or value is invalid. Rotation will take place every 24 hours beginning today at 23:59:59
[Thu Jun 12 15:45:09 2008] [E] [initLog] No 'TIME_INTERVAL_MINS' header found. Using the default value of 24 hours.
[Thu Jun 12 15:45:09 2008] [I] [initLog] TIME based log rotation is ON
[Thu Jun 12 15:45:09 2008] [I] [trigger] First rotation due in 29690 secs
[Thu Jun 12 15:45:09 2008] [I] [ServiceStart] console allocation successful. THREAD_DUMP redirection enabled
[Thu Jun 12 15:45:09 2008] [I] [ServiceStart] About to execute CreateThread()
the service then starts ok and works with default settings, but that's not what I'm looking for...
any ideas are welcome ;)
thanks!

yes, the parameters are set when service is being installed. Also, I can see in the log when changes are made to the parameters and service reinstalled.

Similar Messages

  • Default apache log rotation

    Hello,
    I have leopard server, and want to know where is the apache log rotation is configured. I did not configure anything in the per-site log rotation in server admin, but the server is rotating the log anyway.
    Thanks

    Well, I just saw that there is an /etc/newsyslog.conf setting, but have not worked with it myself. man newsyslog.conf provides more info.

  • LDAP Log Rotation

    Does anybody know how to change the time of the log rotation for access and error logs. Currently, the logs rotate at 12:50 in the afternoon. I would like to change that. I have looked at the admin console and documentation and there is nothing on changing the time. You can change the size and interval. I assume that it does it at 12:50 because that's when the database was created.

    The time (12:50) is the time you started the server. Unfortunately, iDS will only rotate your logs on this time. One solution is to start your server on another time. Another solution is to manually rotate your logs using a script. But, you need to shutdown your server to manually rotate logfiles.

  • Change the database log on parameters in the run time with CR10 Delphi2007?

    Hi,
    I'm using crystal report 10 and Crystal VCL for Delphi. How can I change the database log on parameters in the run time?

    You have to use the ConnectBuffer. See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note for details.
    Also, consider searching the notes database:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    The search; VCL database crystal, returns a number of notes that may be of use.
    Ludek

  • Rotate Log Files - stdout.log & stderr.log

    Hi Folks,
    Whats the best way to rotate stdout.log & stderr.log.
    I am assuming that rolling of these files can not be configured using felix (please correct me if I am mistaken)
    Please advice!
    Thanks,
    Adnan

    Hi Adnan,
    There is currently no way to rotate stdout.log and stderr.log. Therefore, if you want to preserve the stdout.log and stderr.log so that they do not get truncated after restart, add the following commands before any other command in the start script.
    # Move stdout.log and stderr.log
    mv ../logs/stdout.log ../logs/stdout_$(date +%Y-%m-%d-%H%M).log
    mv ../logs/stderr.log ../logs/stderr_$(date +%Y-%m-%d-%H%M).log
    Another possible way is to disable the stdout.log and stderr.log entirely and instead output the information to the startup.log. Then you can rotate the startup.log instead.
    a) To disable the stderr.log and stdout.log, i guess you can add these lines to your crx-quickstart/server/start script:
    QUICKSTART_OPTS='-verbose -nobrowser'
    export QUICKSTART_OPTS
    b) To configure the path of the startup.log, you can add this to the start script as well (replace /path/to/startup.log with the path you would like the log to be written to instead):
    CQ_LOG=/path/to/startup.log
    export CQ_LOG
    c) Then after doing this, there is a side effect that crx output will go to the startup.log as well. to fix this, do the following:
        1) Go to crx-quickstart/server/runtime/0/_crx/log4j.xml
        2) Comment out this element <appender-ref ref="console" /> from log4j.xml
    <root>
    <level value="info" />
    <!-- appender-ref ref="console" /-->
    <appender-ref ref="error" />
    </root>
    d) Also, now you would like to rotate the startup.log file:
    "The file startup.log logs messages while the Servlet Engine starts. It is usually small, and you cannot configure it."
    The startup log cannot be rotated with CQSE facilities. Please note that logs under /server is rotated at operating system level,
    for more info see http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
    Unix workaround :
    in serverctl script, replace the line :
    exec $jvmExe >> "$CQ_LOG" 2>&1
    by : 
    exec $jvmExe | /usr/sbin/rotatelogs "$CQ_LOG.%Y%m%d" 86400 >> /dev/null 2>&1
    If this doesn't seem to work, then try
    exec $jvmExe 2>&1 | /usr/sbin/rotatelogs "$CQ_LOG.%Y%m%d" 86400
    Unfortunately, I did not found any workaround for windows system.
    Hope this helps.
    Thanks,
    Varun

  • LMS3.2.1 - should my custom log rotation settings override log4j properties?

    For LMS 3.2.1 on Windows, I have configured log rotation settings for dcmaservice.log but the settings are ineffective, even after stop/start CW daemon manager.  Other posts on this forum state that dcmaservice.log rotation is managed by log4j but can also be configured in logrot.  Is this incorrect or have I encountered a bug in logrot?

    Gaganjeet,
    I'd like definitive answers to the following questions before continuing down this path.
    1) does log4j subsystem manage dcmaservice.log?
    2) if so, is there a log4j properties file for dcmaservice which can be edited to change log file size and number of versions to keep (eg. see the forum entry https://supportforums.cisco.com/message/664225#664225 re license.log)?
    3) can Common Services user-configurable log rotation override the parameters for logs managed by log4j subsystem?
    Thanks.

  • Stdout logging stops after applying MS hotfix (KB891861)

    I'm running WL 6.1 SP5 as a service on Windows 2000 SP4. I'm sending stdout logging to a file:
    beasvc -install -log:"%BEA_DRIVE%%LOGDIR%\wl-stdout.log"
    Logging works fine before applying the Update Rollup 1 for Windows 2000 (KB891861). After installing the hotfix, it logs the first 20 lines or so until it gets to:
    [Mon Feb 13 11:00:29 2006] [RunJavaApp] Building arguments for main class
    [Mon Feb 13 11:00:29 2006] [I] [RunJavaApp] Invoking main class
    Then logging stops. If I uninstall the hotfix, logging works as expected. Does anyone have a solution for this?

    Hi
    Are you using LAC (Live Auction Cockpit ) ?
    <u>Try the following SAP OSS Notes -></u>
    Note 726805 - How to switch LiveAuction 2.0 to pt to different backend svr
    Note 903441 - System Copy of SAP Web AS 6.40 and 7.00 J2EE with LAC-WPS
    Note 718383 - NetWeaver: Supported UME Data Sources and Change Options
    Note 888921 Ability to override protocol,host & port for Live Auction
    Note 888922 Recommendations - Reverse Proxy and Live Auction Server
    Note 676706 SSO configuration: Live Auction 1.0 with Enterprise Portal
    Note 686437 Added ability to override protocol, host, and port
    Incase nothing works, try re-starting the J2EE Server. Else raise a Customer OSS message with SAP as well.
    Do let me know.
    Regards
    - Atul

  • Unable to connect: incorrect log on parameters. Database Vendor Code: 18456

    I have imported a report into Info View (that has no parameters), I am able to run the report on Demand in InfoView, and I am also able to run the report within the CMC Preview.   I have tried scheduling using the admin account in CMC, through the publishing wizard and also with a authorized users in InfoView.  But anytime I try to schedule the report I get this error.
    Status: Failed 
    Printer: The instance is not printed. 
    External Destination: Mail the instance to " XXX@XXX .com " with a subject of " test ". 
    Data Refresh Settings:  Use the server defaults. 
    Start Time: 11/18/08 3:02:19 PM 
    End Time: 11/18/08 3:02:23 PM 
    Server Used: clr-combr.reportjobserver 
    Error Message: Error in File C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\clr-combr.reportjobserver\~tmp1304574d76168ca.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ] 
    I have made sure that the Reportjobobject is enabled and the server for SMTP email is enabled, and I am pretty sure I have the properties set up correctly within there, we created a email account specifically for crystal.  And that email account is also set up as a user.  I don't know where else to look.
    Please help.
    Thanks

    Hi Ashley
    I would like to suggest you following things with the Report:
    1) Please log in into CMC, go to Report which you want to schedule.
    2) Click on the report and go to Process
    3) Click on the tab Database.
    4) There will be two option to make the entries for database logon required for the Report.
    Please select the appropriate option. Are you able to Preview the report?
    What is the database in use? Please also check the odbc driver settings for that database.

  • Unable to connect: incorrect log on parameters [Database Vendor Code: 1005]

    We have a report that has been in production for some time and ran successfully with no trouble.  However, it now keeps failing with this error and the log on parameters are correct.  The whole error is:
    Error in
    File / usr/local/bobje/data/procSched/mrspas051.reportjobserver/~ tmp2f0ea56e4c88a08d6.rpt: Unable to connect: incorrect log on parameters, Details: [Database Vendor Code: 1005]. 
    Can you tell us why a report suddenly fails with this error?  Thank you.

    We've been having the same issue with scheduled Crystal reports (in BO 3.1).  After much testing, we found that even though reports are set to use the custom database logon credentials, if the name of the original data source changes, it causes the error (Error in File ~tmp1d06ed702daa30.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 1005 ] ).  For example, I publish a report to a production environment.  It has an original data source called "test".  I set it to use the custom database logon.  A user then creates a recurring schedule and it runs successfully.  A developer opens the report in Crystal 2008 and changes the connection to something else, for ex "dev" (in Crystal, this is on the Database menu, select "Set Datasource Location" and pick a different option under My Connections or create a new one), then saves the report to BO.  We promote the report to prod and it overwrites the existing file.  We make sure it's still set to use the custom database connection to prod but the recurring schedules that were set up when the original data source was called "test" immediately begin to fail.  I tried working with support but they didn't really help much.  They had me install the Oracle 11G client on our servers since we were connecting to our 11G repository with the 10G client but that did nothing.  They finally claimed that since our repository database was Oracle 11G R2 (not just 11G), it wasn't supported and they wouldn't go any further.  If anyone's found a solution, I would really appreciate hearing how it was fixed.

  • Extended format of access.log and log rotation

    I am using WebLogic Server 6.1sp1. I want to use extended format of web
    server access log. I also want to use log rotation based on date. But it
    seems not to work together. After my investigation I can say:
    - access.log in common format can be rotated based on date an on size,
    - access.log in extended format (either in its default form or
    completely redefined) cannot be rotated neither based on date nor size.
    In the second case at first time WebLogic tries to rotate logfile
    IOException is thrown with a message like "java.io.IOException: Failed
    to rename log file on attempt to rotate logs". Than it throws
    IOException with a message "Exception flushing HTTP log file. (Bad file
    descriptor)." when it tries to flush content of logfile to the disk.
    After that WebLogic server stops to write to access.log.
    Is it possible to rotate access.log in extended format?
    Thanks,
    Andrzej Derlacki
    Infovide, Poland
    [email protected]
    [email protected]

    i am pasting the entries below which i see in the log( access_log ) . I don't see DEBUG in them.
    <AGENT_IP_ADDRESS> - - [29/Jun/2007:09:48:23 -0400] "GET /em/upload?ACTION=HEARTBEAT&EMD
    _URL=https%3a%2f%2flph010%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HEARTBEAT_TI
    ME=2007-06-29+09%3a40%3a09&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-18+10%3a20%
    3a23&OLDEST_COLL_TIME=2007-06-29+09%3a40%3a09&INSTALL_TYPE=agent&X-ORCL-EMOV=4%2
    e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 HTTP/1.1" 2
    00 5
    <AGENT_IP_ADDRESS>- - [29/Jun/2007:09:48:23 -0400] "GET /em/upload?ACTION=HEARTBEAT&EM
    D_URL=https%3a%2f%2fprdes%2eeur%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HE
    ARTBEAT_TIME=2007-06-29+15%3a48%3a23&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-1
    8+18%3a27%3a33&OLDEST_COLL_TIME=2007-06-29+15%3a48%3a23&INSTALL_TYPE=agent&X-ORC
    L-EMOV=4%2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 H
    TTP/1.1" 200 5
    <AGENT_IP_ADDRESS> - - [29/Jun/2007:09:48:24 -0400] "GET /em/upload?ACTION=HEARTBEAT&E
    MD_URL=https%3a%2f%2fug038%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HEARTBEAT_
    TIME=2007-06-29+22%3a19%3a35&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-18+18%3a3
    7%3a03&OLDEST_COLL_TIME=2007-06-29+22%3a19%3a35&INSTALL_TYPE=agent&X-ORCL-EMOV=4
    %2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 HTTP/1.1"
    200 5

  • .exe default program issues

    I had an issue with all .exe opening in Notepad
    found this 'fix':
    HKEY_CLASSES_ROOT\.exe
    In right-side pane, change value of Default key to exefile
    5. Now go to:
    HKEY_CLASSES_ROOT\exefile\shell\open\command
    In right-side pane, change value of Default key to:
    "%1" %*
    But it has now messed up everything, so I cannot even open regedit or any application, manage to get some apps working but manually telling it which app to use, but looking for a fix for this please using Windows 8.1
    When I look at any .exe it next to the file type it shows "%1" %*

    Nope, but I have the answer to my own question using the following link:
    http://www.askvg.com/solution-exe-files-always-open-with-notepad-or-other-applications/
    using:
    METHOD A: Using Ready-Made Registry Script

  • [logging] Problems to configure logging rotation.

    Hi,
    I have an application .ear deployed in weblogic v10.3.1.0
    This application use java.util.logging to write a log file.
          fh = new FileHandler(logFileName,0,1,true);
          fh.setFormatter(new XMLFormatter());
          logger.addHandler(fh);
    FileHandler(String pattern, int limit, int count, boolean append)
    pattern - the pattern for naming the output file
    limit - the maximum number of bytes to write to any one file. If this is zero, then there is no limit. (Defaults to no limit).
    count - the number of files to use
    append - specifies append mode
    http://www.javadocexamples.com/java/util/logging/java.util.logging.FileHandler.html
    logFileName is dynamic with date formated like this yyyMMdd + ApplicationName + ".log"
    This file is created but I have also yyyyMMddSEC.log.1, yyyyMMddSEC.log.2, yyyyMMddSEC.log.3,...
    I DON'T WANT THESE FILES_, that's why I put limit to 0, count to 1 and append to true.
    This code works without jdev/weblogic but has not effect in weblogic.
    Q1. Why?
    So I go to Weblogic console: Domain Structure-> DefaultDomain->Logging
    Log file name: logs/DefaultDomain.log
    Rotation type: None
    NONE
    Messages accumulate in a single file.
    You must erase the contents of the file when the size is too large.
    Note that WebLogic Server sets a threshold size limit of 500 MB before it forces a hard rotation to prevent excessive log file growth.
    But it doesn't work, Weblogic continue to create log files like this *<filename>.log.<n>*
    Q2. Why?
    I have also created weblogic.xml in ViewControler/WEB-INF
    thanks to this documentation:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1063199
    but it doesn't work...again.
    Q3. Why?
    Q4. If I want applications manage themselves their log, how to deactivate the logging handler in weblogic (LogFileMBean?)
    Thanks for your help.

    You may want to ask in the WebLogic Server - Diagnostics / WLDF / SNMP forum. They own logging.

  • In FM tables And Changing r bu default Pass by value or ref

    hi friends ,
    In Function Module Tables And Changing are by default Pass by value or reference.
    with regards.

    hi all,
    i got the answer from abap in 21 days (page No 591),
    changing parameters are passed by value and result.
    internal tables are pass by reference.

  • LMS - log rotation based on time period

    Dear All
    can we configure log rotation to be based on time period (ex:past one year)instead of log file size.
    if it is feasable please advise who to do it?
    Regards;
    Antonio

    I am not sure if I understand it correct, but you can do this easily by defining the expected file size of the log file to rotate;
    logrot runs on a scheduled basis and checks if the log file has reached the defined file size - if not it will do nothing else the file will be backed up. The key point is the configured file size;
    I use this for the syslog file to have a backup for each month:
        schedule logrot to run every first of each month and set the file size to a low value guarantes that I ve got a file for every month;
    from the online help of logrot:
    http://:1741/help/cmf/index.html?sysad_adm_logrotate.html
    4. Specify the number of archive revisions. If you do not want to keep any archives, enter 0 (the default) for this option.
    5. Specify the maximum file size. The log will not be rotated until this size is reached. The unit is in kilobytes (KB). The default is 1024 KB or 1 MB.
    why do you want to keep all log messages of a complete year in one file - what do you want to do?

  • How do I change and .exe file so it will work on my mac?

    I am trying to download an Active X plug-in and install it on my Mac so I can log onto a website that supports this Active X plug-in only. How do I change an .exe file so it will work to where I can install it on my Mac?

    You can't install Windows software natively on your Mac but you can run Microsoft Virtual PC <http://www.microsoft.com/mac/products/virtualpc/virtualpc.aspx?pid=virtualpc> if your Mini is a PowerPC Mac or you can use something like Parallels <http://www.parallels.com> or Apple's Boot Camp <http://www.apple.com/bootcamp> if your Mini is an Intel Mac.
    Virtual PC comes with Windows but Parallels and Boot Camp will require you to install your own licensed version of Windows purchased separately.
    Then you'll be able to run Windows on your Mac, which means you can use ActiveX in your IE browser.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.8)  

Maybe you are looking for