-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.doglog
41 lines (36 loc) · 2 KB
/
example.doglog
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
[server]
api-key = #ADDME#
application-key = #ADDME#
# Fields from Datadog
# __Status
# __Service
# __Host
# __Timestamp
# __Message
# Default computed fields (if you don't define any below)
# __level - normalized and uppercased
# __message
# __json
# __classname
# __short_classname
# __threadname
# __timestamp
# You don't have to define these fields if you don't need to alter them.
# These are the default definitions built into doglog.
[fields]
__level = __Status, level, status, loglevel, log_status, LogLevel, severity
__message = __Message, message, msg, textPayload, Message, full_message, original_message, _raw
__classname = classname, logger_name, LoggerName, component, name
__threadname = threadname, thread_name
__timestamp = __Timestamp, timestamp
__service = __Service, service
# You need to define the formats. If you don't, then json will be output.
[formats.short]
java1 = {{.__timestamp}} {{._Level_color}}{{.__level | printf "%-5.5s"}}{{._Reset}} {{.__short_classname | printf "%-30.30s"}} -- {{._Level_color}}{{.__message}}{{._Reset}}
minimal = {{.__timestamp}} {{._Level_color}}{{.__level | printf "%-5.5s"}} {{.__message}}{{._Reset}}
# You need to define the formats. If you don't, then json will be output.
[formats.long]
java1 = {{.__timestamp}} {{.__service | printf "%-20.20s"}} {{._Level_color}}{{.__level | printf "%-5.5s"}}{{._Reset}} [{{.__threadname | printf "%-20.20s"}}] {{.__short_classname | printf "%-30.30s"}} -- {{._Level_color}}{{.__message}}{{._Reset}}
java2 = {{.__timestamp}} {{.__service | printf "%-20.20s"}} {{._Level_color}}{{.__level | printf "%-5.5s"}}{{._Reset}} {{.__short_classname | printf "%-30.30s"}} -- {{._Level_color}}{{.__message}}{{._Reset}}
java3 = {{.__timestamp}} {{.__service | printf "%-20.20s"}} {{._Level_color}}{{.__level | printf "%-5.5s"}}{{._Reset}} [{{.__threadname | printf "%-20.20s"}}] {{._Level_color}}{{.__message}}{{._Reset}}
minimal = {{.__timestamp}} {{.__service | printf "%-20.20s"}} {{._Level_color}}{{.__level | printf "%-5.5s"}} {{.__message}}{{._Reset}}