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.

Similar Messages

  • Rotation settings in log4j in oc4j server

    Hi,
    We have some setting on oc4j server for log4j where it take the backup of log file on daily, weekly and monthly basis. I guess there is some rotation setting and due to these archival, there is some space issue on server. I need to disable this so that it will keep just current date log and delete old days logs. Every day, it should delete old log and create new log for the day.
    Can you please tell where should I change the settings for this?
    Thanks a lot for your help.
    -AK

    The exception like this:
    04/12/15 11:00:20 java.lang.IllegalArgumentException: class not found: com.oracle.ord.itech.egov.Translations
    04/12/15 11:00:20 at oracle.i18n.servlet.listener.ContextListener.contextI
    nitialized(ContextListener.java:136)
    04/12/15 11:00:20 at com.evermind.server.http.HttpApplication.initDynamic(
    HttpApplication.java:805)
    04/12/15 11:00:20 at com.evermind.server.http.HttpApplication.<init>(HttpA
    pplication.java:533)
    04/12/15 11:00:20 at com.evermind.server.Application.getHttpApplication(Ap
    plication.java:889)
    04/12/15 11:00:20 at com.evermind.server.http.HttpServer.getHttpApplicatio
    n(HttpServer.java:688)
    04/12/15 11:00:20 at com.evermind.server.http.HttpSite.initApplications(Ht
    tpSite.java:587)
    04/12/15 11:00:20 at com.evermind.server.http.HttpSite.setConfig(HttpSite.
    java:263)
    04/12/15 11:00:20 at com.evermind.server.http.HttpServer.setSites(HttpServ
    er.java:259)
    04/12/15 11:00:20 at com.evermind.server.http.HttpServer.setConfig(HttpSer
    ver.java:160)
    04/12/15 11:00:20 at com.evermind.server.ApplicationServer.initializeHttp(
    ApplicationServer.java:2385)
    04/12/15 11:00:20 at com.evermind.server.ApplicationServer.setConfig(Appli
    cationServer.java:1542)
    04/12/15 11:00:20 at com.evermind.server.ApplicationServerLauncher.run(App
    licationServerLauncher.java:92)
    04/12/15 11:00:20 at java.lang.Thread.run(Thread.java:534)

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

  • LMS3.2 log rotation (syslog_info)

    Hi,
    What should I do to get my syslog_info file rotated whenver the file grows to 512 megabytes in size? I've set up the log rotation in Common Services->Server->Admin but it doesn't seem to work, the file grew to 1.9 gigabytes.
    Is there any process that should be running that monitors the logrotation?
    Greets,
    Tomek

    Restarting dmgtd is not an option and most probably it would not work for that case.
    I would like to see if any overgrown log file will rotate. For example - I set max log file size to 512 megabytes. And I expect that LMS will somehow monitor the size of the file (for example with an entry in crontab, or by a specified daemon) and rotate it whenver the log file exceeds previously set size.
    That doesn't work that way. The file grows and exceeds set size. Only manual triggering of rotation process works as expected.
    Is that a bug?

  • GC log rotation question

    Hi,
    So after JDK 1.6.0_34 (as far as I know), java introduced GC log rotation JVM args (see below)
    -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=1M
    Prior to these JVM arg additions, on any java application start, your GC log would get wiped. In my case a tomcat server running java code.
    So now I would assume when these JVM arg's are present, the GC log continues to rotate and not get wiped on application start up. However the above behavior still persists ever after JDK 1.6.0_34 with the new JVM args present.
    I should mention while the java application is running, the GC log DOES rotate (i.e., gc_log.txt.0, becomes gc_log.txt.1), but when application is restarted the LAST GC log is erased completely.
    This behavior isn't really "log rotation/backup", I've had to introduce my own shell/bat scripts to rotate the latest GC logs manually outside of these JVMargs. I'm not sure if I'm misunderstanding how to use the new JVM args or if oracle doesn't consider this a bug and this is normal behavior.
    I did file a bug on this, 9005051. However there is no guarantee your bug request ever makes it to the public bug database and oracle doesn't provide reasoning back to the submitter when the bug is rejected or not looked at, so I don't really know what happened with my bug request.
    If anyone has any insight into this, I would really appreciate it.
    Thank you!

    > Or better yet, where I can find someone to actually answer my question?
    Me! Me! I know the answer to that question...
    Oracle is more than happy for you to pay them for a support\service contract of which part of that will be that you can ask them questions and they will answer them.  Real Oracle engineers and perhaps the very people who created the code in the first place.  Or at least the ones in charge of it now.
    > yet there is no guarantee my bug is even a bug or will even get posted to the bug database
    Yes that is true.
    But I suspect, strongly, that if you have a big enough contract that every bug you post to the database, and that you tell oracle about, will appear promptly and be addressed promptly.
    And if you have a smaller (but not really small) Oracle contract I am rather certain that you can obtain a custom fix.
    Alternatively you can download the source, figure out the problem, and fix it yourself.  Then apply it to your running services.

  • Custom logging, multiple apps in one file, different from server.log

    I have several applications running on my integration server. I would like to log from these apps to a single file (different file from server.log)
    I tried to use custom log4j logging, but there's a problem with the RollingFileAppender. Whenever a file is rolled, the backup copies are deleted. It probably happens because different classloaders load different apps and I configure the log4j in every app, but I don't understand classloaders.
    Here is a part of the log4j.properties file:
    log4j.appender.file=org.apache.log4j.RollingFileAppender
    log4j.appender.file.File=/path/log
    log4j.appender.file.maxBackupIndex=10
    log4j.appender.file.maximumFileSize=10485760and I configure the logger in every app by
    org.apache.log4j.PropertyConfigurator.configure( logPropertiesPath );(Is this wrong? Is it even possible to use one log file from different apps? The integration servers does it...)
    I don't need the log4j, if the internal logging can be set up to log app. messages to a different file and configured with a different layout pattern, it would be enough.
    Can anybody please help with my logging problem?

    I've tried this:
    I've put log4j.jar to the lib dir of the logicalhost and log4j.properties to another jar (my own) and put it to the lib dir too. I deleted the PropertyCOnfigurator.configure() line from the apps. Built it, manually deleted log4j.jar from the EARs. Then I deployed EARs, restarted the domain and ran the apps. They both logged to the same and correct file, but again the rolling didn't work. How is this possible? I thought that this way the IS should have one and only one instance of Log4j...

  • Custom Logging

    Hello,
    I have a simple runbook that I use to delete machines from both AD and Config MGR. I currently run this runbook manually on a weekly basis but would like to make this runbook available to a few more folks. My input for this runbook is a csv and since there
    isnt anything stopping someone from deleting a workstation they shouldn't I would like to do some custom auditing on this runbook. I can very easily pass the date / time, and the machine name and write it to a SQL DB but how do I get who ran the runbook. It
    seems like this should be easy to get but I cant think how. Has anybody out there tried this type of custom logging?

    Hey Rooster,
    When we talk about making automation available to our end users usually it makes sense to put some sort of request system infront of the automation and do detailed logging there. That system then has permissions to invoke Orchestrator (or place a generated
    CSV file in the fileshare location your Orchestrator WF is monitoring)
    Here are some blog posts talking about this.
    http://blogs.technet.com/b/systemcenter/archive/2014/01/14/service-management-automation-and-sharepoint-mvp.aspx
    http://opalis.wordpress.com/2013/04/03/triggering-orchestrator-runbook-from-service-manager/

  • IPlanet 4.1 Web Server - ns-cron process hangs for log rotation

    Does anybody know if there is a known issue with iPlanet 4.1 Web Server where the ns-cron log rotation process hangs up?
    Basically it won't rotate any logs, and using either the "Stop" or "Restart" buttons in the console won't shut it down, so you have to kill it manually, then start it again.
    It seems like it will run for a couple days fine, then it will hang up.
    Thanks.

    Nope, I've not seen this before. But 4.1 version is really old and no longer supported, you should consider upgrading to a supported version.

  • Cannot schedule log rotation from LMS32 GUI

    All,
    I've been experimenting with the log rotation feature from LMS 3.2 UI (CS > Server > Admin > LogRotation) and have noticed when I try to schedule the logrotation with any backup directory (/var/adm/CSCOpx/log for example) it indicates that I cannot schedule it for that directory structure.  I even tried /tmp which is wide open for writing from any account but it still errors out.
    I am familiar with the logrot.pl -c from the CLI but I need to try this first from the UI.   Has anyone run into this before or know if this is a product issue or a mis-configuration on my part?
    Regards,
    Michael

    Exactly what error are you getting when you try and schedule the rotation?  You should be able to use both /var/adm/CSCOpx/log and /tmp.

  • Log Rotation

    Hi,
    We are monitoring our logs with several scripts, however we are finding inconsistency with the time of new logs created like access and error. We would like to have it created a new file everyday at 12:01 AM and should end at 11:59 PM.
    Please let me know if someone knows how to do it with some DS Settings.
    Thanks, John.

    These are the links to the official docs for 5.x:
    http://download.oracle.com/docs/cd/E19341-01/817-5221/logs.html
    From this manual you see that the only way to rotate by hand the log files is:
    1) Stop the Directory Server instance
    2) rename current access/error/audit log files
    3) Restart Directory Server instance
    In that case the DS will create a new access/error/audit log file.
    Moreover from:
    http://download.oracle.com/docs/cd/E19341-01/817-5235/config.html#wp21217
    We see that in 5.x version the attribute nsslapd-accesslog-logrotationtime has a different syntax (single integer value) compared to what it has in 6.x and later releases, that doesn't allow to specify you the exact time to rotate the log files. It will simply rotate after the amount of units expressed by the nsslapd-accesslog-logrotationtimeunit attribute.
    Given that we could mix a bit of both, and set a rotation policy from the Administration Console of the Directory Server Instance->Configuration Tab->Logs:
    - Check the box Unlimited size
    - Create new log every: *1 Day(s)*
    - Click Save
    A pop-up box will inform you that:
    You have set an unlimited size for the log files. Note that this can be dangerous as it can cause problems to your system if the size of the logs is very big. Do you want to continue?
    You can acknowledge this message and click Yes
    This should create a policy to rotate the access log file every 1 day ( = 23h59m59s after last log rotation) regardless of log size. The only advice I have with these settings is that you've to carefully monitor also the filesystem occupation, or set a proper deletion policy.
    Last step is then to sync the log time rotation, you have to 'manually' perform a rotation at midnight
    HTH,
    marco

  • Locking Transcation and customized log messages

    Hi
    I wanna to lock a specific transcation and if users are executing the transaction code then a customized log meesage should popup or display and the transaction should terminate. Is there a way to do by std way instead of handeling it in coding? I dont wanna to create authroization objects as it is not a time to experiment with that considering the system landscape complexity.
    thkx
    Prabhu

    Hi,
    Use Authority Check statement.If the authority check fails raise an message.
    Regards
    Krishna

  • Apache log rotation

    From the documentation here: http://help.adobe.com/en_US/adobemediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926 0bd-7ffa.2.3.html is is stated that " Adobe Media Server handles log rotation for the Apache logs." However, it appears not to be the case.
    My logs in /opt/adobe/ams/Apache/logs are not rotating.
    Can you help with this? Does AMS handle this or will I need to manually logrotate?
    Regards,
    A

    So this isn't working?:
    1. "One option is to rotate log files, moving or deleting the oldest files."
    I usually rename the old log files whenever/before the server needs to be restarted and that forces the server to generate new log files.
    2. "Use the rotation element in the Logger.xml file to specify a rotation schedule for log files. Two types of rotation schedules can be established. The first option is to set a daily rotation at a certain time. For example, setting daily at 00:00 rotates files every 24 hours at midnight. Alternatively, set a rotation that occurs when the log exceeds a specified length. Name, maximum file size in kilobytes, and maximum number of log files to keep can also be customized using the
    rotation element. For an example, see the Logger.xml file installed in the /conf directory."
    Did you modify the Logger.xml file to change the log rotation time? Save a copy of the original file before you modify it.
    3. You can also try to use a third party module (this might/might not work for you depending on your system specs): http://www.sitebuddy.com/mod_log_rotate
    mod_log_rotate.so seems pretty simple to set-up and implement.

  • Dev_webdisp_watchdog file maximum - enable log rotation

    Hi all,
    we are using web dispatcher 7.2, we start our dispatcher with the below command.
    ./sapwebdisp pf=/sapmnt/WPQ/profile/WPQ_W01_biddeford -auto_restart -f dev_webdisp &
    we can see two process started one watchdog and one main process.
    parallelly two log files are created dev_webdisp_watchdog & dev_webdisp.
    When the dev_webdisp_watchdog reaches its maximum limit, it creates a new file dev_webdisp.old (instead of dev_webdisp_watchdog.old)  and writes logs to that dev_webdisp.old file.
    Also when dev_webdisp.old reaches its maximum limit, the log file stops.
    We want to enable log rotation, can some one help so that the log files rotates?
    Also the watch dog should writes logs to dev_webdisp_watchdog.old instead of dev_webdisp.old, not sure why its happening?
    is it a bug?
    Regards
    Senthil

    Hi,
    the trace dev_webdisp_watchdog is created if you start the web dispatcher with the
    -auto_restart option for the high availability
    Regaring the trace rotate, take a look if you are using options like
    rdisp/TRACE_LOGGING and rdisp/TRACE_PATTERN_0. See note 112.
    Cheers,
    Clébio

  • Sjsws7 log rotation policy using CLI

    Is it possible to set the log rotation policy using CLI.
    We want to script the process of log rotation using CLI instead of configuring it from the console.

    Thanks for you interest in Web Server 7.
    Yes, Web Server 7 has a rich CLI and
    Log rotation like most administration tasks is configurable using the CLI.
    To schedule log rotation you need a create an "event" . The event as can be seen from the usage could be restart/reconfig/rotate-log/rotate-access-log etc.
    wadm> create-event
    Usage: create-event [--echo] [--no-prompt] [--verbose] [--no-enabled] config=name command=restart|reconfig|rotate-log|rotate-access-log|update-crl|commandline ( (--time=hh:mm [--month=1-12] [--day-of-week=sun/mon/tue/wed/thu/fri/sat] [--day-of-month=1-31]) | --interval=60-86400(seconds) )
    CLI014 config is a required option.
    I will walk thru the steps in the CLI starting from scratch..
    1. Create a config.
    2. Create an event
    3. Create an instance of the config
    4. Start the instance
    5. Deploy the config ( This is a workaround. You should not have to to do this in the upcoming Technology Preview Release 3).
    That's it.. The log should be rotated as per the parameters specified when you create the event.
    I am pasting below the actual result of following the above steps.
    In the example below the event scheduled is a rotate-log event. rotate-log rotates the error log. If you need to rotate the access logs use rotate-access-log instead.
    bash-3.00# ./wadm user admin port 18911
    Please enter admin-user-password>
    Sun Java System Web Server 7.0-Technology-Preview-2 B06/19/2006 17:16
    wadm> date
    Sat Sep 16 09:52:27 IST 2006
    wadm> create-config -- server-name servername http-port 18923 test
    CLI201 Command 'create-config' ran successfully
    wadm> create-event config=test command=rotate-log --time=09:55
    CLI201 Command 'create-event' ran successfully
    wadm> list-events config=test verbose --all
    command time interval
    rotate-log {09:55}
    wadm> create-instance --config=test wspqes032
    CLI201 Command 'create-instance' ran successfully
    wadm> start-instance --config=test
    CLI204 Successfully started the server instance.
    wadm> deploy-config test
    CLI201 Command 'deploy-config' ran successfully
    wadm> date
    Sat Sep 16 09:53:22 IST 2006
    wadm> pwd
    /space/hari/ws7/tpv2/bin
    wadm> cd ../https-test/logs
    wadm> date
    Sat Sep 16 09:53:37 IST 2006
    wadm> ls -al
    total 8
    drwxr-xr-x 2 root root 512 Sep 16 09:53 .
    drwxr-xr-x 10 root root 512 Sep 16 09:53 ..
    -rw-r--r-- 1 root root 143 Sep 16 09:53 access
    -rw-r--r-- 1 root root 683 Sep 16 09:53 errors
    wadm> date
    Sat Sep 16 09:55:18 IST 2006
    wadm> ls -al
    total 8
    drwxr-xr-x 2 root root 512 Sep 16 09:55 .
    drwxr-xr-x 10 root root 512 Sep 16 09:53 ..
    -rw-r--r-- 1 root root 143 Sep 16 09:53 access
    -rw-r--r-- 1 root root 0 Sep 16 09:55 errors
    -rw-r--r-- 1 root root 869 Sep 16 09:55 errors.200609160955
    wadm>
    In this example we have configures the log to be rotated at 09:55 am and as can be seen this has been done.
    We appreciate your valuable feedback. Please do mail us at [email protected]
    Hope that helps,
    Hari.
    Message was edited by:
    hari19

  • Custom log of rejects in BPC data manager package

    dear All
    we have custom package which loads records from flat file.
    The package is using a stored procedure for all calculations and log errors..
    The error codes are logged for duplicates, invalid member IDs..
    When we tested for small number of records, the log used to display in package view status.
    But if there are huge number of reccords we were unable to display log in the pacakge status. Is there any limitation?
    the error log file ranging from 8Mb to 25MB.
    Please advise.
    BPC 7.5 MS version.
    regards
    Prasad

    hi Roberto
    thanks for your reply.
    yes i am trying to display the log file of private publications only. it consists of rejects with custom logs.
    this is requirement from client, they wantrd to see in package view status itself.. so is why we got stuck
    during testing it was able to display but during uat there were huge rejects where it wasnot able display anthing.
    is there any sap  note so that I can share to client,n or specifications of sap?
    any workaround please advise
    regards
    Prasad

Maybe you are looking for

  • In Winforms application, dialog disappears when opened over a main window with AcroPDF viewer on it

    I have a Winform modal form with our home-made ComboBox on it, which functions well usually. My problem is - when this modal form is opened on top of a main form that has an AcroPDF control on it (Adobe's PDF ActiveX), whenever the combo's drop down

  • Backing up a Mac and a Windows machine?

    Hi, Can Time Capsule be partition to backup a Mac on one of the partitions and a Windows machine on the other partition over the wireless network? and are there any settings I should be aware of? Running OSX ver. 10.5.6 and Windows Vista Home premium

  • How to include .as (actionscript file) in frame in as3

    i have include an asctionScript file syntax is   #include "filename.as" when publishing comming syntax  error.

  • SNP Heuristic recreation and adding of Purchase requisition

    Dear All Thanking In advance, Critical Issue We have scheduled a heuristic run for 7 FERT materials, Run was successful in simulation version, When we take a re-run (heuristic) on the same data,It is adding the quantities of the forecast to the same

  • BI transfer rules missing .

    Dear all, we had made a system copy of the source system (ECC) and with BI (Scm) system i.e  both the systems on Quality was refreshed with prod , now  we get the error that transfer rules does not exist on the copied BI system . Could any one help R