Set timezone for elasticsearch output#3743
Set timezone for elasticsearch output#3743martinscholz83 wants to merge 2 commits intoelastic:masterfrom
Conversation
|
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run. |
1 similar comment
|
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run. |
|
This PR sets the full index name on startup. But for beats potentially running multiple days, the index must be set per event. Plus, the PR creates a discrepancy between event timestamp and index name. The problem is better solved with a configurable processor adjusting the events timestamp before passing the event to the output. |
|
Something like ?? |
|
yeah, something like |
|
|
|
After reading the docs from logstash i would prefer the following config |
|
I think we have to add a new |
|
Or is it better to add a new parameter like |
|
Is there a reason we need this on the beats side? Assuming we use a field to set the time zone, could the conversion also done in Logstash? |
|
I think the naming |
|
In general if a feature is not required on the edge node and could be handled in LS or Ingest, that is the place I prefer to have it to keep beats as simple as possible. |
|
Can we close this? |
|
@maddin2016 Good question. I think we need a solution for it, the question is just where it happens in the stack. If the above described workaround works, I would suggest we close it? |
|
@maddin2016 It's a good idea to add |
Discussed here, this PR gives the opportunity to set
timezoneas a parameter for elasticsearch output which is used when there is no index name is set.