From 6e1f18dd9971157c357fdfabee94db6261eb11f0 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 --- 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 3664320db88..45a9acb0c11 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -228,6 +228,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix s3 input parsing json file without expand_event_list_from_field. {issue}19902[19902] {pull}19962[19962] - 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"