Logrot Issues

MIBS, SMMPv1, SMMPv2, SMMPv3 and management
Guest

Logrot Issues

Post by Guest » Thu Nov 18, 2010 2: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~2cscopxlogvar delay =C:PROGRA~2CSCOpxlogsyslog.log 20 1024000 gz

Guest

Re:Logrot Issues

Post by Guest » Thu Nov 18, 2010 3:53 am

Port the output of: C:PROGRA~2CSCOpxinperl.exe C:PROGRA~2CSCOpxinlogrot.pl -v

Guest

Re:Logrot Issues

Post by Guest » Thu Nov 18, 2010 4: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 -vTue May 11 03:41:30 2010: INFO: Read variable backup_dir --> c:progra~2cscopxlogTue May 11 03:41:30 2010: INFO: Read variable delay -->Tue May 11 03:41:30 2010: INFO: Logfile = C:PROGRA~2CSCOpxlogsyslog.log, Backup File = c:progra~2cscopxlogsyslog.logTue May 11 03:41:30 2010: INFO: Archiving C:PROGRA~2CSCOpxlogsyslog.log (file 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.0using gzip -fTue May 11 03:42:25 2010: INFO: Rotating C:PROGRA~2CSCOpxlogsyslog.log.

Guest

Re:Logrot Issues

Post by Guest » Thu Nov 18, 2010 5: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

Post by Guest » Thu Nov 18, 2010 6: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.

Post Reply