-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
parser: add Time_System_Timezone #8164
Conversation
6af6174
to
72ed839
Compare
0fab094
to
7fa0fc8
Compare
92ee69f
to
2e1fcb2
Compare
The MacOS test failure looks like a flake to me. |
Signed-off-by: braydonk <braydonk@google.com>
The Windows unit test failure looks like a flake; I didn't change anything in that test with this PR. |
A good PR, can't wait for it to be validated and included in a release... |
Hi @braydonk, |
nginx error_log is already chomping at the bit |
@braydonk thanks for this contribution! we are ready to start the merge. Would you please split the commits per interface ? we will need as a minimum commits for:
thank you |
I've pushed a new PR with clean commits on #9006 |
merged in #9006 |
Added a new config option for parsers called
time_system_timezone
which will fall back tomktime
for tm to time conversion which will force the usage of the system timezone.Fixes #593
Testing
Before we can approve your change; please submit the following in a comment:
a.txt
parser.conf
config.conf
Linux
Note that the timestamps printed from
date -d
can be compared with the log lines froma.txt
above. They are both correctly interpreted as being the time in the timestamp at my system timezone, which is Eastern Time. Daylight savings is correctly determined for Oct 17, which occurs before the clocks go back on Nov 5.If your system is in a different timezone, running
TZ=EST5EDT ./fluent-bit ... etc
should produce the same result as what I got.Windows
With my Windows machine set to the same timezone as my Linux machine, I got the same timestamp results.
(I couldn't tell you why the output from stdout is mangled like that, but it's the same on master 🤷 )
Documentation
fluent/fluent-bit-docs#1388
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.