Since nobody seems to be picking this one up...
If you look in the contrib subdirectory of the diald source (from something
like 0.14 up to the current 0.99.2 release) you'll see a directory called
"logger". This contains a series of perl scripts and "templates" to do log
rotation and analysis. The templates describe things to look for (or
ignore) in log files.
The perl scripts include logreporter, which does the actual reading of the
diald log and processing according to the template file. A script called
runlogger is called daily by cron to rotate the log files, and generates a
daily report to standard output. I just run it as root in root's crontab,
and the output is automatically mailed to the person aliased by root.
You'll also find two more scripts, one weekly, one monthly. The weekly
script seems to work well, and is probably the most useful of the bunch.
The monthly script doesn't seem to work anymore (but I vaguely seem to
recall that it did work back in the days of diald 0.14 and kernel 1.2.13).
They adequately report what diald is doing, and can easily warn sites using
diald when something is wrong, like abnormally many unsuccessful connection
attempts, as long as someone on the site actually reads them. They're not
polished, make no attempt at analyzing anomalous behavior in the log files.
But whet the hell, they're free, and they certainly have the indisputible
advantage of existing. And since in all the years that I've been using them
as is, out of the box with no changes whatsoever, I've never gotten around
to hacking them into better shape, who am I to complain?
If anyone out there has an improvement on the logging system, speak up!
Don't be shy, if it's useful, I'm sure plenty of people are interested.
John
At 23:12 -0500 5/12/99, Jake Colman wrote:
>I am reposting a message that I initially posted last week but for which I
>have yet to receive any replies. Perhaps someone seeing this for the first
>time might be able to help.
>
>TIA!
>
>
>To: <[EMAIL PROTECTED]>
>Subject: diald log maintenance
>From: Jake Colman <[EMAIL PROTECTED]>
>Date: 29 Nov 1999 09:59:49 -0500
>Message-ID: <[EMAIL PROTECTED]>
>Lines: 25
>User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) XEmacs/21.1 (Bryce Canyon)
>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>
>
>Can anyone point me to scripts for diald log maintenance? Specifically:
>
>1) I'd like to use logrotate to rotate my diald logs. What would be the best
> way to do this such that diald is temporarily suspended, the logs is cut
> off, and diald restarted using a new log?
>
>2) Some kind of script (perl?) to analyze the log weekly and email me a
> summary of calls made with durations? This would be run via a weekly cron
> job.
>
>TIA!
>
>--
>Jake Colman
>
>Principia Partners LLC Phone: (201) 946-0300
>Harborside Financial Center Fax: (201) 946-0320
>902 Plaza II Beeper: (800) 505-2795
>Jersey City, NJ 07311 E-mail: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]
> web: http://www.ppllc.com
>
>"Every time I think I've idiot-proofed something someone comes up with a
>better idiot"
>
>
>--
>Jake Colman
>
>Principia Partners LLC Phone: (201) 946-0300
>Harborside Financial Center Fax: (201) 946-0320
>902 Plaza II Beeper: (800) 505-2795
>Jersey City, NJ 07311 E-mail: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]
> web: http://www.ppllc.com
>
>"Every time I think I've idiot-proofed something someone comes up with a
>better idiot"
__________________________________________________________________
John Seifarth http://www.waw.be/waw/
Words & Wires SPRL [EMAIL PROTECTED]
Computer Consulting & Language Services Voice: (+) 32-2-660-3943
1160 Brussels, Belgium Fax: (+) 32-2-675-3922
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]