> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of [email protected]
> Sent: Sunday, February 28, 2010 1:02 AM
> To: rsyslog-users
> Subject: Re: [rsyslog] rsyslog migration and syslogd.conf
> 
> On Sat, 27 Feb 2010, lanas wrote:
> 
> > Hello,
> >
> >  First, thanks to David for the reply on time stamps.
> >
> >  I have a question about perhaps being able to replace syslogd by
> > rsyslog in a so-called 'drop-in' way.  Eg.  will rsyslog work (I
> > reckon with limited possibilities) with a standard syslog config
> > file ?  That would enable a basic set of functionality as a first
> step
> > toward using rsyslog's features.
> 
> no, rsyslog will do nothing if you just feed it a syslog.conf file.

Actually, rsyslog is designed as a drop-in replacement. So it should work if
you just feed it a regular rsyslog.conf. This is controlled via the -c
option, which sets the compatibility level. If you call rsyslogd like you
called sysklogd (without the -c option), it will fall back to sysklogd
compatibility and generate the necessary config commands before parsing the
the config file. Then, -r starts up a UDP listener as it did in sysklogd. ...
At least this is how it is meant to work, I have to admit I have not tested
it lately. For various reasons, I could not add this to the automated
testbench, so I might not have noticed a regression. But if it does not work,
this is a bug and not how things are designed to work.

Rainer

> rsyslog needs a few additional instructions at the top of the file to
> load
> the modules, but below that you can paste in the syslog.conf file.
> 
> another thing that you can do is to make a generic rsyslog.conf file
> that
> includes the syslog.conf after the rsyslog specific headers.
> 
> My rsyslog.conf (on my ubuntu 9.10 laptop) has
> 
> $ModLoad imuxsock # provides support for local system logging
> $ModLoad imklog   # provides kernel logging support (previously done by
> rklogd)
> $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
> $FileOwner syslog
> $FileGroup adm
> $FileCreateMode 0640
> $DirCreateMode 0755
> $Umask 0022
> $PrivDropToUser syslog
> $PrivDropToGroup syslog
> $RepeatedMsgReduction on
> $RepeatedMsgContainsOriginalMsg on
> 
> David Lang
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to