[prev in list] [next in list] [prev in thread] [next in thread]
List: syslog-ng
Subject: [syslog-ng] Milliseconds in timestamp and black magic
From: Sergei Zhirikov <sfzhi () yahoo ! com>
Date: 2009-08-21 19:19:30
Message-ID: h6ms05$vmo$1 () ger ! gmane ! org
[Download RAW message or body]
Hi,
I'm observing something mysterious with milliseconds in timestamps.
I set frac_digits() in the global options and then I have a rewriter and
a template. Something like this:
options { frac_digits(3); };
source s { internal(); }
rewrite r { set("$ISODATE", value("MYDATE")); };
template t { template("$ISODATE ($MYDATE) $HOST $MSGHDR$MESSAGE\n"); };
destination d { file("/var/log/test.log" template(t)); };
log { source(s); rewrite(r); destination(d); };
To my total surprise the expanded value of $ISODATE in the log file
contains fraction part, but the value of $MYDATE does not! Aren't they
supposed to be the same because of the rewrite rule? Or am I doing
something wrong? (I'm using syslog-ng 3.0.4 on Linux).
--
Thanks,
Sergei.
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic