Huge Syslog.log file

Answered Question
Jul 13th, 2007
User Badges:

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.



Correct Answer by Joe Clarke about 9 years 9 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
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

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

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
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

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

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