syslog source: allow manual timezone specification for BSD syslog messages #22704
Labels
source: syslog
Anything `syslog` source related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
BSD syslog messages (rfc3164) include the timestamp field in the format "Mmm dd hh:mm:ss".
The messages do not include a timezone specification, but are supposed to be in the local timezone of the sending device.
However, the sending device may not be in the same timezone as the receiving vector agent.
Also, some devices implement this incorrectly and use UTC for this timestamp.
This creates a need to adjust the timestamp field to adjust the timezone interpretted.
Attempted Solutions
The below transform works, however it's not as convenient as a single line to specify the timezone in the source.
Proposal
Example:
References
#3234
#4710
https://datatracker.ietf.org/doc/html/rfc3164#section-4.1.2
https://vector.dev/docs/reference/configuration/sources/syslog/
https://vector.dev/docs/reference/vrl/functions/#parse_syslog
Version
vector 0.44.0 (x86_64-unknown-linux-gnu)
The text was updated successfully, but these errors were encountered: