[syslog-ng]apache logs, again

Andreas Hasenack andreas@conectiva.com.br
Tue, 8 Oct 2002 12:03:37 -0300


Em Tue, Oct 08, 2002 at 11:01:42AM -0300, Andreas Hasenack escreveu:
> BTW, this is syslog-ng-1.5.21 with libol-0.3.3.
> I'll play with logger a bit more, the first impression I got now was that
> this behaviour only occurs when I pipe messages to logger, and not when
> putting the message on the command line.

Hmm, check this out:
# logger -p local7.info -t test "hi mom, it's `date`"

I get in the logs:
Out  8 12:01:17 pandora test: hi mom, it's Ter Out  8 12:01:17 BRT 2002

In another log file, where I'm using a test template, I get:
program=test year=2001, month=12, day=31, hour=00, min=00, sec=00

The template for the entry above is:
destination d_test { file("/var/log/test" 
                     template("program=$PROGRAM year=$YEAR, month=$MONTH, day=$DAY, hour=$HOUR, min=$MIN, sec=$SEC\n") template-escape(yes)); };

And SQL gets:
3822 pandora local7 info 2001-12-31 00:00:00 test: hi mom, it's Ter Out 8 12:01:17 BRT 2002

Hmm...