Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97151 - mailgraph and syslog-ng logs
Summary: mailgraph and syslog-ng logs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High trivial (vote)
Assignee: Mark Loeser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-26 16:32 UTC by Andrej Kacian (RETIRED)
Modified: 2005-06-26 19:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for syslog-ng logs (maigraph-1.11-syslog-ng.patch,1.57 KB, patch)
2005-06-26 16:33 UTC, Andrej Kacian (RETIRED)
Details | Diff
the real patch (mailgraph-1.11-syslog-ng.patch,421 bytes, patch)
2005-06-26 16:36 UTC, Andrej Kacian (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Kacian (RETIRED) gentoo-dev 2005-06-26 16:32:34 UTC
As we spoke on IRC already, mailgraph doesn't find logs on my mailserver tasty. They're in following format:
Jun 27 01:29:56 src@kerberos postfix/smtpd[7551]: disconnect from localhost[127.0.0.1]

I have found out that the regexp used to parse lines doesn't like the @ in "src@kerberos", thus I modified it a bit, and voila! I can see beautiful graphs from mailgraph.cgi.

Patch will be attached in a second, maybe it could be sent upstream?
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-06-26 16:33:04 UTC
Created attachment 62014 [details, diff]
patch for syslog-ng logs
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2005-06-26 16:36:10 UTC
Created attachment 62017 [details, diff]
the real patch

Oops, looks like I renamed and attached wrong patch from my filesystem.
Attaching correct one.

This should teach me to clean up my ~/ every once in a while. :)
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-06-26 19:09:50 UTC
Looks good to me.  Added to mailgraph-1.11-r1, and am sending upstream.  Thanks :)