huge log files in cw LMS

Answered Question
Feb 28th, 2009
User Badges:
  • Silver, 250 points or more

hello


Today in ciscoworks LMS, I found that c:\ drive is almost full.


I found 2 huge files :


-c:\program files\ CSCOpx\log\ConfigMgmtServer.log 2 Giga


- c:\program files\ CSCOpx\MDC\tomcat\logs\stdout.log 6 Giga



Can we limit the size of these 2 log files so that the C drive will not be full in the future?



Correct Answer by Joe Clarke about 8 years 4 months ago

Yes. You can configure logrot.pl to rotate these logs periodically when they reach a certain size. Search the Common Services online help for "logrot" for more information on how to configure this.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Sun, 03/01/2009 - 00:34
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Yes. You can configure logrot.pl to rotate these logs periodically when they reach a certain size. Search the Common Services online help for "logrot" for more information on how to configure this.

ohassairi Sun, 03/01/2009 - 21:54
User Badges:
  • Silver, 250 points or more

thanks jclarke for the infos


here is the procedure:


C:\Program Files\CSCOpx\bin>perl.exe 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


Enter option: 1

Number Variable Name [Variable Value]

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

1. Backup Directory []

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

Warning: No logfiles found.


a. Add logfile(s)

d. Delete logfile(s)

q. Go back


Enter option or logfile number to edit: a

Enter logfile path []: c:\program files\ CSCOpx\log\ConfigMgmtServer.log

Enter number of archives to keep [0]: 3

Enter maximum file size (in kilobytes) [1024]: 5120

Compression extension (gz,Z,bz2): gz

Number Logfile Name Number of Archives Max Size Compress

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

1. "c:\program files\ CSCOpx\log\ConfigMgmtServer.log " 3 5120 gz


a. Add logfile(s)

d. Delete logfile(s)

q. Go back


Enter option or logfile number to edit: a

Enter logfile path []: c:\program files\ CSCOpx\MDC\tomcat\logs\stdout.log

Enter number of archives to keep [0]: 3

Enter maximum file size (in kilobytes) [1024]: 5120

Compression extension (gz,Z,bz2): gz

Number Logfile Name Number of Archives Max Size Compress

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

1. "c:\program files\ CSCOpx\log\ConfigMgmtServer.log " 3 5120 gz

2. "c:\program files\ CSCOpx\MDC\tomcat\logs\stdout.log " 3 5120 gz


a. Add logfile(s)

d. Delete logfile(s)

q. Go back


Enter option or logfile number to edit: q

Logrot Configuration Menu

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


1. Edit variables

2. Edit log files

3. Quit and save changes

4. Quit without saving changes


Enter option: 3


C:\Program Files\CSCOpx\bin>




Actions

This Discussion