Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x](backport #43027) [winlogbeat] Fix boolean key in security pipelines and sync pipelines with integration #43037

Merged
merged 1 commit into from
Mar 5, 2025
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,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
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
Loading