Skip to content

Commit

Permalink
x-pack/winlogbeat/module/routing: make pipeline routing robust to cha…
Browse files Browse the repository at this point in the history
…nnel letter case (#36899)

Apparently some events from Windows servers and workstations in Security channel
have a lowercase channel name. This has not been observed in other channels, but
defensively apply the same care there.
  • Loading branch information
efd6 authored Oct 23, 2023
1 parent 09823f3 commit 1852747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ is collected by it.

*Winlogbeat*

- Make ingest pipeline routing robust to letter case of channel names for forwarded events. {issue}36670[36670] {pull}36899[36899]

*Functionbeat*

Expand Down
8 changes: 4 additions & 4 deletions x-pack/winlogbeat/module/routing/ingest/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ processors:
value: '{{_ingest.timestamp}}'
- pipeline:
name: '{< IngestPipeline "security" >}'
if: ctx?.winlog?.channel == 'Security' && ['Microsoft-Windows-Eventlog', 'Microsoft-Windows-Security-Auditing'].contains(ctx?.winlog?.provider_name)
if: ctx.winlog?.channel instanceof String && ctx.winlog.channel.toLowerCase() == 'security' && ['Microsoft-Windows-Eventlog', 'Microsoft-Windows-Security-Auditing'].contains(ctx.winlog?.provider_name)
- pipeline:
name: '{< IngestPipeline "sysmon" >}'
if: ctx?.winlog?.channel == 'Microsoft-Windows-Sysmon/Operational'
if: ctx.winlog?.channel instanceof String && ctx.winlog.channel.toLowerCase() == 'microsoft-windows-sysmon/operational'
- pipeline:
name: '{< IngestPipeline "powershell" >}'
if: ctx?.winlog?.channel == 'Windows PowerShell'
if: ctx.winlog?.channel instanceof String && ctx.winlog.channel.toLowerCase() == 'windows powershell'
- pipeline:
name: '{< IngestPipeline "powershell_operational" >}'
if: ctx?.winlog?.channel == 'Microsoft-Windows-PowerShell/Operational'
if: ctx.winlog?.channel instanceof String && ctx.winlog.channel.toLowerCase() == 'microsoft-windows-powershell/operational'
- set:
field: host.os.type
value: windows
Expand Down

0 comments on commit 1852747

Please sign in to comment.