Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Huge Syslog.log file

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
Cisco Employee

Re: Huge Syslog.log file

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

6 REPLIES
Cisco Employee

Re: Huge Syslog.log file

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

New Member

Re: Huge Syslog.log file

See Attached.

Cisco Employee

Re: Huge Syslog.log file

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

New Member

Re: Huge Syslog.log file

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.

Cisco Employee

Re: Huge Syslog.log file

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

New Member

Re: Huge Syslog.log file

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.

183
Views
5
Helpful
6
Replies
CreatePlease to create content