[syslog-ng]Re: syslog-ng suggestion

Balazs Scheidler bazsi@balabit.hu
Fri, 9 Mar 2001 12:24:50 +0100


On Mon, Mar 05, 2001 at 06:09:19PM -0600, Lee Eakin wrote:
> Well, it appears the I did not include the attachment (patch) which was the
> whole point of the message.  My apologies if I DID include it and this is
> just wasted bandwidth.

Sorry for not reacting your message sooner.

> > For instance, 'logger test' prints:
> > 
> >         Mar  2 20:18:15 japh[user,notice] logger: test
> > 
> > My patch is against 1.4.11 (current stable).I hope you will consider it's
> > inclusion, or some variation of this patch.

You can achieve the same by using a release in the new 1.5.x branch, and
using the template() feature of file destinations like this:

destination d_file { file("/var/log/messages" template("$DATE $HOST[$FACILITY,$PRIORITY] $PROGRAM $MSG\n"); };

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1