-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Core] Elasticsearch compatible timezone defaults #89689
Comments
Pinging @elastic/kibana-core (Team:Core) |
Can we just change the default to |
@restrry This issue talks about changing the default timezone behavior of the legacy logging system but going back to previous offline discussions, the question that was raised was about the KP logging system. |
@lukeelmers @restrry I have a few questions that I'd like to bounce off of you: Pre-amble: This is not anticipated to change (or is it?) Current behavior Observations If I'm interpreting our formatting correctly, this is the same format as what would be returned if we changed the default to be If we hard coded the returned default format to be in the current timezone with the offset, i.e. changed e.g.
Changing
to
the same pattern-format output would be:
Is it not then better to rather change the default format in the date conversion to fallback to Please let me know if I'm completely off the mark here. Timezones and I don't have the greatest track record 😊 |
@TinaHeiligers That's a good point - providing the offset argument to If the goal is to have logs default to the host timezone like ES does, it sounds like the main change that needs to happen would be to do Then we could either:
IMO option (2) sounds like potential for a debugging nightmare -- If you are looking at a log with a timestamp that's anything but GMT, you probably are going to want to see that offset -- so I'd probably go with (1). I suppose we would also want to deprecate |
@restrry The legacy logging timezone default was changed from UTC to the host timezone in #22696. It appears that the documentation wasn't updated to reflect the change. As it stands right now,
@lukeelmers I agree that the history of Without any docs on new logging configuration, giving details on how to set the timezone might not be very useful (unless folks actually dig through to the logging README) and I think we need to wait until we add these before deprecating Would we want to remove WDYT? |
Closed by #90368 |
Kibana legacy logging supports timezone configuration with default to UTC timezone:
However, I talked to @pgomulka about default ES settings and it seems to be different:
To simplify debugging, Kibana should align settings with Elasticsearch.
We need to update the date formatting
and document how customers can change timezone via config
The text was updated successfully, but these errors were encountered: