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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

syslog.log growing uncontrollably?

I have a problem where the syslog.log file (in the ciscoworks log directory) grows to a huge size and then crashes ciscoworks because disk space has run out.

Is there a way to automatically limit the size of syslog.log?

1 ACCEPTED SOLUTION

Accepted Solutions
Red

Re: syslog.log growing uncontrollably?

Yes, you should be using logrot, which is in the CSCOpx\bin directory. On-line help is available for logrot.

4 REPLIES
Red

Re: syslog.log growing uncontrollably?

Yes, you should be using logrot, which is in the CSCOpx\bin directory. On-line help is available for logrot.

New Member

Re: syslog.log growing uncontrollably?

Thanks! that did the job.

New Member

Re: syslog.log growing uncontrollably?

Can I ask how you ran the logrot utility?? What switches if any did you use?

New Member

Re: syslog.log growing uncontrollably?

/opt/CSCOpx/bin/logrot.pl -c will launch the configuration utility. Ensure you save all changes before you exit.

Then run the utility simply by running:

/opt/CSCOpx/bin/logrot.pl

I have mine running nightly via cron:

/opt/CSCOpx/bin/logrot.pl >> /var/adm/CSCOpx/log/logrot

HTH

Nick

139
Views
0
Helpful
4
Replies