Skip to content

Commit 0c76357

Browse files
authoredOct 2, 2019
Set non-UTC timezone for filebeat modules testing (#13874)
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.
1 parent ba73e17 commit 0c76357

File tree

69 files changed

+3331
-3327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3331
-3327
lines changed
 

‎filebeat/module/apache/access/test/test-vhost.log-expected.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"@timestamp": "2016-12-26T16:22:14.000Z",
4+
"destination.domain": "vhost1.domaine.fr",
45
"event.dataset": "apache.access",
56
"event.module": "apache",
67
"fileset.name": "access",
@@ -12,7 +13,6 @@
1213
"input.type": "log",
1314
"log.offset": 0,
1415
"service.type": "apache",
15-
"destination.domain": "vhost1.domaine.fr",
1616
"source.ip": "192.168.33.2",
1717
"url.original": "/hello",
1818
"user.name": "-",
@@ -24,4 +24,4 @@
2424
"user_agent.os.version": "10.12",
2525
"user_agent.version": "50.0"
2626
}
27-
]
27+
]

‎filebeat/module/apache/error/test/darwin-2.4.23.log-expected.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[
22
{
3-
"@timestamp": "2016-12-26T16:15:55.103Z",
3+
"@timestamp": "2016-12-26T16:15:55.103-02:00",
44
"apache.error.module": "mpm_prefork",
55
"event.dataset": "apache.error",
66
"event.module": "apache",
7-
"event.timezone": "+00:00",
7+
"event.timezone": "-02:00",
88
"fileset.name": "error",
99
"input.type": "log",
1010
"log.level": "notice",
@@ -14,11 +14,11 @@
1414
"service.type": "apache"
1515
},
1616
{
17-
"@timestamp": "2016-12-26T16:15:55.103Z",
17+
"@timestamp": "2016-12-26T16:15:55.103-02:00",
1818
"apache.error.module": "core",
1919
"event.dataset": "apache.error",
2020
"event.module": "apache",
21-
"event.timezone": "+00:00",
21+
"event.timezone": "-02:00",
2222
"fileset.name": "error",
2323
"input.type": "log",
2424
"log.level": "notice",

0 commit comments

Comments
 (0)