[Openswan dev] rotating everything in a directory
Michael Richardson
mcr at sandelman.ottawa.on.ca
Mon Apr 12 09:59:05 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
The Openswan 2.x pluto can do per-peer logging. It creates directories
under /var/log/pluto/peer (if it exists) like:
/var/log/pluto/peer/A/B/C/D/A.B.C.D.log (IPv4)
or
/var/log/pluto/peer/AAAA/BBBB/CCCC/DDDD/EEEE/FFFF/GGGG/HHHH/AAAA:GGGG.log
(IPv6)
I would like to rotate all of these files on a regular basis (mostly
when they exceed some size). In particular, I want to make sure that
we ship some example config file.
- From my reading of the logrotate manual, I don't think that this is
possible. I can probably write patches to logrotate - but before I do, I
thought I'd ask if there were perhaps other options.
It might be that a custom program would be simpler. It wouldn't be very
much perl, certainly.
- --
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] mcr at xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBQHqSl4qHRg3pndX9AQECawP/QKTF/qvmwd+xlFrei/cDUx1k2fHXn4nU
2KUcA3xo0usDPv7UvqDLDp0eei+zrsL0Zy2l9Oavayxdp+PM3Kf4TCf52tOH3EPt
1iLnNj6vafzzRpMfFTNR0ZtTTAk9bHcwyc1x1v+bSauoXAHY3VF6CG2IwLwfAFit
652yD7z48FQ=
=EqI+
-----END PGP SIGNATURE-----
More information about the Dev
mailing list