Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward output time_as_integer #1740

Merged

Conversation

davide-rossi-ce
Copy link
Contributor

This PR adds support for the time_as_integer configuration parameter to the Forward Output.
It inclused the addition of a simple test case for the Forward Output.

As specified in the fluentd 0.14 release notes ( https://www.fluentd.org/blog/fluentd-v0.14.0-has-been-released ), when this parameter is set to "true", the events are forwarded formatting the event time as an epoch integer, using second resolution.
If false, which is the default value, the events are sent as binary data with nanosecond resolution, which crashes old Fluentd versions.

In some occurrences, this settings can also be useful to forward events to Logstash instances,
because Logstash' "fluent" codec by default is not compatible with the nanosecond resolution binary data that comes from Fluentd.

@pepov pepov requested a review from OverOrion May 21, 2024 07:49
@pepov pepov merged commit 017e076 into kube-logging:master May 21, 2024
17 checks passed
@pepov pepov added the enhancement New feature or request label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants