Skip to content

Commit 1c94c6d

Browse files
authored
sync with recent changes in zeek package (elastic#21155) (elastic#21181)
- always attempt community_id processor - dnp3 reorder pipeline to be same as package (cherry picked from commit 1932f9f)
1 parent 7d7ce2a commit 1c94c6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+9
-122
lines changed

CHANGELOG.next.asciidoc

+1
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ field. You can revert this change by configuring tags for the module and omittin
679679
- Improve Suricata Eve module with `x509` ECS mappings {pull}20973[20973]
680680
- Added new module for Zoom webhooks {pull}20414[20414]
681681
- Add type and sub_type to panw panos fileset {pull}20912[20912]
682+
- Always attempt community_id processor on zeek module {pull}21155[21155]
682683

683684
*Heartbeat*
684685

x-pack/filebeat/module/zeek/connection/config/connection.yml

-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ processors:
9090
kind: event
9191
category:
9292
- network
93-
{{ if .community_id }}
9493
- if:
9594
equals.network.transport: icmp
9695
then:
@@ -100,7 +99,6 @@ processors:
10099
icmp_code: zeek.connection.icmp.code
101100
else:
102101
community_id:
103-
{{ end }}
104102
- add_fields:
105103
target: ''
106104
fields:

x-pack/filebeat/module/zeek/connection/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/conn.log
1111
- name: tags
1212
default: [zeek.connection]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/connection.yml

x-pack/filebeat/module/zeek/dce_rpc/config/dce_rpc.yml

-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ processors:
5454
- connection
5555
- protocol
5656
- info
57-
{{ if .community_id }}
5857
- community_id:
59-
{{ end }}
6058
- add_fields:
6159
target: ''
6260
fields:

x-pack/filebeat/module/zeek/dce_rpc/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/dce_rpc.log
1111
- name: tags
1212
default: [zeek.dce_rpc]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/dce_rpc.yml

x-pack/filebeat/module/zeek/dhcp/config/dhcp.yml

-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ processors:
116116
- connection
117117
- protocol
118118
- info
119-
{{ if .community_id }}
120119
- community_id:
121-
{{ end }}
122120
- add_fields:
123121
target: ''
124122
fields:

x-pack/filebeat/module/zeek/dhcp/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/dhcp.log
1111
- name: tags
1212
default: [zeek.dhcp]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/dhcp.yml

x-pack/filebeat/module/zeek/dnp3/config/dnp3.yml

-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ processors:
6464
- connection
6565
- protocol
6666
- info
67-
{{ if .community_id }}
6867
- community_id:
69-
{{ end }}
7068
- add_fields:
7169
target: ''
7270
fields:

x-pack/filebeat/module/zeek/dnp3/ingest/pipeline.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ processors:
2323
- lowercase:
2424
field: event.action
2525
ignore_missing: true
26-
- append:
27-
field: related.ip
28-
value: '{{source.ip}}'
29-
if: ctx?.source?.ip != null
30-
- append:
31-
field: related.ip
32-
value: '{{destination.ip}}'
33-
if: ctx?.destination?.ip != null
3426
- geoip:
3527
field: destination.ip
3628
target_field: destination.geo
@@ -69,6 +61,14 @@ processors:
6961
field: destination.as.organization_name
7062
target_field: destination.as.organization.name
7163
ignore_missing: true
64+
- append:
65+
field: related.ip
66+
value: '{{source.ip}}'
67+
if: ctx?.source?.ip != null
68+
- append:
69+
field: related.ip
70+
value: '{{destination.ip}}'
71+
if: ctx?.destination?.ip != null
7272
on_failure:
7373
- set:
7474
field: error.message

x-pack/filebeat/module/zeek/dnp3/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/dnp3.log
1111
- name: tags
1212
default: [zeek.dnp3]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/dnp3.yml

x-pack/filebeat/module/zeek/dns/config/dns.yml

-2
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ processors:
193193
- connection
194194
- info
195195
- protocol
196-
{{ if .community_id }}
197196
- community_id:
198-
{{ end }}
199197
- drop_fields:
200198
ignore_missing: true
201199
fields:

x-pack/filebeat/module/zeek/dns/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/dns.log
1111
- name: tags
1212
default: [zeek.dns]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/dns.yml

x-pack/filebeat/module/zeek/dpd/config/dpd.yml

-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ processors:
5353
type:
5454
- connection
5555
- info
56-
{{ if .community_id }}
5756
- community_id:
58-
{{ end }}
5957
- add_fields:
6058
target: ''
6159
fields:

x-pack/filebeat/module/zeek/dpd/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/dpd.log
1111
- name: tags
1212
default: [zeek.dpd]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/dpd.yml

x-pack/filebeat/module/zeek/ftp/config/ftp.yml

-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ processors:
8282
- connection
8383
- info
8484
- protocol
85-
{{ if .community_id }}
8685
- community_id:
87-
{{ end }}
8886
- add_fields:
8987
target: ''
9088
fields:

x-pack/filebeat/module/zeek/ftp/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/ftp.log
1111
- name: tags
1212
default: [zeek.ftp]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/ftp.yml

x-pack/filebeat/module/zeek/http/config/http.yml

-2
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ processors:
8989
- connection
9090
- info
9191
- protocol
92-
{{ if .community_id }}
9392
- community_id:
94-
{{ end }}
9593
- add_fields:
9694
target: ''
9795
fields:

x-pack/filebeat/module/zeek/http/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/http.log
1111
- name: tags
1212
default: [zeek.http]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/http.yml

x-pack/filebeat/module/zeek/intel/config/intel.yml

-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ processors:
6363
kind: alert
6464
type:
6565
- info
66-
{{ if .community_id }}
6766
- community_id:
68-
{{ end }}
6967
- add_fields:
7068
target: ''
7169
fields:

x-pack/filebeat/module/zeek/intel/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/intel.log
1111
- name: tags
1212
default: [zeek.intel]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/intel.yml

x-pack/filebeat/module/zeek/irc/config/irc.yml

-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ processors:
6868
- connection
6969
- protocol
7070
- info
71-
{{ if .community_id }}
7271
- community_id:
73-
{{ end }}
7472
- add_fields:
7573
target: ''
7674
fields:

x-pack/filebeat/module/zeek/irc/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/irc.log
1111
- name: tags
1212
default: [zeek.irc]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/irc.yml

x-pack/filebeat/module/zeek/kerberos/config/kerberos.yml

-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ processors:
100100
tokenizer: "%{user.name}/%{user.domain}"
101101
field: zeek.kerberos.client
102102
target_prefix: ""
103-
{{ if .community_id }}
104103
- community_id:
105-
{{ end }}
106104
- add_fields:
107105
target: ''
108106
fields:

x-pack/filebeat/module/zeek/kerberos/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/kerberos.log
1111
- name: tags
1212
default: [zeek.kerberos]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/kerberos.yml

x-pack/filebeat/module/zeek/modbus/config/modbus.yml

-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ processors:
6969
target: event
7070
fields:
7171
outcome: success
72-
{{ if .community_id }}
7372
- community_id:
74-
{{ end }}
7573
- add_fields:
7674
target: ''
7775
fields:

x-pack/filebeat/module/zeek/modbus/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/modbus.log
1111
- name: tags
1212
default: [zeek.modbus]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/modbus.yml

x-pack/filebeat/module/zeek/mysql/config/mysql.yml

-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ processors:
6868
target: event
6969
fields:
7070
outcome: failure
71-
{{ if .community_id }}
7271
- community_id:
73-
{{ end }}
7472
- add_fields:
7573
target: ''
7674
fields:

x-pack/filebeat/module/zeek/mysql/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/mysql.log
1111
- name: tags
1212
default: [zeek.mysql]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/mysql.yml

x-pack/filebeat/module/zeek/notice/config/notice.yml

-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ processors:
100100
- intrusion_detection
101101
type:
102102
- info
103-
{{ if .community_id }}
104103
- community_id:
105-
{{ end }}
106104
- add_fields:
107105
target: ''
108106
fields:

x-pack/filebeat/module/zeek/notice/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/notice.log
1111
- name: tags
1212
default: [zeek.notice]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/notice.yml

x-pack/filebeat/module/zeek/ntlm/config/ntlm.yml

-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ processors:
8282
target: event
8383
fields:
8484
outcome: failure
85-
{{ if .community_id }}
8685
- community_id:
87-
{{ end }}
8886
- add_fields:
8987
target: ''
9088
fields:

x-pack/filebeat/module/zeek/ntlm/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/ntlm.log
1111
- name: tags
1212
default: [zeek.ntlm]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/ntlm.yml

x-pack/filebeat/module/zeek/radius/config/radius.yml

-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ processors:
5454
type:
5555
- info
5656
- connection
57-
{{ if .community_id }}
5857
- community_id:
59-
{{ end }}
6058
- add_fields:
6159
target: ''
6260
fields:

x-pack/filebeat/module/zeek/radius/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/radius.log
1111
- name: tags
1212
default: [zeek.radius]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/radius.yml

x-pack/filebeat/module/zeek/rdp/config/rdp.yml

-2
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ processors:
8484
type:
8585
- protocol
8686
- info
87-
{{ if .community_id }}
8887
- community_id:
89-
{{ end }}
9088
- add_fields:
9189
target: ''
9290
fields:

x-pack/filebeat/module/zeek/rdp/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/rdp.log
1111
- name: tags
1212
default: [zeek.rdp]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/rdp.yml

x-pack/filebeat/module/zeek/rfb/config/rfb.yml

-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ processors:
6969
type:
7070
- connection
7171
- info
72-
{{ if .community_id }}
7372
- community_id:
74-
{{ end }}
7573
- add_fields:
7674
target: ''
7775
fields:

x-pack/filebeat/module/zeek/rfb/manifest.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ var:
1010
- /usr/local/var/logs/current/rfb.log
1111
- name: tags
1212
default: [zeek.rfb]
13-
- name: community_id
14-
default: true
1513

1614
ingest_pipeline: ingest/pipeline.yml
1715
input: config/rfb.yml

x-pack/filebeat/module/zeek/sip/config/sip.yml

-2
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ processors:
9191
type:
9292
- connection
9393
- protocol
94-
{{ if .community_id }}
9594
- community_id:
96-
{{ end }}
9795
- add_fields:
9896
target: ''
9997
fields:

0 commit comments

Comments
 (0)