RE: [Exim] eximstats and syslogd

Pàgina inicial
Delete this message
Reply to this message
Autor: Segree, Gareth
Data:  
A: Segree, Gareth, exim-users
Assumpte: RE: [Exim] eximstats and syslogd
The syslog format is like the following.
Oct 1 15:11:18 host02 exim[17184]: 2002-10-01 15:11:18

I really want to strip off the first portion.

-----Original Message-----
From: Segree, Gareth [mailto:Gareth.Segree@gleanerjm.com]
Sent: Tuesday, October 01, 2002 2:34 PM
To: exim-users@???
Subject: RE: [Exim] eximstats and syslogd


That did not work.
The output is coming out the same.

-----Original Message-----
From: Steve Campbell [mailto:steve.campbell@bt.net]
Sent: Tuesday, October 01, 2002 2:17 AM
To: Segree, Gareth
Cc: exim-users@???
Subject: Re: [Exim] eximstats and syslogd


Gareth,

> The date format for my syslog is in the form Sep 10 2002 13:20:22
> What would I need to put in the eximstat to get it to work with this
> format (instead of yyyy-mm-dd hh:mm:ss which is the format that
> exim writes to)?


I'm loath to modify eximstats to be able to parse syslog timestamps, as
the timestamp parsing section is time critical and needs to be as
simple and fast as possible. Also, there are a variety of different
syslog time formats so it would be difficult to put in a simple
solution which would satisfy everyone.

Instead, you could use a pre-parser to process syslog and then pass the
results to eximstats. I've written one and attached it. To use, just do

syslog_to_mainlog.pl Syslog_file | eximstats

I've never tried parsing syslog output before, so let me know how how it
goes!

Steve.

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##