07-13-2007 09:53 AM
I have been experiencing issues with my syslog.log file continues to grow and I cannot figure out how to keep it down to where I can open file to view entries if needed. Currently it is at 35 gigs and growing......Attached is the parameters I have set in the logrot.pl file in the bin directory on the CiscoWorks Server. Please let me know if it is something I'm doing wrong.
Thanks.
Solved! Go to Solution.
07-13-2007 10:37 AM
This looks good. When this finishes, your syslog.log should be 0 bytes.
07-13-2007 10:10 AM
This is the correct configuration, but you may be hitting a but with logrot. What does the following report:
NMSROOT\bin\perl NMSROOT\bin\logrot.pl -v
07-13-2007 10:17 AM
07-13-2007 10:28 AM
This is the logrot script itself. I wanted the verbose output from its execution.
07-13-2007 10:32 AM
Sorry about that typo on my end.
E:\CSCOpx\bin>perl logrot.pl -v
Fri Jul 13 14:31:02 2007: INFO: Read variable backup_dir --> e:\Backup
Fri Jul 13 14:31:02 2007: INFO: Logfile = E:\CSCOpx\log\syslog.log, Backup File
= e:\Backup\syslog.log
Fri Jul 13 14:31:03 2007: INFO: Attempting to use E:\CSCOpx\bin\logrot_stat.exe
to obtain logfile size.
Fri Jul 13 14:31:03 2007: INFO: Rolling logfile archive.
Fri Jul 13 14:31:03 2007: INFO: Archiving E:\CSCOpx\log\syslog.log to e:\Backup\
syslog.log.0.
07-13-2007 10:37 AM
This looks good. When this finishes, your syslog.log should be 0 bytes.
07-13-2007 10:43 AM
Once again you have came to the rescue. I have worked on this for a couple of days now and it seems like running the logrot.pl -v started the process for me.....somehow.
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: