forked from alertmanager/alert_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.conf
More file actions
65 lines (53 loc) · 2.04 KB
/
logging.conf
File metadata and controls
65 lines (53 loc) · 2.04 KB
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
[loggers]
keys = root, splunklib, alert_manager, ModifyIncidentsCommand
[logger_root]
level = WARNING ; Default: WARNING
handlers = stderr ; Default: stderr
[logger_splunklib]
qualname = splunklib
level = NOTSET ; Default: WARNING
handlers = splunklib ; Default: stderr
propagate = 0 ; Default: 1
[logger_ModifyIncidentsCommand]
qualname = ModifyIncidentsCommand
level = NOTSET ; Default: WARNING
handlers = app ; Default: stderr
propagate = 0 ; Default: 1
[logger_alert_manager]
qualname = alert_manager
#level = NOTSET ; Default: WARNING
level = DEBUG
handlers = alert_manager
propagate = 0
[handlers]
# See [logging.handlers](http://goo.gl/9aoOx)
keys = alert_manager, app, splunklib, stderr
[handler_alert_manager]
class = logging.handlers.RotatingFileHandler
level = NOTSET
args = ('%(SPLUNK_HOME)s/var/log/splunk/alert_manager2.log', 'a', 524288000, 9, 'utf-8', True)
formatter = searchcommands
[handler_app]
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/searchcommands_app.log
class = logging.handlers.RotatingFileHandler
level = NOTSET
args = ('%(SPLUNK_HOME)s/var/log/splunk/searchcommands_app.log', 'a', 524288000, 9, 'utf-8', True)
formatter = searchcommands
[handler_splunklib]
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/splunklib.log
class = logging.handlers.RotatingFileHandler
args = ('%(SPLUNK_HOME)s/var/log/splunk/splunklib.log', 'a', 524288000, 9, 'utf-8', True)
level = NOTSET
formatter = searchcommands
[handler_stderr]
# Select this handler to log events to stderr which splunkd redirects to the associated job's search.log file
class = logging.StreamHandler
level = NOTSET
args = (sys.stderr,)
formatter = searchcommands
[formatters]
keys = alert_manager, searchcommands
[formatter_alert_manager]
format = %(asctime)s, Level=%(levelname)s, Pid=%(process)s, Logger=%(name)s, File=%(filename)s, Line=%(lineno)s, %(message)s
[formatter_searchcommands]
format = %(asctime)s, Level=%(levelname)s, Pid=%(process)s, Logger=%(name)s, File=%(filename)s, Line=%(lineno)s, %(message)s