Here's a log line from an appliance coming in as UTC:
<166>2023-06-13T16:03:44Z ..................
We store this as in files, in Europe/London timezone:
destination d_all {
file("/srv/logs/$HOST-$FACILITY-$YEAR-$MONTH-$DAY-$HOUR.log"
time_zone("Europe/London");
};
The time_zone("Europe/London")
here works in that the log lines themselves have been converted. However, the $HOUR in the filename is resolutely not shifting from UTC and we end up with logs not being filed into the correct location (they're out by one hour in summer).
How do I update the $HOUR to use the timezone specified in the destination stanza? The documentation seems to say "When macro expansions are used in the destination filenames, the local timezone is used.", but that is not my experience as Europe/London is my local timezone and yet it is choosing the $HOUR of the log file being received.
I am unable to change the time-zone for the appliance. That's just how it is sadly.
This is on a Debian system running 3.28.1-2+deb11u1