diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 2ae916e8df35..f02c0da93e7f 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -60,6 +60,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix s3 input hanging with GetObjectRequest API call by adding context_timeout config. {issue}15502[15502] {pull}15590[15590] - Add shared_credential_file to cloudtrail config {issue}15652[15652] {pull}15656[15656] - Fix typos in zeek notice fileset config file. {issue}15764[15764] {pull}15765[15765] +- Fix mapping error when zeek weird logs do not contain IP addresses. {pull}15906[15906] - Improve `elasticsearch/audit` fileset to handle timestamps correctly. {pull}15942[15942] - Prevent Elasticsearch from spewing log warnings about redundant wildcards when setting up ingest pipelines for the `elasticsearch` module. {issue}15840[15840] {pull}15900[15900] diff --git a/x-pack/filebeat/module/zeek/weird/ingest/pipeline.json b/x-pack/filebeat/module/zeek/weird/ingest/pipeline.json index a7f5d85e2117..a97cdeb22bbe 100644 --- a/x-pack/filebeat/module/zeek/weird/ingest/pipeline.json +++ b/x-pack/filebeat/module/zeek/weird/ingest/pipeline.json @@ -28,13 +28,15 @@ { "set": { "field": "source.ip", - "value": "{{source.address}}" + "value": "{{source.address}}", + "if": "ctx?.source?.address != null" } }, { "set": { "field": "destination.ip", - "value": "{{destination.address}}" + "value": "{{destination.address}}", + "if": "ctx?.destination?.address != null" } } ], diff --git a/x-pack/filebeat/module/zeek/weird/test/weird-json.log b/x-pack/filebeat/module/zeek/weird/test/weird-json.log index 0441a447ecb8..5e49a4b9849a 100644 --- a/x-pack/filebeat/module/zeek/weird/test/weird-json.log +++ b/x-pack/filebeat/module/zeek/weird/test/weird-json.log @@ -1 +1,2 @@ {"ts":1543877999.99354,"uid":"C1ralPp062bkwWt4e","id.orig_h":"192.168.1.1","id.orig_p":64521,"id.resp_h":"192.168.1.2","id.resp_p":53,"name":"dns_unmatched_reply","notice":false,"peer":"worker-6"} +{"ts":1580227259.342809,"name":"non_ip_packet_in_ethernet","notice":false,"peer":"ens3f1-4"} diff --git a/x-pack/filebeat/module/zeek/weird/test/weird-json.log-expected.json b/x-pack/filebeat/module/zeek/weird/test/weird-json.log-expected.json index cbb5de6ec568..f1fdb20678fb 100644 --- a/x-pack/filebeat/module/zeek/weird/test/weird-json.log-expected.json +++ b/x-pack/filebeat/module/zeek/weird/test/weird-json.log-expected.json @@ -21,5 +21,20 @@ "zeek.weird.name": "dns_unmatched_reply", "zeek.weird.notice": false, "zeek.weird.peer": "worker-6" + }, + { + "@timestamp": "2020-01-28T16:00:59.342Z", + "event.dataset": "zeek.weird", + "event.module": "zeek", + "fileset.name": "weird", + "input.type": "log", + "log.offset": 197, + "service.type": "zeek", + "tags": [ + "zeek.weird" + ], + "zeek.weird.name": "non_ip_packet_in_ethernet", + "zeek.weird.notice": false, + "zeek.weird.peer": "ens3f1-4" } ] \ No newline at end of file