-
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
Remove timezone conditionals from pipeline template #12253
Remove timezone conditionals from pipeline template #12253
Conversation
Some filebeat modules can optionally convert timezones, this option works by: * Adding a field with the timezone to the generated events * Conditionally adding the timezone to the date processor in the ingest pipeline when installed This results in two possible pipelines, that are going to depend on the configuration used on setup. This is problematic because doesn't allow multiple beats to have different settings, and is also problematic when users want to change the setting, as the pipeline needs to be installed again. This change removes the condition from the template, and adds an additional date processor that uses the timezone only if this value is available. This way the installed pipeline is always the same, can be used with filebeats with different configurations and doesn't need to be updated if the setting changes in filebeat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ on this approach. We should apply this to all conditions we have in the pipelines if possible.
I wonder if this deserves a changelog entry as in case someone had it disabled but has the field, it would do processing now. I would argue this is expected and would even fix some deployments which were broken before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsoriano WDYT about the changelog?
5ee73a6
to
7a5c920
Compare
Some filebeat modules can optionally convert timezones, this option
works by:
pipeline when installed
This results in two possible pipelines, that are going to depend on the
configuration used on setup. This is problematic because doesn't allow
multiple beats to have different settings, and is also problematic when
users want to change the setting, as the pipeline needs to be installed
again.
This change removes the condition from the template, and adds an
additional date processor that uses the timezone only if this value is
available. This way the installed pipeline is always the same, can be
used with filebeats with different configurations and doesn't need to be
updated if the setting changes in filebeat.
To be applied in other modules too if approved.