Logwatch scripts for mysql/strongswan

Johannes Kastl <[email protected]> Wed, 18 Jan 2017 21:14:30 +0100
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============2050061990956801437==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="k9afp8jnqgnbvNDujeMmr6hmEodMvAOoP"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--k9afp8jnqgnbvNDujeMmr6hmEodMvAOoP
Content-Type: multipart/mixed; boundary="cRugM9BuGSlFnK3P3OhpQDM6gKld37feU";
	protected-headers="v1"
From: Johannes Kastl <[email protected]>
To: [email protected]
Message-ID: <f5946990-605d-a210-f1a0-4d14a10823fe-uHrwr0oipQiELgA04lAiVw@public.gmane.org>
Subject: Logwatch scripts for mysql/strongswan

--cRugM9BuGSlFnK3P3OhpQDM6gKld37feU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear all,

I was looking for logwatch scripts for mysql and strongswan and found
only very few. And thought I could adapt them myself. Alas, I can't...

I found this
https://github.com/bbelyeu/logwatch/ (for mysql) and this
https://github.com/jbeker/logwatch-strongswan (for strongswan).

I know this at the moment:

I need a service definition in conf/services/foobar.conf that sets a
logfile group name:
LogFile =3D whatever

Then I need a definition in conf/logfiles/whatever.conf (or
foobar.conf?) that specifies which files this group exactly is made up of=
:

LogFile =3D /var/log/some.log

And then I need a script that does the actual magic, which needs to be
in scripts/services/foobar (as my service definition is called
foobar.conf, right?).

So first try would be to use the example filter script in the HOWTO
(HOWTO-Customize-LogWatch) and see, if the right files get collected
and piped into the script.

If this example script works, I could try out the scripts from the two
github repos. Is there a nice command that just tests one script?
Using this seems kind of overkill:
/usr/sbin/logwatch --debug HIGH --range YESTERDAY

Thanks in advance, I'd be glad for any help I can get... ;-)

Johannes




--cRugM9BuGSlFnK3P3OhpQDM6gKld37feU--

--k9afp8jnqgnbvNDujeMmr6hmEodMvAOoP
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
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlh/zKsACgkQzi3gQ/xETbJ0BQCfdg7mh97R6GCEOF86uq6bcb4H
dHEAniME/kj8owOmJ+KKgulJJDWhyMK5
=tOLs
-----END PGP SIGNATURE-----

--k9afp8jnqgnbvNDujeMmr6hmEodMvAOoP--


--===============2050061990956801437==
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
--===============2050061990956801437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel

--===============2050061990956801437==--