logrot problem

Unanswered Question
Oct 7th, 2008
User Badges:

Hi,


I am trying to execute logrot script in order to delete some log files.


The problem is that nothing happened when I execute the script.


The configuration :


C:\Program Files\CSCOpx\bin>C:\Progra~1\CSCOpx\bin\perl.exe C:\Progra~1\CSCOpx\b

in\logrot.pl -c


Read config successfully.


Logrot Configuration Menu

-------------------------


1. Edit variables

2. Edit log files

3. Quit and save changes

4. Quit without saving changes


Logrot Configuration Menu

-------------------------


1. Edit variables

2. Edit log files

3. Quit and save changes

4. Quit without saving changes


Enter option: 1

Number Variable Name [Variable Value]

---------------------------------------------------------

1. Backup Directory [D:\backuplog]

2. Restart Delay [60]


q. Go back

Enter variable number to change: q

Logrot Configuration Menu

-------------------------


1. Edit variables

2. Edit log files

3. Quit and save changes

4. Quit without saving changes


Enter option: 2

Number Logfile Name Number of Archives Max Size Compress

-----------------------------------------------------------------------------

1. C:\Progra~1\CSCOpx\log\utm.log 0 100


a. Add logfile(s)

d. Delete logfile(s)

q. Go back

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Tue, 10/07/2008 - 07:04
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

According to this, you are only configuring one log for rotation (utm.log). Please post the output of logrot.pl -v. What version of Common Services is this?

a.perrichon Wed, 10/08/2008 - 00:13
User Badges:

Yes, I have a problem with utm.log which grows too fast ... No debug is activated.


Anyway, I just want to delete periodicaly this file.


Below the logrot.pl -v :


C:\Program Files\CSCOpx\bin>

C:\Program Files\CSCOpx\bin>C:\Progra~1\CSCOpx\bin\perl.exe C:\Progra~1\CSCOpx\b

in\logrot.pl -v

Wed Oct 8 10:10:23 2008: INFO: Read variable backup_dir --> D:\backuplog

Wed Oct 8 10:10:23 2008: INFO: Logfile = C:\Progra~1\CSCOpx\log\utm.log, Backup

File = D:\backuplog\utm.log

Wed Oct 8 10:10:23 2008: INFO: Archiving C:\Progra~1\CSCOpx\log\utm.log (file s

ize = 75517670, conf size = 2048000)

Wed Oct 8 10:10:23 2008: INFO: Rotating C:\Progra~1\CSCOpx\log\utm.log.

Joe Clarke Wed, 10/08/2008 - 07:19
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

According to this, utm.log was rotated. If the file size reverts to the previous file size, then this log file cannot be rotated while dmgtd is running. You will need to do an offline log rotation. To do that, pass the -s option to logrot.pl. This will shutdown dmgtd, rotate the log files, then restart dmgtd.

Actions

This Discussion