-
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.
Cherry-pick #9761 to 6.6: Allow users to convert timezone in elastics…
…earch module filesets (#10403) * Allow users to convert timezone in elasticsearch module filesets (#9761) This PR updates the following filesets in the `elasticsearch` Filebeat module to accept a `var.convert_timezone` configuration setting: * [x] server * [x] audit * [x] slowlog * [x] deprecation The `gc` fileset was not modified because Elasticsearch GC logs already emit timestamps with timezone information in them. Fixes partially #9756. Related: #9797. (cherry picked from commit 3559e58) * Regenerating generated files * Fixing duplicated header in CHANGELOG * Updating generated file
- Loading branch information
1 parent
c047bee
commit fc17d76
Showing
22 changed files
with
432 additions
and
291 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
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
88 changes: 44 additions & 44 deletions
88
filebeat/module/elasticsearch/deprecation/test/elasticsearch_deprecation.log-expected.json
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 |
---|---|---|
@@ -1,54 +1,54 @@ | ||
[ | ||
{ | ||
"@timestamp": "2018-04-23T16:40:13,737", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"offset": 0, | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"prospector.type": "log", | ||
"@timestamp": "2018-04-23T16:40:13.737Z", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"offset": 0, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-04-23T16:40:13,862", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"offset": 137, | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"prospector.type": "log", | ||
"@timestamp": "2018-04-23T16:40:13.862Z", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"offset": 137, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-04-23T16:40:14,792", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"offset": 274, | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"prospector.type": "log", | ||
"@timestamp": "2018-04-23T16:40:14.792Z", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"offset": 274, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-04-23T16:40:15,127", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"offset": 411, | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"prospector.type": "log", | ||
"@timestamp": "2018-04-23T16:40:15.127Z", | ||
"elasticsearch.server.component": "o.e.d.a.a.i.t.p.PutIndexTemplateRequest", | ||
"event.dataset": "elasticsearch.deprecation", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "deprecation", | ||
"input.type": "log", | ||
"log.level": "WARN", | ||
"message": "Deprecated field [template] used, replaced by [index_patterns]", | ||
"offset": 411, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
} | ||
] | ||
] |
Oops, something went wrong.