Page 1 of 1

check_logfile log rotation

Posted: Mon Dec 29, 2014 12:08 pm
by tgfde
Hello,

I'm currently using the 'check_logfiles' plugin but having a hard figuring the rotation format for a weblogic server. The rotation format is shown below:

ms1.log -> ms1.log.00001 -> ms1.log.00002

Has anyone figured it out or know it? Thanks in advanced.
FYI. I sent an email to the third party for this plugin, and waiting for a response, but just wanted tot see if anyone has done this.

tgfde

Re: check_logfile log rotation

Posted: Mon Dec 29, 2014 2:29 pm
by sreinhardt
Do you have a link to the plugin available?

Re: check_logfile log rotation

Posted: Mon Dec 29, 2014 2:35 pm
by tgfde

Re: check_logfile log rotation

Posted: Mon Dec 29, 2014 2:55 pm
by sreinhardt
Well according to their plugin, it would be something like "msg1.logmsg1.log.00001msg1.log.00002". It's pretty hard to tell from their documentation what correct usage would be. However, if you only ever need to look at the first log file, using no pattern would be just fine as well.

Re: check_logfile log rotation

Posted: Mon Dec 29, 2014 4:55 pm
by tgfde
Thank you for the quick response. I will try this if the one provided by lausser from ConSol Labs, shown below.

logfile => ‘ms1.log’,
rotation => ‘ms1\.log\.\d{5}’,

Re: check_logfile log rotation

Posted: Mon Dec 29, 2014 5:07 pm
by sreinhardt
That should do it, provided it is looking for an actual regex, and not what they were showing through documentation.