Skip to content

Commit

Permalink
ssi_all: do not remove event.original in main ingest pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Dec 11, 2024
1 parent 6ee9c1a commit 67a73eb
Show file tree
Hide file tree
Showing 179 changed files with 0 additions and 894 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1552,12 +1552,6 @@ processors:
ignore_failure: true
ignore_missing: true

- remove:
if: "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))"
field: event.original
ignore_failure: true
ignore_missing: true

### TODO - actually clean out the bitdefender fields properly from those we can be certain are ECS mapped

- remove:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ processors:
field:
- json
ignore_missing: true
- remove:
field:
- event.original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
lang: painless
description: Drops null/empty values recursively.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,6 @@ processors:
- bitwarden.event.ip_address
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_duplicate_custom_fields'))
- remove:
field:
- event.original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
lang: painless
description: Drops null/empty values recursively.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ processors:
- bitwarden.group.id
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_duplicate_custom_fields'))
- remove:
field:
- event.original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
lang: painless
description: Drops null/empty values recursively.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,6 @@ processors:
tag: remove_duplicate_custom_fields
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_duplicate_custom_fields'))
- remove:
field:
- event.original
tag: remove_event_original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
lang: painless
description: Drops null/empty values recursively.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,6 @@ processors:
- bitwarden.policy.data.useSpecial
- bitwarden.policy.data.useUpper
ignore_missing: true
- remove:
field:
- event.original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
lang: painless
description: Drops null/empty values recursively.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,6 @@ processors:
- _tmp
- _conf
ignore_missing: true
- remove:
field: event.original
if: "ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))"
ignore_failure: true
ignore_missing: true
- script:
lang: painless
description: This script processor iterates over the whole document to remove fields with null values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,11 +830,6 @@ processors:
- _ingest._value.mac_address
ignore_missing: true
ignore_failure: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively.
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1477,11 +1477,6 @@ processors:
- _ingest._value.time
ignore_missing: true
ignore_failure: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively.
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ processors:
- darktrace.system_status_alert.priority
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively.
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,6 @@ processors:
field: json
tag: remove_json
ignore_missing: true
- remove:
field: event.original
tag: remove_event_original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
tag: script_to_drop_null_values
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ processors:
field: json
tag: remove_json
ignore_missing: true
- remove:
field: event.original
tag: remove_event_original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
tag: script_to_drop_null_values
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,11 +847,6 @@ processors:
field: json
tag: remove_json
ignore_missing: true
- remove:
field: event.original
tag: remove_event_original
ignore_missing: true
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
- script:
tag: script_to_drop_null_values
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ processors:
value: '{{{host.name}}}'
allow_duplicates: false
if: ctx.host?.name != null && ctx.host?.name != ''
- remove:
field: event.original
if: "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))"
ignore_failure: true
ignore_missing: true
on_failure:
- set:
field: event.kind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ processors:
value: '{{{host.name}}}'
allow_duplicates: false
if: ctx.host?.name != null && ctx.host?.name != ''
- remove:
field: event.original
if: "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))"
ignore_failure: true
ignore_missing: true
on_failure:
- set:
field: event.kind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,6 @@ processors:
####################
## Cleanup Fields ##
####################
- remove:
field: event.original
if: "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))"
ignore_failure: true
ignore_missing: true
description: "Remove event.original unless tags indicate we shold not"
- remove:
field:
- cef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ processors:
- forgerock.transactionId
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ processors:
- forgerock.transactionId
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ processors:
- forgerock.timestamp
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ processors:
- forgerock.eventName
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ processors:
- forgerock.exception
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ processors:
- forgerock.timestamp
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ processors:
- forgerock.status
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ processors:
- forgerock.status
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ processors:
- forgerock.status
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ processors:
field: forgerock.payload
target_field: forgerock.idm_core
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ processors:
- forgerock.status
ignore_failure: true
ignore_missing: true
- remove:
field: event.original
if: ctx.tags == null || !(ctx.tags.contains('preserve_original_event'))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively
lang: painless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,6 @@ processors:
- json
- _temp
ignore_missing: true
- remove:
field: event.original
if: ctx.tags?.contains('preserve_original_event') != true
ignore_failure: true
ignore_missing: true
- script:
lang: painless
description: This script processor iterates over the whole document to remove fields with null values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ processors:
field:
- _temp
ignore_missing: true
- remove:
field: event.original
if: ctx.tags?.contains('preserve_original_event') != true
ignore_failure: true
ignore_missing: true
- script:
lang: painless
description: This script processor iterates over the whole document to remove fields with null values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,6 @@ processors:
field:
- _temp
ignore_missing: true
- remove:
field: event.original
if: ctx.tags?.contains('preserve_original_event') != true
ignore_failure: true
ignore_missing: true
- script:
lang: painless
description: This script processor iterates over the whole document to remove fields with null values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,6 @@ processors:
- _temp_
- github.issues.repository
ignore_missing: true
- remove:
field: event.original
if: ctx.tags?.contains('preserve_original_event') != true
ignore_failure: true
ignore_missing: true
- script:
lang: painless
description: This script processor iterates over the whole document to remove fields with null values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,6 @@ processors:
field:
- _temp
ignore_missing: true
- remove:
field: event.original
if: ctx.tags?.contains('preserve_original_event') != true
ignore_failure: true
ignore_missing: true
- script:
lang: painless
description: This script processor iterates over the whole document to remove fields with null values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@ processors:
- pipeline_error
allow_duplicates: false
if: ctx.error?.message != null
- remove:
field: event.original
tag: remove_original_event
if: ctx?.tags == null || !(ctx.tags.contains("preserve_original_event"))
ignore_failure: true
ignore_missing: true
- script:
description: Drops null/empty values recursively.
lang: painless
Expand Down
Loading

0 comments on commit 67a73eb

Please sign in to comment.