[syslog-ng] timestamp in log files
Gustavo Mendes de Carvalho
gmcarvalho at gmail.com
Mon Nov 13 01:37:44 CET 2006
Hi there,
I don't know why, when I tried to use a template definition, I received
that error message, but when I used a template statement togheter with
destination statement, it was OK
destination d_dest-name { file("/var/log/file.log" template("$UNIXTIME
$ISODATE $HOST $MSG\n") ); };
Gustavo
Gustavo Mendes de Carvalho escreveu:
> Hi there,
>
> I found minimum version, and I'm using version 1.6.5 for Debian Sarge,
> but I receive this message when I try to start syslog-ng
>
> Parse error reading configuration file, exiting. (line 39)
> start failed.
>
> My line 39 is
> template t_name { template("$UNIXTIME $ISODATE $ HOST $MSG\n"); };
>
> What is wrong in this line ?
>
> Regards
>
> Gustavo
> Gustavo Mendes de Carvalho escreveu:
>> Hi Balazs
>>
>> Which minimum syslog-ng version is needed to use template statement ?
>>
>> Thnaks in advance
>>
>> Gustavo
>>
>> Balazs Scheidler escreveu:
>>> you need the $UNIXTIME macro, see
>>> http://www.balabit.hu/products/syslog-ng/reference-2.0/syslog-ng.html/index.html#macros
>>>
>>>
>>>
>>
>>
>
>
--
Gustavo Mendes de Carvalho
gmcarvalho at gmail.com
More information about the syslog-ng
mailing list