forked from sevdokimov/log-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spytest.conf
executable file
·73 lines (59 loc) · 2.51 KB
/
spytest.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
log-viewer.server.port=8111 // A port to bind Web UI
log-viewer.server.context-path="/"
// log-viewer.server.interface=localhost
log-viewer.use-web-socket=true
log-viewer.backdoor_server.port=9595
// List of file patterns describing visible files and subdirectories
logs = [
{
path: "**/*.log" // All files with ".log" extension are visible by default
format = {
type: RegexLogFormat
//regex: "(?<date>\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d,\\d{3}) +(?<thread>T\\d+): +(?<level>[A-Z]+) (?<dut>[-A-Z0-9]+)* (?<msg>.+)"
regex: "(?<date>\\d{4}-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d,\\d{3}) (?<thread>T\\d+): (?<level>[A-Z]+) (?<msg>.+)"
charset: UTF-8
fields: [
{ name: "date", type: "date" },
{ name: "thread", type: "thread" },
{ name: "level", type: "level/log4j" },
//{ name: "dut", type: "" },
//{ name: "level", type: "level" },
//{ name: "logger", type: "class" },
{ name: "msg", type: "message" },
]
}
}
{
path: "**/*.log.*" // All files like "*.log.1" are visible by default
}
// {
// path: ${HOME}"/my-app/logs/*.log"
// format: {
// type: LogbackLogFormat
// pattern: "%date{yyyy-MM-dd_HH:mm:ss.SSS} [%thread] %-5level %logger{35} - %X{pipelineId}%X{contentId}%msg%n"
// }
// }
]
authentication.enabled = false // Enabling/disabling Basic HTTP authentication
// List of users for basic authentication. Used when `authentication.enabled=true`
users = [
{ name: "user1", password: "1" },
{ name: "user2", password-md5: "c81e728d9d4c2f636f067f89cc14862c" }, // The password is "2". Specified as md5 hash of "2" string.
]
// shorten log paths
log-paths = {
// // "my-app" is a query parameter in URL, http://localhost:8111/logs?log=my-app shows logs from ~/my-app/logs/my-app.log
// my-app = {
// file = ${HOME}"/my-app/logs/my-app.log"
// }
// // "multinode-app" is a query parameter in URL, http://localhost:8111/logs?log=multinode-app shows logs from
// // /opt/multinode-app/logs/app.log files on "node-cn-01", "node-cn-02" and "node-cn-03" hosts.
// multinode-app = {
// file = "/opt/multinode-app/logs/app.log"
// host = ["node-cn-01", "node-cn-02", "node-cn-03"]
// }
}
ui-config {
// properties."java-exception-renderer.home-package" = ["com.mycompany.myapp"] // the name of java package highlighted in stacktraces
send-usage-statistics: true // ping "http://myregexp.com/log-viewer-statistic/$version/*.png" URL when LogViewer is opening
}