Syslog/RME 4.0.5 /LMS /2.06

Unanswered Question
Jan 9th, 2009
User Badges:

Hello,

Logrot is usefull.My customer used it too in LMS 2.6.The problem is that when she wants to opened the syslog file , this is too big which can't be opened.

In fact, LOGROT do well the increments, but how stop the size of each one ?

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Fri, 01/09/2009 - 09:00
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

If logrot is not rotating a log, please post the NMSROOT/objects/logrot/logrot.conf and the output of NMSROOT/bin/perl NMSROOT/bin/logrot.pl -v.

Joe Clarke Mon, 01/19/2009 - 09:49
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

First, I asked for the output of logrot.pl -v, and you sent me the logrot.pl script. Second, you have two entries in logrot.conf that point to directories. These should be removed. The entries are:


d:\

d:\CSCOpx\log

richard.tetu Tue, 02/03/2009 - 03:07
User Badges:

Hello,

It seems to work fine now with the both entries removed.The customer has made a try and has the index of archiving for Sysylog increazing.

At this point, we wanted to know what is

exactly the use of the file

ConfigMgmtServer.log .It's growing too in the same way .

Thanks

Joe Clarke Tue, 02/03/2009 - 07:58
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This is the stdout/stderr log for the ConfigMgmtServer process. That process is responsible for archiving configurations. It can be rotated with logrot.


Depending on the messages in the file, you may be running into a known bug.

richard.tetu Tue, 02/03/2009 - 08:14
User Badges:

Thanks for that.

Can we move into the logrot config when it's launched with the -c option, the path of log file ?

for example,

c:\CSCOpx\log\utm.log to d:\toto\utm.log

Is the file will be created as same manner ? in the "add file menu.


Thanks

Joe Clarke Tue, 02/03/2009 - 08:18
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You can always run logrot.pl -c to change the log files that are being rotated. If you need to change a path, you can certainly do that.

richard.tetu Tue, 02/03/2009 - 09:04
User Badges:

Hello,

I did the test :

the Windows server has 2 disks running.

the logrot has been configure for running into:

d:\CSCOpx\bin.

The logs are in d:\CSCOpx\logs.

I have move the file into another path

c: \TestMoveF\utm.log.Before move it ,the utm.log has been deleted on the logrot.conf file.

I have stopped the crmdmgtd and restart them, launched the logrot.pl .


The file has been set with a 1024 size and with a gz compression..


As the UTM.LOG is a big file for this customer, he rotates quite quickly, but never appeared in the directory TestMoveF on C:.

I have share it .. but.



Joe Clarke Tue, 02/03/2009 - 09:09
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

I don't understand what you're trying to do. Logrot will only rotate logs in its configuration. So, if you have a file, C:\TestMoveF\utm.log, and you want logrot to rotate it, you will need a line in logrot.conf for C:\TestMoveF\utm.log.

richard.tetu Wed, 02/04/2009 - 00:48
User Badges:

What we want to do is:

move a log file located originally in D:

, who is rotated with logrot.pl, to another disk.


So,the purpose it just to move some few big files ( as the other could be rotated on same disk ) to anther disk.



Joe Clarke Wed, 02/04/2009 - 08:29
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Are you talking about archiving old versions of log files to a different disk? If so, then simply set the "Backup Directory" variable in logrot to that alternate disk. The main log file will still be in NMSROOT\log, but whenever it's rotated, the old data will be archived to the alternate directory.


You cannot simply relocate log files, and have the applications use them.

Actions

This Discussion