-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlogserver.json
66 lines (66 loc) · 1.32 KB
/
logserver.json
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
{
"sources": [
{
"name": "node1",
"url": "file://./example/log1"
},
{
"name": "node2",
"url": "file://./example/log2",
"open_tar": true,
"open_journal": "/journal"
},
{
"name": "node3",
"url": "file://./example/log3",
"open_tar": true
},
{
"name": "nginx-html",
"url": "nginx+http://localhost:8001"
},
{
"name": "nginx-json",
"url": "nginx+http://localhost:8002"
}
],
"parsers": [
{
"glob": "*.stratolog",
"json_mapping": {
"msg": "msg",
"level": "levelname",
"time": "created",
"args": "args",
"thread": "threadName",
"path": "pathname",
"lineno": "lineno",
"traceback": "exc_text"
},
"time_formats": [
"unix_float"
]
},
{
"regexp": "(?P<time>\\d{4}-\\d{2}-\\d{2}\\W\\d{2}:\\d{2}:\\d{2},\\d{3}.\\d{3})\\W\\d+\\W(?P<level>[[:alpha:]]+)\\W(?P<module>[^\\.]+)\\.(?P<function>[^\\W]+)\\W\\[[^]+]\\]\\W(?P<msg>.*)",
"time_formats": [
"2006-01-02 15:04:05.000"
]
}
],
"route": {
"root_path": "/logserver"
},
"dynamic": {
"root": "./",
"open_journal": "/journal"
},
"global": {
"exclude_extensions": [
".bin"
],
"exclude_dirs": [
"lttng"
]
}
}