Skip to content

Commit

Permalink
Fix boolean key in security pipelines and sync pipelines with integra…
Browse files Browse the repository at this point in the history
…tion. (#43027)
  • Loading branch information
marc-gr authored Mar 5, 2025
1 parent 1854bba commit 7237209
Show file tree
Hide file tree
Showing 7 changed files with 4,315 additions and 4,197 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ otherwise no tag is added. {issue}42208[42208] {pull}42403[42403]
- Sync missing changes in modules pipelines. {pull}42619[42619]
- Reset EventLog if error EOF is encountered. {pull}42826[42826]
- Implement backoff on error retrial. {pull}42826[42826]
- Fix boolean key in security pipelines and sync pipelines with integration. {pull}43027[43027]


*Elastic Logging Plugin*
Expand Down
2 changes: 1 addition & 1 deletion x-pack/winlogbeat/module/powershell/ingest/powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ processors:

- set:
field: ecs.version
value: '8.0.0'
value: '8.17.0'
- set:
field: log.level
copy_from: winlog.level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ processors:

- set:
field: ecs.version
value: '8.0.0'
value: '8.17.0'
- set:
field: log.level
copy_from: winlog.level
Expand Down
36 changes: 34 additions & 2 deletions x-pack/winlogbeat/module/routing/ingest/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ processors:
- pipeline:
name: '{< IngestPipeline "powershell_operational" >}'
if: ctx.winlog?.channel instanceof String && ctx.winlog.channel.toLowerCase() == 'microsoft-windows-powershell/operational'

- set:
field: host.os.type
value: windows
Expand All @@ -25,8 +26,39 @@ processors:
value: windows
override: false

# Get user details from the translate_sid processor enrichment
# if they are available and we don't already have them.
- rename:
field: winlog.event_data._MemberUserName
target_field: user.name
ignore_failure: true
ignore_missing: true
- rename:
field: winlog.event_data._MemberDomain
target_field: user.domain
ignore_failure: true
ignore_missing: true
- append:
value: '{{{winlog.event_data._MemberAccountType}}}'
field: user.roles
ignore_failure: true
allow_duplicates: false
if: ctx.winlog?.event_data?._MemberAccountType != null
- remove:
field: winlog.event_data._MemberAccountType
ignore_missing: true
ignore_failure: true
if: ctx.user?.roles != null && ctx.winlog?.event_data?._MemberAccountType != null && ctx.user.roles.contains(ctx.winlog.event_data._MemberAccountType)

- convert:
field: error.code
type: string
ignore_missing: true

on_failure:
- set:
field: event.kind
value: pipeline_error
- append:
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 }}"
value: "{{{ _ingest.on_failure_message }}}"
Loading

0 comments on commit 7237209

Please sign in to comment.