-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.txt
28 lines (21 loc) · 1.34 KB
/
config.txt
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
# timestamp and dateformat patterns
# The first entry is a Java regex pattern for matching the timestamp.
# It should have two capturing groups using parenthesis - the first group pulls the timestamp and the second group pulls the rest of the line.
# The second entry is for parsing that match into a Java Date.
# Entries will be tried until one matches.
# 2014-06-08 12:57:14,024 INFO org.apache.solr.core.SolrCore
timestamp1=^(\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d\\s\\d\\d:\\d\\d:\\d\\d,\\d\\d\\d)(.*)$
timestamp1-dateformat=yyyy-MM-dd HH:mm:ss,SSS
# The Solr 5.1 default
# INFO - 2013-07-16 10:09:11.023; org.apache.solr.common.cloud.ConnectionManager;
timestamp2=^\\S+[\\s-]+(\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d\\s\\d\\d:\\d\\d:\\d\\d.\\d\\d\\d);(.*)$
timestamp2-dateformat=yyyy-MM-dd HH:mm:ss.SSS
# The Solr 7x default
# 2018-05-31 03:42:53.242 INFO (TEST-ChaosMonkeySafeLeaderTest.test-seed#[1068B7C5935267C]) [ ] o.e.j.s.session node0 Stopped scavenging
timestamp3=^(\\d\\d\\d\\d-\\d\\d-\\d\\d\\s\\d\\d:\\d\\d:\\d\\d.\\d\\d\\d)(.*)$
timestamp3-dateformat=yyyy-MM-dd HH:mm:ss.SSS
# If we enable this permissive (timestamp is just digits) pattern, you can get false positives on the above patterns
# 870 [main] INFO org.apache.solr.core.SolrResourceLoader
timestamp4=^(\\d+)\\s(.*)$
timestamp4-dateformat=seconds
# ^(\d\d\d\d\-\d\d\-\d\d\s\d\d:\d\d:\d\d,\d\d\d)(.*)$