open-telemetry / opentelemetry.io

The OpenTelemetry website and documentation
https://opentelemetry.io
Creative Commons Attribution 4.0 International
564 stars 1.22k forks source link

PST Timezone is not acceptable #5640

Closed vberegov closed 1 week ago

vberegov commented 1 week ago

Hi team, I have very simple configuration for syslog interception with location value. I need to change it to PST - however the value is not acceptable. (not: EST works fine) Version : otelcol-contrib version 0.114.0

receivers: syslog: udp: listen_address: "0.0.0.0:55552" protocol: rfc3164 location: PST

Error: Error: failed to build pipelines: failed to create "syslog" receiver for data type "logs": failed to resolve syslog config: failed to load location PST: unknown time zone PST 2024/11/19 20:13:53 collector server run finished with error: failed to build pipelines: failed to create "syslog" receiver for data type "logs": failed to resolve syslog config: failed to load location pst: unknown time zone PST

Any ideas?

tiffany76 commented 1 week ago

Hi @vberegov, try looking in the syslog receiver's documentation. For the location field, the description is:

The geographic location (timezone) to use when parsing the timestamp (Syslog RFC 3164 only). The available locations depend on the local IANA Time Zone database. This page contains many examples, such as America/New_York.

If this doc doesn't resolve your issue, try posting your question in the #otel-collector slack channel.

vberegov commented 1 week ago

Nope, try all the options listed - PT/PDT/PST I cannot get to this workspace ... what is it name?

tiffany76 commented 1 week ago

I cannot get to this workspace ... what is it name?

It's the CNCF OpenTelemetry Slack. You can request an invitation.

tiffany76 commented 1 week ago

Also, based on the example given in the docs, maybe you could try America/Los_Angeles.

vberegov commented 1 week ago

That worked!!!!! Very strange - UTC and EST supported, while PST not :) Thanks anyway

tiffany76 commented 1 week ago

Glad it worked. I'll close this issue now.