Great! I hope it's useful for people. I've made a few changes that might make it a little better. I've cleaned it up a bit, making it work more intuitively (I've only just picked up awk). It also now does the translation in the same order as the statements in syslog.conf, outputting a commented out version of the translated line before each translation. I fixed an inaccuracy in the translation which would have occurred if the same output destination is used twice in syslog.conf. I added log-device sensitivity for Linux. And finally, I added some comments to make it easier to understand. On Wed, May 02, 2001 at 11:47:49AM +0200, Balazs Scheidler wrote:
On Tue, May 01, 2001 at 06:01:41PM -0500, Jon Marks wrote:
Hi,
In order to make the transition to syslog-ng easier for people, I thought it might be useful to have an automated translation from the old syslog.conf to a working syslog-ng.conf. I came up with an awk script which works OK for me. I was targeting Solaris and AIX specifically, but off-hand, RedHat linux syslogd looks the same and I presume other UNIX variants' do, too. Try it, it could work ;)
I'd add this script to the contrib subdirectory if you don't mind.
-- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng
-- Jonathan Marks Systems Administrator, Production Systems Group Computing and Communication Services Office University of Illinois at Urbana-Champaign