Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

syslog.log file size

running lms3.0

Can I change the syslog.log file directory and file size?

5 REPLIES
Cisco Employee

Re: syslog.log file size

What do you mean, change the file size? The file size changes every time a new message is written to it. As for changing the location, you can use the NMSROOT\bin\syslogConf.pl script:

NMSROOT\bin\perl NMSROOT\bin\syslogConf.pl

If you want to truncate the syslog.log file, you can use the logrot.pl utility. This utility is documented in the LMS online help.

Community Member

Re: syslog.log file size

The LMS 3.0 system folder show >2G for syslog.log (the recommended size is 1G) and >12M (the recommdned size is 1M) for EDS-GCF.log. I am running out the system space so I need to move the syslog.log to a differenent directory. If possible, I will like to rotate to another file when it reaches certain size. I tried the logrot.pl -v without success.

Cisco Employee

Re: syslog.log file size

As I said, syslogConf.pl will help you to relocate the syslog.log to a different directory. As for log rotation, you will first need to configure logrot using logrot.pl -c. Once you have added the log files to be rotated, then running logrot.pl without any arguments will rotate the log files provided their size matches the configured properties.

Community Member

Re: syslog.log file size

I was able to change the syslog.log to another driver using syslogconf.pl. I logon the LMS 3.0 after reboot the system. The log space usage and critical message window showed "loading". I also got error by trying to change the syslog.log back to $NMSROOT/log/ using the syslogconf.pl. It appears the NMSROOT variables is not defined in the system anymore.

Cisco Employee

Re: syslog.log file size

NMSROOT is never actually defined on the system. It is defined at runtime by the various components from LMS. What was the exact error you got trying to change the log location back? Please also post the CSPortal.log.

347
Views
0
Helpful
5
Replies
CreatePlease to create content