forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
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 elasticsearch module filesets (ela…
…stic#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 elastic#9756. Related: elastic#9797. (cherry picked from commit 3559e58)
- Loading branch information
1 parent
9f4b205
commit f87f2ef
Showing
22 changed files
with
647 additions
and
504 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
210 changes: 105 additions & 105 deletions
210
filebeat/module/elasticsearch/audit/test/test.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,121 +1,121 @@ | ||
[ | ||
{ | ||
"@timestamp": "2018-06-19T05:16:15,549", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "147.107.128.77", | ||
"elasticsearch.audit.principal": "i030648", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:16:15,549] [rest] [authentication_failed] origin_address=[147.107.128.77], principal=[i030648], uri=[/_xpack/security/_authenticate]", | ||
"offset": 0, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:16:15,549Z", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "147.107.128.77", | ||
"elasticsearch.audit.principal": "i030648", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:16:15,549] [rest] [authentication_failed] origin_address=[147.107.128.77], principal=[i030648], uri=[/_xpack/security/_authenticate]", | ||
"offset": 0, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-06-19T05:07:52,304", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "172.22.0.3", | ||
"elasticsearch.audit.principal": "rado", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"elasticsearch.node.name": "v_VJhjV", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:07:52,304] [v_VJhjV] [rest] [authentication_failed]\torigin_address=[172.22.0.3], principal=[rado], uri=[/_xpack/security/_authenticate]", | ||
"offset": 155, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:07:52,304Z", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "172.22.0.3", | ||
"elasticsearch.audit.principal": "rado", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"elasticsearch.node.name": "v_VJhjV", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:07:52,304] [v_VJhjV] [rest] [authentication_failed]\torigin_address=[172.22.0.3], principal=[rado], uri=[/_xpack/security/_authenticate]", | ||
"offset": 155, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-06-19T05:00:15,778", | ||
"elasticsearch.audit.action": "indices:data/read/scroll/clear", | ||
"elasticsearch.audit.event_type": "access_granted", | ||
"elasticsearch.audit.layer": "transport", | ||
"elasticsearch.audit.origin_address": "192.168.1.165", | ||
"elasticsearch.audit.origin_type": "local_node", | ||
"elasticsearch.audit.principal": "_xpack_security", | ||
"elasticsearch.audit.request": "ClearScrollRequest", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:00:15,778] [transport] [access_granted] origin_type=[local_node], origin_address=[192.168.1.165], principal=[_xpack_security], action=[indices:data/read/scroll/clear], request=[ClearScrollRequest]", | ||
"offset": 306, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:00:15,778Z", | ||
"elasticsearch.audit.action": "indices:data/read/scroll/clear", | ||
"elasticsearch.audit.event_type": "access_granted", | ||
"elasticsearch.audit.layer": "transport", | ||
"elasticsearch.audit.origin_address": "192.168.1.165", | ||
"elasticsearch.audit.origin_type": "local_node", | ||
"elasticsearch.audit.principal": "_xpack_security", | ||
"elasticsearch.audit.request": "ClearScrollRequest", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:00:15,778] [transport] [access_granted] origin_type=[local_node], origin_address=[192.168.1.165], principal=[_xpack_security], action=[indices:data/read/scroll/clear], request=[ClearScrollRequest]", | ||
"offset": 306, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-06-19T05:07:45,544", | ||
"elasticsearch.audit.event_type": "anonymous_access_denied", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "172.22.0.3", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"elasticsearch.node.name": "v_VJhjV", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:07:45,544] [v_VJhjV] [rest] [anonymous_access_denied]\torigin_address=[172.22.0.3], uri=[/_xpack/security/_authenticate]", | ||
"offset": 519, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:07:45,544Z", | ||
"elasticsearch.audit.event_type": "anonymous_access_denied", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "172.22.0.3", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"elasticsearch.node.name": "v_VJhjV", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:07:45,544] [v_VJhjV] [rest] [anonymous_access_denied]\torigin_address=[172.22.0.3], uri=[/_xpack/security/_authenticate]", | ||
"offset": 519, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-06-19T05:26:27,268", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "147.107.128.77", | ||
"elasticsearch.audit.principal": "N078801", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:26:27,268] [rest] [authentication_failed]\torigin_address=[147.107.128.77], principal=[N078801], uri=[/_xpack/security/_authenticate]", | ||
"offset": 654, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:26:27,268Z", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "147.107.128.77", | ||
"elasticsearch.audit.principal": "N078801", | ||
"elasticsearch.audit.uri": "/_xpack/security/_authenticate", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:26:27,268] [rest] [authentication_failed]\torigin_address=[147.107.128.77], principal=[N078801], uri=[/_xpack/security/_authenticate]", | ||
"offset": 654, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-06-19T05:55:26,898", | ||
"elasticsearch.audit.action": "cluster:monitor/main", | ||
"elasticsearch.audit.event_type": "access_denied", | ||
"elasticsearch.audit.layer": "transport", | ||
"elasticsearch.audit.origin_address": "147.107.128.77", | ||
"elasticsearch.audit.origin_type": "rest", | ||
"elasticsearch.audit.principal": "_anonymous", | ||
"elasticsearch.audit.request": "MainRequest", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:55:26,898] [transport] [access_denied]\torigin_type=[rest], origin_address=[147.107.128.77], principal=[_anonymous], action=[cluster:monitor/main], request=[MainRequest]", | ||
"offset": 802, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:55:26,898Z", | ||
"elasticsearch.audit.action": "cluster:monitor/main", | ||
"elasticsearch.audit.event_type": "access_denied", | ||
"elasticsearch.audit.layer": "transport", | ||
"elasticsearch.audit.origin_address": "147.107.128.77", | ||
"elasticsearch.audit.origin_type": "rest", | ||
"elasticsearch.audit.principal": "_anonymous", | ||
"elasticsearch.audit.request": "MainRequest", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:55:26,898] [transport] [access_denied]\torigin_type=[rest], origin_address=[147.107.128.77], principal=[_anonymous], action=[cluster:monitor/main], request=[MainRequest]", | ||
"offset": 802, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-06-19T05:24:15,190", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "172.18.0.3", | ||
"elasticsearch.audit.principal": "elastic", | ||
"elasticsearch.audit.request_body": "body", | ||
"elasticsearch.audit.uri": "/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip", | ||
"elasticsearch.node.name": "v_VJhjV", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:24:15,190] [v_VJhjV] [rest] [authentication_failed]\torigin_address=[172.18.0.3], principal=[elastic], uri=[/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip], request_body=[body]", | ||
"offset": 986, | ||
"prospector.type": "log", | ||
"@timestamp": "2018-06-19T05:24:15,190Z", | ||
"elasticsearch.audit.event_type": "authentication_failed", | ||
"elasticsearch.audit.layer": "rest", | ||
"elasticsearch.audit.origin_address": "172.18.0.3", | ||
"elasticsearch.audit.principal": "elastic", | ||
"elasticsearch.audit.request_body": "body", | ||
"elasticsearch.audit.uri": "/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip", | ||
"elasticsearch.node.name": "v_VJhjV", | ||
"event.dataset": "elasticsearch.audit", | ||
"fileset.module": "elasticsearch", | ||
"fileset.name": "audit", | ||
"input.type": "log", | ||
"message": "[2018-06-19T05:24:15,190] [v_VJhjV] [rest] [authentication_failed]\torigin_address=[172.18.0.3], principal=[elastic], uri=[/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip], request_body=[body]", | ||
"offset": 986, | ||
"prospector.type": "log", | ||
"service.name": "elasticsearch" | ||
} | ||
] | ||
] |
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.