From 4072b9c85b5d014b96df3a289be1bcf01805ca96 Mon Sep 17 00:00:00 2001 From: Marc Guasch Date: Thu, 30 Jul 2020 14:31:26 +0200 Subject: [PATCH] [Filebeat][Fortinet] Remove pre populated event.timezone (#20273) * Remove pre populated event.timezone * Add changelog entry * Remove processor instead of the field (cherry picked from commit b1b78604089100061fe08a97362438cd21d5a604) --- CHANGELOG.next.asciidoc | 1 + x-pack/filebeat/module/fortinet/firewall/config/firewall.yml | 1 - x-pack/filebeat/module/fortinet/firewall/ingest/pipeline.yml | 2 +- .../module/fortinet/firewall/test/fortinet.log-expected.json | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index faebba02aaa..b203a38ae94 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -259,6 +259,7 @@ field. You can revert this change by configuring tags for the module and omittin - Ignore missing in Zeek module when dropping unecessary fields. {pull}19984[19984] - Fix millisecond timestamp normalization issues in CrowdStrike module {issue}20035[20035], {pull}20138[20138] - Fix support for message code 106100 in Cisco ASA and FTD. {issue}19350[19350] {pull}20245[20245] +- Fix `fortinet` setting `event.timezone` to the system one when no `tz` field present {pull}20273[20273] *Heartbeat* diff --git a/x-pack/filebeat/module/fortinet/firewall/config/firewall.yml b/x-pack/filebeat/module/fortinet/firewall/config/firewall.yml index 6af16945317..1154d83947f 100644 --- a/x-pack/filebeat/module/fortinet/firewall/config/firewall.yml +++ b/x-pack/filebeat/module/fortinet/firewall/config/firewall.yml @@ -24,7 +24,6 @@ tags: {{.tags | tojson}} publisher_pipeline.disable_host: {{ inList .tags "forwarded" }} processors: - - add_locale: ~ - add_fields: target: '' fields: diff --git a/x-pack/filebeat/module/fortinet/firewall/ingest/pipeline.yml b/x-pack/filebeat/module/fortinet/firewall/ingest/pipeline.yml index 60ada5b7f08..2aaf7065ec1 100644 --- a/x-pack/filebeat/module/fortinet/firewall/ingest/pipeline.yml +++ b/x-pack/filebeat/module/fortinet/firewall/ingest/pipeline.yml @@ -178,4 +178,4 @@ processors: on_failure: - set: field: error.message - value: '{{ _ingest.on_failure_message }}' \ No newline at end of file + value: '{{ _ingest.on_failure_message }}' diff --git a/x-pack/filebeat/module/fortinet/firewall/test/fortinet.log-expected.json b/x-pack/filebeat/module/fortinet/firewall/test/fortinet.log-expected.json index 73ad332c40d..bf1b5de3fd0 100644 --- a/x-pack/filebeat/module/fortinet/firewall/test/fortinet.log-expected.json +++ b/x-pack/filebeat/module/fortinet/firewall/test/fortinet.log-expected.json @@ -96,7 +96,6 @@ "event.module": "fortinet", "event.outcome": "success", "event.start": "2020-06-24T01:16:08.000Z", - "event.timezone": "-02:00", "event.type": [ "connection", "end"