cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1210
Views
0
Helpful
5
Replies

syslog.log file size

davidm101
Level 1
Level 1

running lms3.0

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

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

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.

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.

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.

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.

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: