Bazsi's blog

Guarding Your Business

Posts Tagged ‘SCL’

syslog-ng now supports the syslog.conf file format

Thursday, September 30, 2010 @ 12:09 PM Author: Balázs Scheidler

People complained that syslog-ng is not a drop-in syslogd replacement and you have to learn a new configuration file format. Although I really think that syslog-ng’s way is superior to the old syslog.conf style, it is true that for someone not familiar with syslog-ng, the syntax of the configuration is something that needs to be learnt.

Courtesy of Jonathan W. Marks who contributed a syslogd -> syslog-ng translator back in the day, I’ve commited an SCL plugin that can be used to convert syslog.conf file to syslog-ng configuration without any manual hassles. SIGHUP and the like immeditately work well, as it is the syslog-ng config parser which drives the conversion.

It is not meant to be used for anything more but migration, but for that it can be handy.

You still have to create a static syslog-ng configuration file though, but that’s static and looks like this:

@version: 3.2
@include “scl.conf”

syslogconf()

So now users have a choice which one they prefer.