-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local timezone for TZ conversion in the FB system module (#5647)
* Use local timezone for TZ conversion in the FB system module This adds a `convert_timezone` fileset parameter that, when enabled, does two things: * Uses the `add_locale` processor in the FB proespector config * Uses `{{ beat.timezone }}` as the `timezone` parameter for the date processor in the Ingest Node pipeline. This parameter accepts templates starting with ES 6.1. For the moment the `convert_timezone` flag is off by default, to keep backwards compatibility and because it results in an error when used with ES < 6.1. Closes #3898. For now this is only applied to the system module, but likely more modules would benefit from this feature. * Automatically turn off given options depending on the ES version. * Added the convert_timezone flag to the auth fileset as well * Added tests * Docs & changelog * Addressed comments
- Loading branch information
1 parent
c5a9f3a
commit e125cf1
Showing
17 changed files
with
203 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*`var.convert_timezone`*:: | ||
|
||
If this option is enabled, Filebeat reads the local timezone and uses it at log | ||
parsing time to convert the timestamp to UTC. The local timezone is also added | ||
in each event in a dedicated field (`beat.timezone`). The conversion is only | ||
possible in Elasticsearch >= 6.1. If the Elasticsearch version is less than 6.1, | ||
the `beat.timezone` field is added, but the conversion to UTC is not made. The | ||
default is `false`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.