Huge Syslog.log file

Answered Question
Jul 13th, 2007

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.

I have this problem too.
0 votes
Correct Answer by Joe Clarke about 9 years 5 months ago

This looks good. When this finishes, your syslog.log should be 0 bytes.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Joe Clarke Fri, 07/13/2007 - 10:10

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

Joe Clarke Fri, 07/13/2007 - 10:28

This is the logrot script itself. I wanted the verbose output from its execution.

dionjiles Fri, 07/13/2007 - 10:32

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.

Correct Answer
Joe Clarke Fri, 07/13/2007 - 10:37

This looks good. When this finishes, your syslog.log should be 0 bytes.

dionjiles Fri, 07/13/2007 - 10:43

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.

Actions

This Discussion