-
Notifications
You must be signed in to change notification settings - Fork 1
/
parsers.conf
214 lines (188 loc) · 9.05 KB
/
parsers.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
[PARSER]
Name bro_conn_parser_json
Format json
Time_Key ts
# 2020-01-13T05:45:00.002983Z
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep Off
Types id.orig_p:integer id.resp_p:integer duration:integer orig_bytes:integer resp_bytes:integer missed_bytes:integer orig_pkts:integer orig_ip_bytes:integer resp_pkts:integer resp_ip_bytes:integer
[PARSER]
Name bro_conn_parser
Format regex
Regex ^(?<ts>[^\t]+)\t(?<uid>[^\t]+)\t(?<orig_h>[^\t]+)\t(?<orig_p>[^\t]+)\t(?<resp_h>[^\t]+)\t(?<resp_p>[^\t]+)\t(?<proto>[^\t]+)\t(?<service>[^\t]+)\t(?<duration>[^\t]+)\t(?<orig_bytes>[^\t]+)\t(?<resp_bytes>[^\t]+)\t(?<conn_state>[^\t]+)\t(?<local_orig>[^\t]+)\t(?<local_resp>[^\t]+)\t(?<missed_bytes>[^\t]+)\t(?<history>[^\t]+)\t(?<orig_pkts>[^\t]+)\t(?<orig_ip_bytes>[^\t]+)\t(?<resp_pkts>[^\t]+)\t(?<resp_ip_bytes>[^\t]+)\t(?<tunnel_parents>[^\t]+)$
Time_Key ts
Time_Format %s.%L
Time_Keep Off
Types orig_p:integer resp_p:integer duration:integer orig_bytes:integer resp_bytes:integer missed_bytes:integer orig_pkts:integer orig_ip_bytes:integer resp_pkts:integer resp_ip_bytes:integer
[PARSER]
Name bro_dhcp_parser_json
Format json
Time_Key ts
# 2020-01-13T05:45:00.002983Z
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep Off
Types lease_time:float duration:float
[PARSER]
Name bro_dhcp_parser
Format regex
Regex ^(?<ts>[^\t]+)\t(?<uids>[^\t]+)\t(?<client_addr>[^\t]+)\t(?<server_addr>[^\t]+)\t(?<mac>[^\t]+)\t(?<host_name>[^\t]+)\t(?<client_fqdn>[^\t]+)\t(?<domain>[^\t]+)\t(?<requested_addr>[^\t]+)\t(?<assigned_addr>[^\t]+)\t(?<lease_time>[^\t]+)\t(?<client_message>[^\t]+)\t(?<server_message>[^\t]+)\t(?<msg_types>[^\t]+)\t(?<duration>[^\t]+)$
Time_Key ts
Time_Format %s.%L
Time_Keep Off
Types lease_time:float duration:float
[PARSER]
Name bro_dns_parser_json
Format json
Time_Key ts
# 2020-01-13T05:45:00.002983Z
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep Off
Types id.orig_p:integer id.resp_p:integer rtt:float trans_id:integer
[PARSER]
Name bro_dns_parser
Format regex
Regex ^(?<ts>[^\t]+)\t(?<uid>[^\t]+)\t(?<orig_h>[^\t]+)\t(?<orig_p>[^\t]+)\t(?<resp_h>[^\t]+)\t(?<resp_p>[^\t]+)\t(?<proto>[^\t]+)\t(?<trans_id>[^\t]+)\t(?<rtt>[^\t]+)\t(?<query>[^\t]+)\t(?<qclass>[^\t]+)\t(?<qclass_name>[^\t]+)\t(?<qtype>[^\t]+)\t(?<qtype_name>[^\t]+)\t(?<rcode>[^\t]+)\t(?<rcode_name>[^\t]+)\t(?<AA>[^\t]+)\t(?<TC>[^\t]+)\t(?<RD>[^\t]+)\t(?<RA>[^\t]+)\t(?<Z>[^\t]+)\t(?<answers>[^\t]+)\t(?<TTLs>[^\t]+)\t(?<rejected>[^\t]+)$
Time_Key ts
Time_Format %s.%L
Time_Keep Off
Types orig_p:integer resp_p:integer rtt:float trans_id:integer
[PARSER]
Name bro_ssl_parser_json
Format json
Time_Key ts
# 2020-01-13T05:45:00.002983Z
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep Off
Types id.orig_p:integer id.resp_p:integer
[PARSER]
Name bro_ssl_parser
Format regex
Regex ^(?<ts>[^\t]+)\t(?<uid>[^\t]+)\t(?<orig_h>[^\t]+)\t(?<orig_p>[^\t]+)\t(?<resp_h>[^\t]+)\t(?<resp_p>[^\t]+)\t(?<version>[^\t]+)\t(?<cipher>[^\t]+)\t(?<curve>[^\t]+)\t(?<server_name>[^\t]+)\t(?<resumed>[^\t]+)\t(?<last_alert>[^\t]+)\t(?<next_protocol>[^\t]+)\t(?<established>[^\t]+)\t(?<cert_chain_fuids>[^\t]+)\t(?<client_cert_chain_fuids>[^\t]+)\t(?<subject>[^\t]+)\t(?<issuer>[^\t]+)\t(?<client_subject>[^\t]+)\t(?<client_issuer>[^\t]+)\t(?<validation_status>[^\t]+)$
Time_Key ts
Time_Format %s.%L
Time_Keep Off
Types orig_p:integer resp_p:integer
[PARSER]
Name bro_http_parser_json
Format json
Time_Key ts
# 2020-01-13T05:45:00.002983Z
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep Off
Types id.orig_p:integer id.resp_p:integer trans_depth:integer request_body_len:integer response_body_len:integer status_code:integer info_code:integer
[PARSER]
Name bro_http_parser
Format regex
Regex ^(?<ts>[^\t]+)\t(?<uid>[^\t]+)\t(?<orig_h>[^\t]+)\t(?<orig_p>[^\t]+)\t(?<resp_h>[^\t]+)\t(?<resp_p>[^\t]+)\t(?<trans_depth>[^\t]+)\t(?<method>[^\t]+)\t(?<host>[^\t]+)\t(?<uri>[^\t]+)\t(?<referrer>[^\t]+)\t(?<version>[^\t]+)\t(?<user_agent>[^\t]+)\t(?<request_body_len>[^\t]+)\t(?<response_body_len>[^\t]+)\t(?<status_code>[^\t]+)\t(?<status_msg>[^\t]+)\t(?<info_code>[^\t]+)\t(?<info_msg>[^\t]+)\t(?<tags>[^\t]+)\t(?<username>[^\t]+)\t(?<password>[^\t]+)\t(?<proxied>[^\t]+)\t(?<orig_fuids>[^\t]+)\t(?<orig_filenames>[^\t]+)\t(?<orig_mime_types>[^\t]+)\t(?<resp_fuids>[^\t]+)\t(?<resp_filenames>[^\t]+)\t(?<resp_mime_types>[^\t]+)$
Time_Key ts
Time_Format %s.%L
Time_Keep Off
Types orig_p:integer resp_p:integer trans_depth:integer request_body_len:integer response_body_len:integer status_code:integer info_code:integer
[PARSER]
Name bro_zeer_hosts_parser_json
Format json
Time_Key ts
# 2020-01-13T05:45:00.002983Z
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep Off
[PARSER]
Name bro_zeer_hosts_parser
Format regex
Regex ^(?<ts>[^\t]+)\t(?<host_ip>[^\t]+)\t(?<host_fqdn>[^\t]+)$
Time_Key ts
Time_Format %s.%L
Time_Keep Off
[PARSER]
Name apache
Format regex
Regex ^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)")?$
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name apache2
Format regex
Regex ^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>.*)")?$
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name apache_error
Format regex
Regex ^\[[^ ]* (?<time>[^\]]*)\] \[(?<level>[^\]]*)\](?: \[pid (?<pid>[^\]]*)\])?( \[client (?<client>[^\]]*)\])? (?<message>.*)$
[PARSER]
Name nginx
Format regex
Regex ^(?<remote>[^ ]*) (?<host>[^ ]*) (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)")?$
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name k8s-nginx-ingress
Format regex
Regex ^(?<host>[^ ]*) - \[(?<real_ip>[^ ]*)\] - (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*) "(?<referer>[^\"]*)" "(?<agent>[^\"]*)" (?<request_length>[^ ]*) (?<request_time>[^ ]*) \[(?<proxy_upstream_name>[^ ]*)\] (?<upstream_addr>[^ ]*) (?<upstream_response_length>[^ ]*) (?<upstream_response_time>[^ ]*) (?<upstream_status>[^ ]*) (?<last>[^$]*)
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name json
Format json
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name docker
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
# Command | Decoder | Field | Optional Action
# =============|==================|=================
Decode_Field_As escaped log
Decode_Field_As escaped stream
[PARSER]
Name docker-daemon
Format regex
Regex time="(?<time>[^ ]*)" level=(?<level>[^ ]*) msg="(?<msg>[^ ].*)"
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
[PARSER]
Name syslog-rfc5424
Format regex
Regex ^\<(?<pri>[0-9]{1,5})\>1 (?<time>[^ ]+) (?<host>[^ ]+) (?<ident>[^ ]+) (?<pid>[-0-9]+) (?<msgid>[^ ]+) (?<extradata>(\[(.*)\]|-)) (?<message>.+)$
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
[PARSER]
Name syslog-rfc3164-local
Format regex
Regex ^\<(?<pri>[0-9]+)\>(?<time>[^ ]* {1,2}[^ ]* [^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*)(?:\[(?<pid>[0-9]+)\])?(?:[^\:]*\:)? *(?<message>.*)$
Time_Key time
Time_Format %b %d %H:%M:%S
Time_Keep On
[PARSER]
Name syslog-rfc3164
Format regex
Regex /^\<(?<pri>[0-9]+)\>(?<time>[^ ]* {1,2}[^ ]* [^ ]*) (?<host>[^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*)(?:\[(?<pid>[0-9]+)\])?(?:[^\:]*\:)? *(?<message>.*)$/
Time_Key time
Time_Format %b %d %H:%M:%S
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
[PARSER]
Name mongodb
Format regex
Regex ^(?<time>[^ ]*)\s+(?<severity>\w)\s+(?<component>[^ ]+)\s+\[(?<context>[^\]]+)]\s+(?<message>.*?) *(?<ms>(\d+))?(:?ms)?$
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
Time_Key time
[PARSER]
# http://rubular.com/r/tjUt3Awgg4
Name cri
Format regex
Regex ^(?<time>[^ ]+) (?<stream>stdout|stderr) (?<logtag>[^ ]*) (?<message>.*)$
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
[PARSER]
Name kube-custom
Format regex
Regex (?<tag>[^.]+)?\.?(?<pod_name>[a-z0-9](?:[-a-z0-9]*[a-z0-9])?(?:\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace_name>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$
[PARSER]
Name filter-kube-test
Format regex
Regex (?<tag>[^.]+)?\.?(?<pod_name>[a-z0-9](?:[-a-z0-9]*[a-z0-9])?(?:\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace_name>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$