Skip to content

Commit

Permalink
zeek: fix handling of potentially null method call receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Jan 30, 2024
1 parent 6979899 commit e4cafa9
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions packages/zeek/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.22.3"
changes:
- description: Fix ingest pipeline conditional field handling.
type: bugfix
link: https://github.com/elastic/integrations/pull/9005
- version: "2.22.2"
changes:
- description: Changed owners
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ processors:
field: zeek.kerberos.client
pattern: "%{user.name}/%{user.domain}"
ignore_missing: true
if: ctx.zeek?.kerberos?.client.contains('/')
if: ctx.zeek?.kerberos?.client.contains('/') == true
- date:
field: zeek.kerberos.ts
formats:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ processors:
- set:
field: network.type
value: ipv4
if: ctx.host?.ip.contains('.')
if: ctx.host?.ip.contains('.') == true
- set:
field: network.type
value: ipv6
if: ctx.host?.ip.contains(':')
if: ctx.host?.ip.contains(':') == true
- append:
field: related.ip
value: "{{{host.ip}}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ processors:
- set:
field: network.type
value: ipv4
if: ctx.host?.ip.contains('.')
if: ctx.host?.ip.contains('.') == true
- set:
field: network.type
value: ipv6
if: ctx.host?.ip.contains(':')
if: ctx.host?.ip.contains(':') == true
- append:
field: related.ip
value: "{{{host.ip}}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ processors:
- set:
field: network.type
value: ipv4
if: ctx.host?.ip.contains('.')
if: ctx.host?.ip.contains('.') == true
- set:
field: network.type
value: ipv6
if: ctx.host?.ip.contains(':')
if: ctx.host?.ip.contains(':') == true
- append:
field: related.ip
value: "{{{host.ip}}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ processors:
- set:
field: network.type
value: ipv4
if: ctx.source?.ip.contains('.')
if: ctx.source?.ip.contains('.') == true
- set:
field: network.type
value: ipv6
if: ctx.source?.ip.contains(':')
if: ctx.source?.ip.contains(':') == true
- community_id:
ignore_missing: true
- date:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ processors:
- set:
field: network.type
value: ipv4
if: ctx.source?.ip.contains('.')
if: ctx.source?.ip.contains('.') == true
- set:
field: network.type
value: ipv6
if: ctx.source?.ip.contains(':')
if: ctx.source?.ip.contains(':') == true
- append:
field: related.ip
value: "{{{source.ip}}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ processors:
- set:
field: network.type
value: ipv4
if: ctx.host?.ip.contains('.')
if: ctx.host?.ip.contains('.') == true
- set:
field: network.type
value: ipv6
if: ctx.host?.ip.contains(':')
if: ctx.host?.ip.contains(':') == true
- append:
field: related.ip
value: "{{{host.ip}}}"
Expand Down
2 changes: 1 addition & 1 deletion packages/zeek/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: zeek
title: Zeek
version: "2.22.2"
version: "2.22.3"
description: Collect logs from Zeek with Elastic Agent.
type: integration
icons:
Expand Down

0 comments on commit e4cafa9

Please sign in to comment.