Re: system.log parsing
Tom Hendrikx <[email protected]> Sat, 8 Oct 2016 15:14:57 +0200
| Newsgroups | gmane.mail.spam.dspam.user |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============9053945169859616106== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1r5RAaNJ2auBuHFE205m3klRmwsb0HNrT" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1r5RAaNJ2auBuHFE205m3klRmwsb0HNrT Content-Type: multipart/mixed; boundary="1D9a9c8uAt99fKPuRnCsxBABuph960h6E"; protected-headers="v1" From: Tom Hendrikx <[email protected]> To: [email protected] Message-ID: <[email protected]> Subject: Re: [Dspam-user] system.log parsing References: <[email protected]> In-Reply-To: <[email protected]> --1D9a9c8uAt99fKPuRnCsxBABuph960h6E Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 07-10-16 15:32, [email protected] wrote: > Hi list,=20 >=20 > I want to parse the dspam system.log to add to a database. The "space" > separated format makes it difficult to parse. Does anyone has some kind= > of grep / awk / regex to parse the system.log fields? >=20 > Thanks! >=20 A few years ago I wrote a munin plugin in shell that parses DSPAMs system.log. You can find it at github: https://github.com/munin-monitoring/contrib/blob/master/plugins/dspam/dsp= am_activity Kind regards, Tom --1D9a9c8uAt99fKPuRnCsxBABuph960h6E-- --1r5RAaNJ2auBuHFE205m3klRmwsb0HNrT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX+PFRAAoJEJPfMZ19VO/1rT8P/ifdYyZYDf0rYFROXs0ctjQD r6EfxLTpVFC8UJ00QZ5Uuo+OuUQxz7K19sEuWDPbRKto3FLkxpVmFXaB14d5w0wd GcfRHL8ZkcGYIRuJIVfPu2TrNVqkSyosdKIO5TLrU3T+Pwzp8C11CoTJgWNsziVg FL66XSx9QCLD1h8TpDHqAc4lAXUUwoTpnu5TZB+DjC5CC4lJ+SWW5xirFtt91QFd Fj7UsOB9W6lxZPpGrpTZlBSn5T6xNjkqXHLZEevoeBxA2N+z4YZ15932QVK1Ssep pjKPVrUg3ECoYMSMpNDggwCydzK3v3dH7UNO9qfvtjEGXrm/Iks/avG2IEgoh6db CvbTPgqpoI9eqrHXMTBOvCGSo388F7pWU7sqAGo6QKK7inGI6lPZYezTiewFNYKX 4Yk5PZNBs9HqD360pt8A4g2iWRzVB/abF3DaoVMFeB2KRU9de/ndwP6P+zUs1c4C 9PicyOCRaYNFxCXp6bvUuXcmNjUUUKUXsbZ+E5IvjAs4Qby/xKWq+i+IdC49LqTJ z7N9hVLQVlEOFcY5Db4qABKE0bQGreQk2gysMYCDYSn/XOKttoIOfVlhex+CZJ1r tknhyjzfWckBJAfDwQHph2TiEQXG8E6lhAYNxvk1z3SzgI2PIT+hmCPusaQxRpqh eNLPsmQwGbSX4DK5gXI+ =XNvK -----END PGP SIGNATURE----- --1r5RAaNJ2auBuHFE205m3klRmwsb0HNrT-- --===============9053945169859616106== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot --===============9053945169859616106== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Dspam-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspam-user --===============9053945169859616106==--