-
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.
Allow users to convert timezone in logstash module filesets (#9797)
* Allow users to convert timezone in logstash/log fileset * Forgot to remove unnecessary field * Allow users to convert timezone in logstash/slowlog fileset * Adding CHANGELOG entry * Updating expected results of tests
- Loading branch information
1 parent
d716d89
commit d6c0394
Showing
11 changed files
with
95 additions
and
38 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
38 changes: 19 additions & 19 deletions
38
filebeat/module/logstash/log/test/logstash-plain.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,27 +1,27 @@ | ||
[ | ||
{ | ||
"@timestamp": "2017-10-23T14:20:12,046", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "log", | ||
"event.module": "logstash", | ||
"input.type": "log", | ||
"log.offset": 0, | ||
"logstash.log.level": "INFO", | ||
"logstash.log.message": "Initializing module {:module_name=>\"fb_apache\", :directory=>\"/usr/share/logstash/modules/fb_apache/configuration\"}", | ||
"@timestamp": "2017-10-23T14:20:12.046Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "log", | ||
"event.module": "logstash", | ||
"input.type": "log", | ||
"log.offset": 0, | ||
"logstash.log.level": "INFO", | ||
"logstash.log.message": "Initializing module {:module_name=>\"fb_apache\", :directory=>\"/usr/share/logstash/modules/fb_apache/configuration\"}", | ||
"logstash.log.module": "logstash.modules.scaffold" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2017-11-20T03:55:00,318", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "log", | ||
"event.module": "logstash", | ||
"input.type": "log", | ||
"@timestamp": "2017-11-20T03:55:00.318Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "log", | ||
"event.module": "logstash", | ||
"input.type": "log", | ||
"log.flags": [ | ||
"multiline" | ||
], | ||
"log.offset": 175, | ||
"logstash.log.level": "INFO", | ||
"logstash.log.message": "(0.058950s) Select Name as [person.name]\n, Address as [person.address]\nfrom people\n", | ||
], | ||
"log.offset": 175, | ||
"logstash.log.level": "INFO", | ||
"logstash.log.message": "(0.058950s) Select Name as [person.name]\n, Address as [person.address]\nfrom people\n", | ||
"logstash.log.module": "logstash.inputs.jdbc " | ||
} | ||
] | ||
] |
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
30 changes: 15 additions & 15 deletions
30
filebeat/module/logstash/slowlog/test/slowlog-plain.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,19 +1,19 @@ | ||
[ | ||
{ | ||
"@timestamp": "2017-10-30T09:57:58,243", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "logstash", | ||
"input.type": "log", | ||
"log.offset": 0, | ||
"logstash.slowlog.event": "\"{\\\"@version\\\":\\\"1\\\",\\\"@timestamp\\\":\\\"2017-10-30T13:57:55.130Z\\\",\\\"host\\\":\\\"sashimi\\\",\\\"sequence\\\":0,\\\"message\\\":\\\"Hello world!\\\"}\"", | ||
"logstash.slowlog.level": "WARN", | ||
"logstash.slowlog.message": "event processing time {:plugin_params=>{\"time\"=>3, \"id\"=>\"e4e12a4e3082615c5427079bf4250dbfa338ebac10f8ea9912d7b98a14f56b8c\"}, :took_in_nanos=>3027675106, :took_in_millis=>3027, :event=>\"{\\\"@version\\\":\\\"1\\\",\\\"@timestamp\\\":\\\"2017-10-30T13:57:55.130Z\\\",\\\"host\\\":\\\"sashimi\\\",\\\"sequence\\\":0,\\\"message\\\":\\\"Hello world!\\\"}\"}", | ||
"logstash.slowlog.module": "slowlog.logstash.filters.sleep", | ||
"logstash.slowlog.plugin_name": "sleep", | ||
"logstash.slowlog.plugin_params": "{\"time\"=>3, \"id\"=>\"e4e12a4e3082615c5427079bf4250dbfa338ebac10f8ea9912d7b98a14f56b8c\"}", | ||
"logstash.slowlog.plugin_type": "filters", | ||
"logstash.slowlog.took_in_millis": 3027, | ||
"@timestamp": "2017-10-30T09:57:58.243Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "logstash", | ||
"input.type": "log", | ||
"log.offset": 0, | ||
"logstash.slowlog.event": "\"{\\\"@version\\\":\\\"1\\\",\\\"@timestamp\\\":\\\"2017-10-30T13:57:55.130Z\\\",\\\"host\\\":\\\"sashimi\\\",\\\"sequence\\\":0,\\\"message\\\":\\\"Hello world!\\\"}\"", | ||
"logstash.slowlog.level": "WARN", | ||
"logstash.slowlog.message": "event processing time {:plugin_params=>{\"time\"=>3, \"id\"=>\"e4e12a4e3082615c5427079bf4250dbfa338ebac10f8ea9912d7b98a14f56b8c\"}, :took_in_nanos=>3027675106, :took_in_millis=>3027, :event=>\"{\\\"@version\\\":\\\"1\\\",\\\"@timestamp\\\":\\\"2017-10-30T13:57:55.130Z\\\",\\\"host\\\":\\\"sashimi\\\",\\\"sequence\\\":0,\\\"message\\\":\\\"Hello world!\\\"}\"}", | ||
"logstash.slowlog.module": "slowlog.logstash.filters.sleep", | ||
"logstash.slowlog.plugin_name": "sleep", | ||
"logstash.slowlog.plugin_params": "{\"time\"=>3, \"id\"=>\"e4e12a4e3082615c5427079bf4250dbfa338ebac10f8ea9912d7b98a14f56b8c\"}", | ||
"logstash.slowlog.plugin_type": "filters", | ||
"logstash.slowlog.took_in_millis": 3027, | ||
"logstash.slowlog.took_in_nanos": 3027675106 | ||
} | ||
] | ||
] |
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