vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.21k stars 1.6k forks source link

could parse_timestamp(vrl function) set timezone? #21782

Closed lddlww closed 1 week ago

lddlww commented 1 week ago

A note for the community

Use Cases

my elasticSearch sink dataset parameter is setted by %Y-%m-%d ,however vector internal %Y, %m, %d is derived from timestamp field which timezone is always utc, i wanna to set %Y-%m-%d using "Asia/Shang" timezone, but i found i can't without using either set global timestamp key option. or adding extra column which value timezone is setted from format_timestamp

problem: vector/vrl now is hardcode timezone value is utc, which result in parse_timestamp that default timezone is utc and could not be change , format_timestamp can set timezone, but return value type is string not timestamp ; if parse_timestamp could support timezone ,that's would be great

best wishes

Attempted Solutions

No response

Proposal

No response

References

No response

Version

No response

jszwedko commented 1 week ago

Hi @lddlww !

I think this issue is the same as https://github.com/vectordotdev/vector/issues/14160 so I'll close this one. https://github.com/vectordotdev/vector/issues/3333 is also related. Feel free to follow those other issues.