Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/airlock_digital/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.5.2"
changes:
- description: Add tags to ingest pipeline processors and add `preserve_original_event` to pipeline-level `on_failure` handlers.
type: enhancement
link: https://github.com/elastic/integrations/pull/20575
- version: "0.5.1"
changes:
- description: Set agentless deployment mode `release` field to `ga`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ processors:
ignore_missing: true
on_failure:
- append:
tag: append_error_message_ed15c765
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
Expand Down Expand Up @@ -129,6 +130,7 @@ processors:
if: ctx.json?.ip != ''
on_failure:
- append:
tag: append_error_message_b1bdbb98
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- append:
Expand All @@ -152,6 +154,7 @@ processors:
if: ctx.json?.lastcheckin != null && ctx.json.lastcheckin != ''
on_failure:
- append:
tag: append_error_message_1155faed
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- convert:
Expand All @@ -163,6 +166,7 @@ processors:
if: ctx.json?.localip != ''
on_failure:
- append:
tag: append_error_message_d86b373c
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- append:
Expand Down Expand Up @@ -270,14 +274,16 @@ processors:
ignore_missing: true
on_failure:
- remove:
tag: remove_ingest_value_ip
field: _ingest._value.ip
ignore_missing: true
- append:
tag: append_error_message
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- foreach:
field: json.policy_details.commlist
tag: foreach_policy_details_commlist_ip
tag: foreach_policy_details_commlist_ip_761aaae4
if: ctx.json?.policy_details?.commlist instanceof List
processor:
append:
Expand Down Expand Up @@ -462,6 +468,7 @@ processors:
ignore_missing: true
on_failure:
- append:
tag: append_error_message_80c7c540
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
Expand Down Expand Up @@ -540,6 +547,7 @@ processors:
ignore_missing: true
on_failure:
- append:
tag: append_error_message_97fa019b
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- convert:
Expand Down Expand Up @@ -583,6 +591,7 @@ processors:
type: string
ignore_missing: true
- script:
tag: script_1fd0624f
description: Map status to corresponding agent status.
lang: painless
params:
Expand Down Expand Up @@ -681,12 +690,14 @@ processors:
value: pipeline_error
if: ctx.error?.message != null
- append:
tag: append_tags_9fe66b2c
field: tags
value: preserve_original_event
allow_duplicates: false
if: ctx.error?.message != null
on_failure:
- append:
tag: append_error_message_3a6ad1cf
field: error.message
value: |-
Processor '{{{ _ingest.on_failure_processor_type }}}'
Expand All @@ -697,6 +708,7 @@ on_failure:
tag: set_pipeline_error_to_event_kind
value: pipeline_error
- append:
tag: append_tags
field: tags
value: preserve_original_event
allow_duplicates: false
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ processors:
target_field: json
on_failure:
- append:
tag: append_error_message_cea45f41
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- append:
Expand Down Expand Up @@ -81,6 +82,7 @@ processors:
if: ctx.json?.datetime != null && ctx.json.datetime != ''
on_failure:
- append:
tag: append_error_message_bf22f8e7
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- set:
Expand All @@ -99,11 +101,13 @@ processors:
copy_from: airlock_digital.execution_histories.filename
ignore_empty_value: true
- gsub:
tag: gsub_file_path_517235af
field: file.path
pattern: '\\'
replacement: '/'
ignore_failure: true
- split:
tag: split_file_path_to_file_name_19cfdeb5
field: file.path
separator: '/'
target_field: file.name
Expand Down Expand Up @@ -265,9 +269,11 @@ processors:
ignore_missing: true
on_failure:
- append:
tag: append_error_message_d064192d
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- script:
tag: script_5a14c280
description: Map type to corresponding execution type.
lang: painless
params:
Expand Down Expand Up @@ -364,12 +370,14 @@ processors:
value: pipeline_error
if: ctx.error?.message != null
- append:
tag: append_tags_9fe66b2c
field: tags
value: preserve_original_event
allow_duplicates: false
if: ctx.error?.message != null
on_failure:
- append:
tag: append_error_message
field: error.message
value: |-
Processor '{{{ _ingest.on_failure_processor_type }}}'
Expand All @@ -380,6 +388,7 @@ on_failure:
tag: set_pipeline_error_to_event_kind
value: pipeline_error
- append:
tag: append_tags
field: tags
value: preserve_original_event
allow_duplicates: false
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ processors:
if: ctx.json?.datetime != null && ctx.json.datetime != ''
on_failure:
- append:
tag: append_error_message_63229d47
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- set:
Expand Down Expand Up @@ -107,6 +108,7 @@ processors:
if: ctx.event?.action != ''
on_failure:
- append:
tag: append_error_message_ce1e3af4
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- join:
Expand All @@ -116,6 +118,7 @@ processors:
if: ctx.event?.action != ''
on_failure:
- append:
tag: append_error_message_abbd6eec
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
Expand Down Expand Up @@ -179,12 +182,14 @@ processors:
value: pipeline_error
if: ctx.error?.message != null
- append:
tag: append_tags_9fe66b2c
field: tags
value: preserve_original_event
allow_duplicates: false
if: ctx.error?.message != null
on_failure:
- append:
tag: append_error_message
field: error.message
value: |-
Processor '{{{ _ingest.on_failure_processor_type }}}'
Expand All @@ -195,6 +200,7 @@ on_failure:
tag: set_pipeline_error_to_event_kind
value: pipeline_error
- append:
tag: append_tags
field: tags
value: preserve_original_event
allow_duplicates: false
2 changes: 1 addition & 1 deletion packages/airlock_digital/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.3.2
name: airlock_digital
title: Airlock Digital
version: 0.5.1
version: 0.5.2
description: Collect logs from Airlock Digital with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/armis/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.6.2"
changes:
- description: Add tags to ingest pipeline processors and add `preserve_original_event` to pipeline-level `on_failure` handlers.
type: enhancement
link: https://github.com/elastic/integrations/pull/20575
- version: "0.6.1"
changes:
- description: Set agentless deployment mode `release` field to `ga`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ processors:
target_field: json
on_failure:
- append:
tag: append_error_message_cea45f41
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- fingerprint:
Expand Down Expand Up @@ -76,6 +77,7 @@ processors:
ignore_missing: true
on_failure:
- append:
tag: append_error_message_6bf4e364
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- convert:
Expand Down Expand Up @@ -132,7 +134,7 @@ processors:
allow_duplicates: false
- foreach:
field: armis.alert.device_ids
tag: foreach_deviceIds
tag: foreach_deviceIds_4938258b
if: ctx.armis?.alert?.device_ids instanceof List
processor:
append:
Expand All @@ -151,6 +153,7 @@ processors:
if: ctx.json?.lastAlertUpdateTime != null && ctx.json.lastAlertUpdateTime != ''
on_failure:
- append:
tag: append_error_message_962c6444
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
Expand Down Expand Up @@ -218,6 +221,7 @@ processors:
}
on_failure:
- append:
tag: append_error_message_b608e76d
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
Expand All @@ -241,6 +245,7 @@ processors:
if: ctx.json?.statusChangeTime != null && ctx.json.statusChangeTime != ''
on_failure:
- append:
tag: append_error_message_9981e61c
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- set:
Expand All @@ -259,6 +264,7 @@ processors:
if: ctx.json?.time != null && ctx.json.time != ''
on_failure:
- append:
tag: append_error_message_7ab96520
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- rename:
Expand Down Expand Up @@ -319,12 +325,14 @@ processors:
value: pipeline_error
if: ctx.error?.message != null
- append:
tag: append_tags_9fe66b2c
field: tags
value: preserve_original_event
allow_duplicates: false
if: ctx.error?.message != null
on_failure:
- append:
tag: append_error_message
field: error.message
value: >-
Processor '{{{ _ingest.on_failure_processor_type }}}'
Expand All @@ -335,6 +343,7 @@ on_failure:
tag: set_pipeline_error_to_event_kind
value: pipeline_error
- append:
tag: append_tags
field: tags
value: preserve_original_event
allow_duplicates: false
Loading
Loading