Skip to content

Commit

Permalink
Tolerate existing event.timezone in fortimail and fortiproxy (#11606)
Browse files Browse the repository at this point in the history
- Change rename to set processor when setting event.timezone
- In certain situations, an add_locale processor may have run on the
agent and this will set event.timezone.
  • Loading branch information
taylor-swanson authored Oct 31, 2024
1 parent 0226261 commit 3cfefe6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
5 changes: 5 additions & 0 deletions packages/fortinet_fortimail/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.13.1"
changes:
- description: Tolerate existing event.timezone value.
type: bugfix
link: https://github.com/elastic/integrations/pull/11606
- version: "2.13.0"
changes:
- description: Update package spec to 3.0.3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ processors:
- append:
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
field: _conf.tz_offset
target_field: event.timezone
- set:
field: event.timezone
copy_from: _conf.tz_offset
if: ctx._conf?.tz_offset != null && ctx._conf.tz_offset != 'local'
ignore_missing: true
ignore_empty_value: true
- rename:
field: temp.date
target_field: fortinet_fortimail.log.date
Expand Down
2 changes: 1 addition & 1 deletion packages/fortinet_fortimail/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fortinet_fortimail
title: Fortinet FortiMail
version: "2.13.0"
version: "2.13.1"
description: Collect logs from Fortinet FortiMail instances with Elastic Agent.
type: integration
format_version: "3.0.3"
Expand Down
5 changes: 5 additions & 0 deletions packages/fortinet_fortiproxy/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.0.1"
changes:
- description: Tolerate existing event.timezone value.
type: bugfix
link: https://github.com/elastic/integrations/pull/11606
- version: "1.0.0"
changes:
- description: Release package as GA.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ processors:
# ------------------------------------------------------------------------------
# Date and Time.
- rename:
tag: rename_timezone
target_field: event.timezone
field: _fields_.tz
ignore_missing: true
- set:
tag: set_timezone
field: event.timezone
copy_from: _fields_.tz
ignore_empty_value: true
- set:
tag: set_temp_timestamp_with_tz
field: '_temp_.timestamp'
Expand All @@ -120,6 +120,7 @@ processors:
field:
- _fields_.date
- _fields_.time
- _fields_.tz
- message
# ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion packages/fortinet_fortiproxy/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.3
name: fortinet_fortiproxy
title: "Fortinet FortiProxy"
version: 1.0.0
version: 1.0.1
description: "Collect logs from Fortinet FortiProxy with Elastic Agent."
type: integration
categories:
Expand Down

0 comments on commit 3cfefe6

Please sign in to comment.