• Advertisement

Logrot Issues

MIBS, SMMPv1, SMMPv2, SMMPv3 and management

Logrot Issues

Postby Guest » Thu Nov 18, 2010 1:20 am

Running LMS 3.2 - I have logrot configured to rotate the syslog.log file after 1GB, but its not functioning. I have configured logrot via Common Services GUI & via the CLI script, but neither seem to work. Here is the contents of the logrot.conf file:

 

 

var backup_dir = c:progra~2cscopxlog

var delay =

C:PROGRA~2CSCOpxlogsyslog.log 20 1024000 gz

Guest
 

Advertisement

Re:Logrot Issues

Postby Guest » Thu Nov 18, 2010 2:53 am

Port the output of:

 

C:PROGRA~2CSCOpxinperl.exe C:PROGRA~2CSCOpxinlogrot.pl -v
Guest
 

Re:Logrot Issues

Postby Guest » Thu Nov 18, 2010 3:26 am

It looks like that did the trick. Does the v option force enable logrot? Also, considering I have a 365 day purge setting, will RME be able to report on the logs within the rotated/compressed files or only on the actual syslog.log file?

 

Thanks Joe!

 

 

 

 

C:PROGRA~2CSCOpxin>perl.exe C:PROGRA~2CSCOpxinlogrot.pl -v

Tue May 11 03:41:30 2010: INFO: Read variable backup_dir --> c:progra~2cscopx

log

Tue May 11 03:41:30 2010: INFO: Read variable delay -->

Tue May 11 03:41:30 2010: INFO: Logfile = C:PROGRA~2CSCOpxlogsyslog.log, Bac

kup File = c:progra~2cscopxlogsyslog.log

Tue May 11 03:41:30 2010: INFO: Archiving C:PROGRA~2CSCOpxlogsyslog.log (fil

e size = 1167511841, conf size = 1048576000)

Tue May 11 03:41:30 2010: INFO: Rolling logfile archive.

Tue May 11 03:41:30 2010: INFO: Archiving C:PROGRA~2CSCOpxlogsyslog.log to c

:progra~2cscopxlogsyslog.log.0.

        1 file(s) copied.

Tue May 11 03:41:32 2010: INFO: Compressing c:progra~2cscopxlogsyslog.log.0

using gzip -f

Tue May 11 03:42:25 2010: INFO: Rotating C:PROGRA~2CSCOpxlogsyslog.log.

Guest
 

Re:Logrot Issues

Postby Guest » Thu Nov 18, 2010 4:34 am

Logrot -v only enables verbose mode.  If it didn work before my guess is that the file wasn quite 1 GB yet.  It was just barely over 1 GB in this execution.  If you do see problems with logrot, running it with -v will show what logrot is doing at each step of the way.

Guest
 

Re:Logrot Issues

Postby Guest » Thu Nov 18, 2010 5:18 am

Understood. As far as RME being able to report on the arhived/compressed files, is this true, or can RME only report on the contents of the

currently uncompressed/active syslog.log file? I have a purge setting of 365 days, and would like to be able to access up to the full 365 worth of syslog on each device. Thanks Joe.

Guest
 



  • Advertisement


Similar topics

ASDM issues
Forum: Cisco Security
Author: Anonymous
Replies: 6

ASA Windows7 and Start-Before-logon (SBL) Issues
Forum: Virtual Private Networks
Author: Anonymous
Replies: 0

PRI out-bound noise issues (Urgent)
Forum: Cisco IP Communications
Author: Anonymous
Replies: 0

Issues with outgoing FAX on H323 gateway
Forum: Cisco IP Communications
Author: Anonymous
Replies: 0

SG200-50P and PoE issues
Forum: Small Business Switches
Author: Anonymous
Replies: 0


Return to Network Management

Who is online

Users browsing this forum: No registered users and 1 guest

cron