Question RE: Timezone in filename
22 Mar
2010
22 Mar
'10
11:07 p.m.
I've configured syslog-ng to include the timezone in the log filename -- but the value used is "07:00". Any way to get "PDT" instead?
23 Mar
23 Mar
9:45 a.m.
On Mon, 2010-03-22 at 16:07 -0700, Brian Donaldson wrote:
I've configured syslog-ng to include the timezone in the log filename -- but the value used is "07:00". Any way to get "PDT" instead?
No, syslog-ng always uses the timezone offset to make it easier to analyze. You could perhaps add this information in a name-value pair and use that in your destination filename, e.g. rewrite r_timezone { set("PDT" value("USER.TIMEZONE")); }; then use file("/var/log/${USER.TIMEZONE}"); this requires syslog-ng 3.0 or 3.1 -- Bazsi
5632
Age (days ago)
5633
Last active (days ago)
1 comments
2 participants
participants (2)
-
Balazs Scheidler
-
Brian Donaldson