-
Notifications
You must be signed in to change notification settings - Fork 2
/
parsers.conf
223 lines (221 loc) · 10 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
215
216
217
218
219
220
221
222
223
[PARSER]
Name dummy_test
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S %z
[PARSER]
# Attempt to make universal regex to match firstline of multiline
# messages
Name firstline
Format regex
Regex ^((Sun|Mon|Tue|Wed|Thu|Fri|Sat|Jan|Feb|Mar|Apr|May|June|July|Aug|Sep|Oct|Nov|Dec)[ ,]|[0-9]{4}\-|\[?(INFO|WARNING|DEBUG|ERROR|SEVERE|info|warning|debug|error|severe)[:\]])
[PARSER]
Name govanity
Format regex
Regex ^(?<time>[0-9]{4}\/[0-9]{2}\/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}) ((?<client_address>[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):(?<client_port>[0-9]+) (?<method>GET|POST|HEAD) (?<path>\/.*))?(?<message>.*)$
Time_Key time
Time_Format %Y/%m/%d %H:%M:%S
[PARSER]
Name elasticsearch
Format regex
# https://regex101.com/r/AlFQQo/2
Regex ^\[(?<time>[0-9\-]+T[0-9:\.,]+)\]\[(?<severity>[A-Z]+)\s*\]\[(?<class>[A-Za-z\.]*)\s*\]\s*(\[(?<elastic_node>[a-z0-9\-]*)\](:?\s\[(?<elastic_index>[a-zA-Z0-9\-_\.\/]*)\])?)?\s(?<message>.*)
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S,%L
[PARSER]
Name jenkins
Format regex
Regex ^((?<severity>DEBUG|INFO|WARNING|SEVERE|ERROR):\ |(?<client_address>[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) - - \[.*\] |(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) [0-9]{2}, [0-9]{4} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} (AM|PM) )?(?<message>.*)$
[PARSER]
Name apigw
Format regex
Regex \[(?<time_parsed>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\]\[(?<worker>\d+)\]\[(?<severity>[a-z]+)\]\[(?<component>[a-z]+)\] \[?(?<filename>[a-z\/\._\-0-9]+):(?<line>[0-9]+)\] (?<message>.*)
#USE_DOCKER_TIME#Time_Key time
#USE_DOCKER_TIME#Time_Format %Y-%m-%d %H:%M:%S.%L
Time_Keep On
Types time_parsed:string worker:string component:string
[PARSER]
Name envoy
Format regex
Regex \[(?<time_parsed>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\]\[(?<worker>\d+)\]\[(?<severity>[a-z]+)\]\[(?<component>[a-z]+)\] \[?(?<filename>[a-z\/\._\-0-9]+):(?<line>[0-9]+)\] (?<message>.*)
#USE_DOCKER_TIME#Time_Key time
#USE_DOCKER_TIME#Time_Format %Y-%m-%d %H:%M:%S.%L
Time_Keep On
Types time_parsed:string worker:string component:string
[PARSER]
Name golang
Format regex
Regex ^(?<time_parsed>[0-9\-]+ [0-9:\.]+) (?<severity>[A-Z]) \| (?<message>.*)((\R\R?|\z)(?<exception>(\R?|[a-z].*|(\t|\\u0009).*)+))?$
#USE_DOCKER_TIME#Time_Key time
#USE_DOCKER_TIME#Time_Format %Y-%m-%d %H:%M:%S.%L
Time_Keep On
Types time_parsed:string
[PARSER]
Name ike
Format regex
Regex ^(?:(?<time_parsed>[0-9\-\+\.:A-Z%]+)[\v(\t|\\u0009) ]+)?(?<message>.*)$
Time_Keep On
Types time_parsed:string message:string
#Time_Key time
#Time_Format %Y-%m-%dT%H:%M:%S.%L%z
[PARSER]
# https://regex101.com/r/FV0goH/5
Name serviceframework-legacy
Format regex
# time resolution: seconds
# timezone is stripped (we expect UTC/Zulu everywhere)
Regex ^(?<time_parsed>[0-9\-\+:A-Z]+)[-.0-9A-Z]*[\v(\t|\\u0009) ]+(?<severity>[A-Z]+)[\v(\t|\\u0009) ]+(?:(?<filename>[a-zA-Z0-9\/\._]+\.[\w\d]+)(?::(?<line>[0-9]+))?[\v(\t|\\u0009) ]+)?(?:(?<uid>[-[:xdigit:]]*):?[\v(\t|\\u0009) ]*)?(?<message>[\w\d\ (\t|\\u0009),\.\"\':\?\!\-_\(\)]*)(?:[\v(\t|\\u0009) ]+(?<message_extra>\{.*))?(?:(?:\R\R?|\z)(?<exception>(?:\R?|[a-z].*|(\t|\\u0009).*)+))?$
#USE_DOCKER_TIME#Time_Key time
#USE_DOCKER_TIME#Time_Format %Y-%m-%dT%H:%M:%S
# XXX: Don't decode field as elastic has troubles to save hashes that doesn't have fixed format
#Decode_Field_As json message_extra
Time_Keep On
Types time_parsed:string line:integer uid:string
[PARSER]
Name serviceframework
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
Time_Keep On
[PARSER]
Name serviceframework-json
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
Time_Keep On
[PARSER]
Name serviceframework_stderr
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L%z
Time_Keep On
[PARSER]
Name kibana
Format json
Time_Key @timestamp
Time_Format %Y-%m-%dT%H:%M:%SZ
Time_Keep On
[PARSER]
Name prometheus
Format regex
# https://regex101.com/r/3ebvWV/1
Regex (?:level="?(?<severity>[a-z]+)"?|ts=(?<time>[0-9\-]+T[0-9:\.]+Z)"?|caller="?(?<caller>[^\s]+)"?|target=\"?(?<target>.*)\"?|msg="(?<message>[^"]+)"|component=\"?(?<component>[a-z0-9]*)\"?|mint=\"?(?<mint>[0-9]*)\"?|maxt=\"?(?<maxt>[0-9]*)\"?|ulid=\"?(?<ulid>[0-9A-Za-z]*)\"?|prefix=\"?(?<prefix>[0-9A-Za-z\/]*)\"?|branch=\"?(?<branch>[0-9A-Za-z]*)\"?|revision=\"?(?<revision>[0-9a-z]*)\"?|version=\"?(?<version>[0-9a-z\.]*)\"?|api="?(?<api>[^"]+)"?)
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%LZ
#Time_Keep On
[PARSER]
# https://rubular.com/r/L5BHpdYt4aqa0C
Name alertmanager
Format regex
Regex /^level="?(?<severity>[^\s]+)"?\s+ts="?(?<time>[0-9\-]+T[0-9:\.]+Z)"?\s+?(?:caller="?(?<caller>[^\s]+)"?)?\s+component="?(?<component>[^\s]+)"?\s+msg="(?<message>[^"]+)"\s*(duration="?(?<duration>[^\s]+)"?)?\s*(size="?(?<size>[\.0-9]+)"?)?/
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%LZ
[PARSER]
# https://rubular.com/r/cdEq68iXgZyBRn
Name kubernetes_dashboard_azure
Format regex
Regex /^(?<time>[0-9\/]+\ [0-9\-\+\.:A-Z]+)\s+(?<message>.*)$/
Time_Key time
Time_Format %Y/%m/%d %H:%M:%S
[PARSER]
# http://rubular.com/r/7hKT3g53UP
Name etcd_operator
Format regex
Regex /^time="?(?<time>[0-9\-\+\.:A-Z]+)"?\s+level="?(?<severity>[a-z]+)"?\s+msg="(?<message>[^"]+)"\s+(?:cluster-name=(?<etcd_cluster_name>[^\s]+))\s+(?:pkg=(?<pkg>[^\s]+))/
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%SZ
[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>.*)$
Types level:string pid:string
[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 json
Format json
Time_Keep On
[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_utf8 log do_next
#Decode_Field_As escaped log do_next
[PARSER]
Name syslog
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
Types pri:integer pid:integer
[PARSER]
Name ui-ves-backend
Format regex
Regex (?<time>[0-9\-]+ [0-9:\.]+) \|\| (?<severity>[a-z]+): \"(?<message>.*)\"
Time_Key time
Time_Format %Y-%m-%d %H:%M:%S
[PARSER]
Name ui-node-static
Format regex
Regex (?<message>.*)
[PARSER]
Name fluentbit
Format regex
Regex /^\[(?<time>[^ +][\/-:0-9TZ]+[ -:+0-9TZ]*)\]\s*\[\s*(?<severity>[^ ][[:alpha:]]+)\]\s*\[(?<component>[^ ][-_\w*]+[[:alnum:]:]+)\]\s*(?<message>.*){0,1}$/
Time_Key time
Time_Format %Y/%m/%d %H:%M:%S
[PARSER]
Name fluentd
Format regex
Regex ^\s*(?<time>[0-9\-]+\s[0-9:]+\s[A-Z\+0-9]+)\s\[(?<severity>[a-z]+)\]:\s(?<message>.*)
Time_Key time
Time_Format %Y-%m-%d %H:%M:%S %z
[PARSER]
# http://rubular.com/r/IxrntrrO0N
Name keycloak
Format regex
Regex /(?<time_parsed>([-0-9]+\s+){0,1}[-:0-9TZ[:upper:]]+)(?:[,\d]+)\s+(?<severity>[A-Z]+)\s+\[(?<handler>.*)\]\s+\((?<task>.*)\)\s+((type=(?<type>[^,]\w+))?([,\s]+)?)?((realmId=(?<realm_id>[^,][-\w]+))?([,\s]+)?)?((clientId=(?<client_id>[^,][-\w]+))?([,\s]+)?)?((userId=(?<user_id>[^,][-\w]+))?([,\s]+)?)?((ipAddress=(?<ipaddress>[^,][.\d]+))?([,\s]+)?)?((error=(?<error>[^,][.\w]+))?([,\s]+)?)?((auth_method=(?<auth_method>[^,][-\w]+))?([,\s]+)?)?((auth_type=(?<auth_type>[^,][.\w]+))?([,\s]+)?){0,1}(?<message>.*){0,1}(?<exception>.*(\R\R?|\z)\s.*(\R\R?|\z).*(\R\R?|\z)){0,1}/
# FIXME, keycloak time format https://gitlab.com/volterra/ves.io/docker-keycloak/issues/12
# Time_Key time
# Time_Format %Y-%m-%dT%H:%M:%S.%LZ
# Time_Format H:%M:%S
Time_Keep On
Types time_parsed:string severity:string message:string
[PARSER]
Name mysql
Format regex
Regex /^(?<time>[^ +][ -:0-9TZ]+|[[:upper:]][[:lower:]]{2}[ -:+0-9TZ]*)\s+(?<myid>[^ ]\d+)\s+\[(?<mtype>[^ ]\w+)\](\s+(?<subsystem>[^ ]\w+):){0,1}\s+(?<message>.*)$/
Time_Key time
Time_Format %Y-%m-%d %H:%M:%S
[PARSER]
Name coredns
Format regex
Regex ^(?<time_parsed>[^ ][ \/-:0-9A-Z]+)[ -.0-9A-Z]*\s*\[(?<serverity>[^ ][A-Z]+)\](?<message>.*)$
Time_Keep On
[PARSER]
# https://rubular.com/r/Xde7kNDOUte9ZZ
Name initscript
Format regex
Regex /^((?<time_parsed>[0-9\-\+:T]{19})[-.0-9A-Z]*\s+)?((?<severity>DEBUG|INFO|WARNING|SEVERE|ERROR)\s+)?(?<message>\w+.*)(?<multiline>.*(\R\R?|\z)(\ .*(\R\R?|\z))*)?$/
Time_Keep On
Types time_parsed:string severity:string message:string multiline:string