Skip to content

Commit

Permalink
Set non-UTC timezone for filebeat modules testing (#13874)
Browse files Browse the repository at this point in the history
Using UTC timezone for filebeat modules testing hides some issues when
modifying code to parse timestamps without timezones. Use a non-UTC
timezone to facilitate the detection of this kind of issues.
  • Loading branch information
jsoriano authored Oct 2, 2019
1 parent ba73e17 commit 0c76357
Show file tree
Hide file tree
Showing 69 changed files with 3,331 additions and 3,327 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"@timestamp": "2016-12-26T16:22:14.000Z",
"destination.domain": "vhost1.domaine.fr",
"event.dataset": "apache.access",
"event.module": "apache",
"fileset.name": "access",
Expand All @@ -12,7 +13,6 @@
"input.type": "log",
"log.offset": 0,
"service.type": "apache",
"destination.domain": "vhost1.domaine.fr",
"source.ip": "192.168.33.2",
"url.original": "/hello",
"user.name": "-",
Expand All @@ -24,4 +24,4 @@
"user_agent.os.version": "10.12",
"user_agent.version": "50.0"
}
]
]
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[
{
"@timestamp": "2016-12-26T16:15:55.103Z",
"@timestamp": "2016-12-26T16:15:55.103-02:00",
"apache.error.module": "mpm_prefork",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "notice",
Expand All @@ -14,11 +14,11 @@
"service.type": "apache"
},
{
"@timestamp": "2016-12-26T16:15:55.103Z",
"@timestamp": "2016-12-26T16:15:55.103-02:00",
"apache.error.module": "core",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "notice",
Expand Down
16 changes: 8 additions & 8 deletions filebeat/module/apache/error/test/test.log-expected.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
{
"@timestamp": "2016-12-26T16:22:08.000Z",
"@timestamp": "2016-12-26T16:22:08.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -14,11 +14,11 @@
"source.ip": "192.168.33.1"
},
{
"@timestamp": "2016-12-26T16:15:55.103Z",
"@timestamp": "2016-12-26T16:15:55.103-02:00",
"apache.error.module": "core",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "notice",
Expand All @@ -28,11 +28,11 @@
"service.type": "apache"
},
{
"@timestamp": "2011-09-09T10:42:29.902Z",
"@timestamp": "2011-09-09T10:42:29.902-02:00",
"apache.error.module": "core",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -54,11 +54,11 @@
"source.ip": "72.15.99.187"
},
{
"@timestamp": "2019-06-27T06:58:09.169Z",
"@timestamp": "2019-06-27T06:58:09.169-02:00",
"apache.error.module": "include",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "warn",
Expand Down
28 changes: 14 additions & 14 deletions filebeat/module/apache/error/test/ubuntu-2.2.22.log-expected.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
{
"@timestamp": "2016-12-26T16:17:53.000Z",
"@timestamp": "2016-12-26T16:17:53.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "notice",
Expand All @@ -12,10 +12,10 @@
"service.type": "apache"
},
{
"@timestamp": "2016-12-26T16:22:00.000Z",
"@timestamp": "2016-12-26T16:22:00.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -26,10 +26,10 @@
"source.ip": "192.168.33.1"
},
{
"@timestamp": "2016-12-26T16:22:08.000Z",
"@timestamp": "2016-12-26T16:22:08.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -40,10 +40,10 @@
"source.ip": "192.168.33.1"
},
{
"@timestamp": "2016-12-26T16:22:08.000Z",
"@timestamp": "2016-12-26T16:22:08.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -54,10 +54,10 @@
"source.ip": "192.168.33.1"
},
{
"@timestamp": "2016-12-26T16:22:10.000Z",
"@timestamp": "2016-12-26T16:22:10.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -68,10 +68,10 @@
"source.ip": "192.168.33.1"
},
{
"@timestamp": "2016-12-26T16:22:13.000Z",
"@timestamp": "2016-12-26T16:22:13.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand All @@ -82,10 +82,10 @@
"source.ip": "192.168.33.1"
},
{
"@timestamp": "2016-12-26T16:22:17.000Z",
"@timestamp": "2016-12-26T16:22:17.000-02:00",
"event.dataset": "apache.error",
"event.module": "apache",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "error",
"input.type": "log",
"log.level": "error",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{
"@timestamp": "2018-06-19T05:16:15.549Z",
"@timestamp": "2018-06-19T05:16:15.549-02:00",
"elasticsearch.audit.event_type": "authentication_failed",
"elasticsearch.audit.layer": "rest",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 0,
Expand All @@ -16,13 +16,13 @@
"user.name": "i030648"
},
{
"@timestamp": "2018-06-19T05:07:52.304Z",
"@timestamp": "2018-06-19T05:07:52.304-02:00",
"elasticsearch.audit.event_type": "authentication_failed",
"elasticsearch.audit.layer": "rest",
"elasticsearch.node.name": "v_VJhjV",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 155,
Expand All @@ -33,15 +33,15 @@
"user.name": "rado"
},
{
"@timestamp": "2018-06-19T05:00:15.778Z",
"@timestamp": "2018-06-19T05:00:15.778-02:00",
"elasticsearch.audit.action": "indices:data/read/scroll/clear",
"elasticsearch.audit.event_type": "access_granted",
"elasticsearch.audit.layer": "transport",
"elasticsearch.audit.origin.type": "local_node",
"elasticsearch.audit.request.name": "ClearScrollRequest",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 306,
Expand All @@ -51,13 +51,13 @@
"user.name": "_xpack_security"
},
{
"@timestamp": "2018-06-19T05:07:45.544Z",
"@timestamp": "2018-06-19T05:07:45.544-02:00",
"elasticsearch.audit.event_type": "anonymous_access_denied",
"elasticsearch.audit.layer": "rest",
"elasticsearch.node.name": "v_VJhjV",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 519,
Expand All @@ -67,12 +67,12 @@
"url.original": "/_xpack/security/_authenticate"
},
{
"@timestamp": "2018-06-19T05:26:27.268Z",
"@timestamp": "2018-06-19T05:26:27.268-02:00",
"elasticsearch.audit.event_type": "authentication_failed",
"elasticsearch.audit.layer": "rest",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 654,
Expand All @@ -83,15 +83,15 @@
"user.name": "N078801"
},
{
"@timestamp": "2018-06-19T05:55:26.898Z",
"@timestamp": "2018-06-19T05:55:26.898-02:00",
"elasticsearch.audit.action": "cluster:monitor/main",
"elasticsearch.audit.event_type": "access_denied",
"elasticsearch.audit.layer": "transport",
"elasticsearch.audit.origin.type": "rest",
"elasticsearch.audit.request.name": "MainRequest",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 802,
Expand All @@ -101,13 +101,13 @@
"user.name": "_anonymous"
},
{
"@timestamp": "2018-06-19T05:24:15.190Z",
"@timestamp": "2018-06-19T05:24:15.190-02:00",
"elasticsearch.audit.event_type": "authentication_failed",
"elasticsearch.audit.layer": "rest",
"elasticsearch.node.name": "v_VJhjV",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"http.request.body.content": "body",
"input.type": "log",
Expand All @@ -119,7 +119,7 @@
"user.name": "elastic"
},
{
"@timestamp": "2019-01-08T14:15:02.011Z",
"@timestamp": "2019-01-08T14:15:02.011-02:00",
"elasticsearch.audit.action": "indices:data/read/search[free_context]",
"elasticsearch.audit.event_type": "access_granted",
"elasticsearch.audit.indices": [
Expand All @@ -142,7 +142,7 @@
"elasticsearch.node.name": "NodeName-0",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"input.type": "log",
"log.offset": 1210,
Expand All @@ -152,15 +152,15 @@
"user.name": "username"
},
{
"@timestamp": "2019-01-27T20:04:27.244Z",
"@timestamp": "2019-01-27T20:04:27.244-02:00",
"elasticsearch.audit.event_type": "authentication_success",
"elasticsearch.audit.layer": "rest",
"elasticsearch.audit.realm": "default_file",
"elasticsearch.audit.url.params": "{username=jacknich2}",
"elasticsearch.node.name": "node-0",
"event.dataset": "elasticsearch.audit",
"event.module": "elasticsearch",
"event.timezone": "+00:00",
"event.timezone": "-02:00",
"fileset.name": "audit",
"http.request.body.content": "{\"metadata\":{\"intelligence\":7},\"full_name\":\"Jack Nicholson\",\"roles\":[\"admin\",\"other_role1\"",
"input.type": "log",
Expand Down
Loading

0 comments on commit 0c76357

Please sign in to comment.