Skip to content

Commit

Permalink
[Fortinet Fortigate] Add url parsing error handling (#12895)
Browse files Browse the repository at this point in the history
  • Loading branch information
gogochan authored Mar 4, 2025
1 parent 984ba31 commit ee6f8bb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/fortinet_fortigate/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.30.0"
changes:
- description: If url parsing fails, append failure message to error.message.
type: enhancement
link: https://github.com/elastic/integrations/pull/12895
- version: "1.29.2"
changes:
- description: Updated SSL description to be uniform and to include links to documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ processors:
target_field: url
keep_original: false
if: ctx.fortinet?.firewall?.url != null
on_failure:
- append:
field: error.message
value: "url parsing failed with message {{ _ingest.on_failure_message }}"
# Need to do a set, then remove since rename w/ override
# is not supported in 8.3.0
- set:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ processors:
target_field: url
keep_original: false
if: ctx.fortinet?.firewall?.url != null
on_failure:
- append:
field: error.message
value: "url parsing failed with message {{ _ingest.on_failure_message }}"
- remove:
field: fortinet.firewall.url
ignore_missing: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ processors:
target_field: url
keep_original: false
if: ctx.fortinet?.firewall?.url != null
on_failure:
- append:
field: error.message
value: "url parsing failed with message {{ _ingest.on_failure_message }}"
# Need to do a set, then remove since rename w/ override
# is not supported in 8.3.0
- set:
Expand Down
2 changes: 1 addition & 1 deletion packages/fortinet_fortigate/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fortinet_fortigate
title: Fortinet FortiGate Firewall Logs
version: "1.29.2"
version: "1.30.0"
description: Collect logs from Fortinet FortiGate firewalls with Elastic Agent.
type: integration
format_version: "3.0.3"
Expand Down

0 comments on commit ee6f8bb

Please sign in to comment.