-
Notifications
You must be signed in to change notification settings - Fork 1
/
fluent-bit-filters-bro-conn-custom.conf
47 lines (41 loc) · 1.45 KB
/
fluent-bit-filters-bro-conn-custom.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
##################################################################
# Use this file to add transformations into ECS format
# for optional and extended Zeek conn fields.
# conn.log
[FILTER]
Name modify
Match ${observer_product}.conn*
Rename zeek_connection_orig_l2_addr source_mac
Rename zeek_connection_resp_l2_addr destination_mac
Rename zeek_connection_community_id network_community_id
# zeerbit-zeek-scripts/conn-add-fqdn.zeek
Rename zeek_connection_orig_fqdn source_domain
Rename zeek_connection_resp_fqdn destination_domain
# Cleanup - remove keys represending domain (FQDN) if value is "-"
[FILTER]
Name modify
Match ${observer_product}.conn*
Condition Key_value_equals source_domain -
Remove_regex source_domain
[FILTER]
Name modify
Match ${observer_product}.conn*
Condition Key_value_equals destination_domain -
Remove_regex destination_domain
# zeerbit-zeek-scripts/conn-add-geo
# ECS: Parse source.geo and destination.geo
[FILTER]
Name lua
Match ${observer_product}.conn*
Script custom/zeek_conn_custom_parse.lua
Call zeek_conn_custom_parse_geo
# Remove no longer needed keys
[FILTER]
Name modify
Match ${observer_product}.conn*
Remove zeek_connection_orig_geo_lon
Remove zeek_connection_orig_geo_lat
Remove zeek_connection_orig_geo_cc
Remove zeek_connection_resp_geo_lon
Remove zeek_connection_resp_geo_lat
Remove zeek_connection_resp_geo_cc