Playing with linecount and a set of files

thomas.seglard.enata at cnp.fr thomas.seglard.enata at cnp.fr
Fri Nov 3 19:14:08 CET 2006


Hi,

I'm playing with linecount facility and it's really amazing. I will use it 
to trace connection numbers from applications and error messages from log 
files. I'm reading documentation on it for several hours (it's friday 
afternoon so I'm a bit slow :D) and don't figure how to 'grep' words from 
a set of files and graph the total number of matches. Here is an example 
of what I want to do. 

My log files are within this directory /projets/mut/home/mutrec2/wls_
traitement/mut-domain2/logs/ . Then I would like to run this command and 
be able to graph result : 

$ grep -i -E '(SEVERE|Error)' *log*|wc -l
        98

Is there a way to do such thing ?
Best regards,

Thomas



Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.

*****

This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.




More information about the Xymon mailing list