-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add timezone to the exported event #3974
Comments
Hi @monicasarbu. What about a config option for example |
There are 3 ways you can display timezone:
I think we should have support for all three. In order to decide one or another, ideally would be to configure the timezone format, instead of having a boolean config option for each. I think the best would be to use the format that Logstash supports for timezone, but I didn't have the chance to play with it. |
In logstash you have define time as follows |
Hi @monicasarbu. Do you had the chance to look at logstash and decide what format you would use? |
@maddin2016 I think the 2nd and 3rd options are more important, not sure about the 1st one. The 3rd option is nice as you can calculate the local time without the need to retrieve timezone information from external systems. Instead of using a boolean option for the timezone format, I would say to use an option like:
|
+1 on the format config option. The reason I also like option 1 is because if makes filtering for all machines in |
But to work with logstash we need the second option. Why not using all three options? |
+1 on all three option. With the proposed config from monica above, this should be possible. |
Ok. Then i open a PR for this issue. |
I would like to do all timezone processing on filebeat end itself and avoid using date plugin in logstash.
|
Using the add_locale processor FIlebeat can add the timezone information to the event. Then in Logstash or Ingest Node you can use the value of this field as the timezone argument to the date filter. |
Closing because this feature has been implemented. |
There are a few requests to export timezone in order to be able to find the local timestamp. For that, we think the best option would be to export also the timezone (optionally) in the event, and make sure the @timestamp is always sent in UTC.
TODOs:
add_locale
processor to add timezone in the event Add processor to set timezone for an event #3902add_locale
processor. For exampleAmerica/Curacao
orCEST
The text was updated successfully, but these errors were encountered: