Xymon Mailing List Archive search

log parsing on windows

3 messages in this thread

list Massimiliano Angei · Thu, 19 Jan 2012 20:05:45 +0100 ·
Hi all,

Is it possible to monitor log files (not event viewer) under windows machines?
For example *.log files containing particular patterns (error strings…)
I'm trying Bbwin client but using central mode I'm only capable to parse event log.

Maybe someone has an external that affords this feature…

thanks in advance!

Massimiliano A.
list Gautier Begin · Fri, 20 Jan 2012 08:55:00 +0000 ·
Hello,

Here a script in VBS to scan ASCII log from BBWin: 
To be modified
===============
The default error color                                  Color_KO  = "yellow"
The name of your XYMON test                              Column = "mig_log"
The path to your log file:                                       MIG_LOG = "E:\Logs\MIGFlow.log"
Test on the key word to be trapped (here ERROR):        If Mid(Line,25,5) = "ERROR" Then


Cordialement, Regards,Mit freundlichen Grüßen,

Gautier BEGIN

Admin and Tools Team
CSC Computer Sciences Luxembourg S.A.
12D Impasse Drosbach
L-1882 Luxembourg

Global Outsourcing Service | p:+352 24 834 276 | m:+352 621 229 172 | user-083785ae1711@xymon.invalid | www.csc.com


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery.  NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose
 • CSC Computer Sciences SAS • Registered Office: Immeuble Le Balzac, 10 Place des Vosges, 92072 Paris La Défense Cedex, France • Registered in France: RCS Nanterre B 315 268 664


From:   Massimiliano Angei <user-681d337f0c2a@xymon.invalid>
To:     "xymon at xymon.com" <xymon at xymon.com>
Date:   01/19/2012 08:04 PM
Subject:        [Xymon] [xymon] log parsing on windows
Sent by:        xymon-bounces at xymon.com
quoted from Massimiliano Angei


Hi all,

Is it possible to monitor log files (not event viewer) under windows machines?
For example *.log files containing particular patterns (error strings…)
I'm trying Bbwin client but using central mode I'm only capable to parse event log.

Maybe someone has an external that affords this feature…

thanks in advance!

Massimiliano A.
Attachments (1)
list Jef Jagers · Fri, 27 Jan 2012 15:42:20 +0100 ·
You are able to do this in central mode:

Below you can find a working example;


Entry ~/server/etc/client-local.cfg
[servername]
log:C:/temp/test.log:30720

Entry ~/server/etc/hobbit-clients.cfg
        LOG     C:/temp/test.log %red.stuf COLOR=red


Result can be found in the msgs service of that host:

<<
System logs at Fri Jan 27 15:34:30 2012

  Critical entries in C:/temp/test.log
  red.stuf
Regards, 
Jef Jagers

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Massimiliano Angei
Sent: donderdag, januari 19, 2012 20:06
To: xymon at xymon.com
quoted from Gautier Begin
Subject: [Xymon] [xymon] log parsing on windows

Hi all,

Is it possible to monitor log files (not event viewer) under windows
machines?
For example *.log files containing particular patterns (error
strings...) I'm trying Bbwin client but using central mode I'm only
capable to parse event log.

Maybe someone has an external that affords this feature...

thanks in advance!

Massimiliano A.