-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDefaultConfiguration.yml
165 lines (158 loc) · 5.91 KB
/
DefaultConfiguration.yml
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
colorization: true
pattern: "${timestamp} ${level} <${thread}> ${logger}: ${message} {${others}} ${stacktrace}"
startup-line:
color: FgGreen, OpBold
contains: "Started Application in"
print-format: "\n%s\n"
line-no:
print: true
color: FgGray
unknown-line:
print: true
color: FgBlue
prefix:
print: true
color: FgBlue
grok: # logstash GROK configuration, used to parse non-JSON log lines. DISABLED if `uses` is empty
uses: # array of GROK pattern names to be used. Check files in `library-dirs` for available patterns
matches-fields: # array of STANDARD field names used by jog to judge if or not a log line matches used GROK patterns
- timestamp
library-dirs: # array of library directory that has GROK pattern files
- ~/.jog/grok_vjeantet # Will touch it and put default patterns there if not exists. To reset it, run `jog --reset-grok-library-dir`
- ~/.jog/grok_extended
- ~/.jog/grok_mine
- ./.jog/grok_library # Ignore if not exists
fields:
others:
name:
color: FgYellow
separator:
label: =
color: FgDefault
value:
color: FgDefault
level: # 'level' field is a hard-coded field used for level filter as well, so don't rename it
# And, it must be an enum.
print-format: "%-5.5s" # follows https://golang.org/pkg/fmt/
alias: "level, @level, severity, @severity"
case-sensitive: false
enums:
case-sensitive: false
default: WARN
DEBUG:
alias: debug,20
color: FgBlue,OpBold
INFO:
alias: info,30,log
color: FgBlue,OpBold
ERROR:
alias: error,err,critical,50
color: FgRed,OpBold
WARN:
alias: warn,warning,40
color: FgYellow,OpBold
TRACE:
alias: trace,10
color: FgGreen,OpBold
FINE:
alias: fine
color: FgCyan,OpBold
FATAL:
alias: fatal,60
color: FgRed,OpBold
app:
print: false
alias: "name, @name, @app"
case-sensitive: false
color: FgDefault
class:
print: false
alias: "classname, class-name, @class_name, @classname, @class-name, @class_name"
case-sensitive: false
color: FgDefault
compress-prefix:
enabled: true
separators: ., /, \
action: remove
env:
alias: "environment, @env, @environment"
case-sensitive: false
color: FgDefault
file:
alias: "src, source, filename, file-name, file_name, filepath,file-path, file_path, @src, @source, @file, @filename, @file-name, @file_name, @filepath, @file-path, @file_path"
case-sensitive: false
color: FgDefault
compress-prefix:
enabled: true
separators: /, \
action: remove
host:
print: false
alias: "hostname, host-name, host_name, @host, @hostname, @host-name, @host_name"
case-sensitive: false
color: FgDefault
line:
alias: "lineno, line-no, line_no, linenum, line-num, line_num, linenumber, line-number, line_number, @lineno, @line-no, @line_no, @linenum, @line-num, @line_num, @linenumber, @line-number, @line_number"
case-sensitive: false
color: FgDefault
logger:
alias: "id, logger_name, logger-name, loggername, @id, @logger_name, @logger-name, @loggername, @logger"
case-sensitive: false
color: FgDefault, OpUnderscore
compress-prefix:
enabled: true
separators: . , /
white-list: com.wxcount
action: remove-non-first-letter
message:
alias: "msg, @msg, @message"
case-sensitive: false
color: FgCyan
method:
alias: "methodname, method-name, method_name, func, funcname, func-name, func_name, function, functionname, function-name, function_name, @method, @methodname, @method-name, @method_name, @func, @funcname, @func-name, @func_name, @function, @functionname, @function-name, @function_name"
case-sensitive: false
color: FgDefault
pid:
print: false
alias: "process, process-id, processid, process_id, @pid, @process, @process-id, @processid, @process_id"
case-sensitive: false
color: FgDefault
request:
alias: "req, @req, @request"
case-sensitive: false
color: FgDefault
response:
alias: "res, resp, @res, @resp, @response"
case-sensitive: false
color: FgDefault
stacktrace:
alias: "err, error, stack, stack_trace, stack-trace, @stack, @stack_trace, @stack-trace, @stacktrace, error.stack_trace, @error.stack_trace"
case-sensitive: false
color: FgRed
print-format: "\nStack trace: \n%s"
thread:
alias: "thread_name, thread-name, threadname, @thread, @thread_name, @thread-name, @threadname"
case-sensitive: false
color: FgDefault
timestamp: # 'timestamp' field is a hard-coded field used for time range filter as well, so don't rename it
alias: "time, date, datetime, date-time, date_time, @time, @timestamp, @date, @datetime, @date-time, @date_time"
case-sensitive: false
color: FgDefault
#type: auto
#time-format: auto # 'auto' means jog will try best to automatically figure out the timestamp format which is done by github.com/araddon/dateparse.
# If explicitly specified, must present 2006-1-2 3:04pm.
#
# Perhaps ambigous (see https://github.com/qiangyt/jog/issues/49), but this time-format as well as
# timezone attribute are not for print/conversion, instead, they're only used to parse --after filter
# value, --before filter value, and timestamp field value. And parsing only occurs if --after/--before
# filter value is specified.
# timestamp field is always outputted without any conversion, even these 2 attributes are specified
#timezone: UTC # see golang time.LoadLocation(timezone)
user:
alias: "usr, username, user-name, user_name, @usr, @username, @user-name, @user_name, @user"
case-sensitive: false
color: FgDefault
version:
alias: "ver, @ver, @version"
case-sensitive: false
color: FgDefault