RE: [Exim] eximstats and syslogd

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Segree, Gareth
Dátum:  
Címzett: exim-users
Tárgy: 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.