Skip to content

Commit

Permalink
Minor fixes to fortinet and threatintel to pass tests
Browse files Browse the repository at this point in the history
While testing those modules in 7.11-compat mode, the tests would fail
because the pipelines leave some unexpected fields behind. This cleans
them up.

This is caused by the uri_parts processor being removed and leaving
behind a temporary field that is cleaned up by the
`remove_if_successful` flag.
  • Loading branch information
adriansr committed Jul 7, 2021
1 parent b419add commit 956de5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x-pack/filebeat/module/fortinet/firewall/ingest/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,18 @@ processors:
- remove:
field:
- _temp
- host
- syslog5424_sd
- syslog5424_pri
- fortinet.firewall.tz
- fortinet.firewall.agent
- fortinet.firewall.date
- fortinet.firewall.devid
- fortinet.firewall.eventtime
- fortinet.firewall.time
- fortinet.firewall.duration
- host
- fortinet.firewall.eventtime
- fortinet.firewall.hostname
- fortinet.firewall.agent
- fortinet.firewall.time
- fortinet.firewall.tz
- fortinet.firewall.url
ignore_missing: true
- script:
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ processors:
- remove:
field:
- threatintel.abuseurl.date_added
- threatintel.abuseurl.url
- message
ignore_missing: true
on_failure:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ processors:
field:
- threatintel.anomali.created
- message
- _tmp
ignore_missing: true
on_failure:
- set:
Expand Down

0 comments on commit 956de5d

Please sign in to comment.