-
Hello, community ✋ I have a question about the container logs timezone. Containerd keeps the time zone and adds it to container log timestamps. Example of timestamps in
Timezone is present, but it is dropped on collecting How can I keep the original timezone? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I don't think it's possible today, seems like it'd need a code change. @jszwedko while not exactly the same cases I've noticed an uptick in questions/requests around TZs in our timestamps - we may want to take a review of how we're handling timestamps and TZs everywhere. |
Beta Was this translation helpful? Give feedback.
-
We would like to have this opportunity because some of our customers are tight to timezones. P.S. I think it is ok that vector reads all logs in UTC timezone. If only there would be a chance to change to local or any other timezone, e .g., via VRL, we could work around this limitation. |
Beta Was this translation helpful? Give feedback.
-
What do you think about adding the optional timezone argument to the $ ts = parse_timestamp!("10-Oct-2020 16:00+00:00", format: "%v %R %:z")
t'2020-10-10T16:00:00Z'
$ res = format_timestamp!(ts, format: "%+", tz: "Europe/Berlin")
"2020-10-10T18:00:00+02:00" |
Beta Was this translation helpful? Give feedback.
vectordotdev/vrl#247