cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1112
Views
5
Helpful
6
Replies

Huge Syslog.log file

dionjiles
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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

View solution in original post

6 Replies 6

Joe Clarke
Cisco Employee
Cisco Employee

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

See Attached.

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

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.

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

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.

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: