Skip to content

Commit 1d4b62c

Browse files
committed
Relative log paths for search command app example
1 parent 9e4752b commit 1d4b62c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/searchcommands_app/package/default/logging.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ propagate = 0
7171
keys = app, splunklib, stderr
7272

7373
[handler_app]
74-
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/searchcommands_app.log
74+
# Select this handler to log events to searchcommands_app.log
7575
class = logging.handlers.RotatingFileHandler
7676
level = NOTSET
77-
args = ('%(SPLUNK_HOME)s/var/log/splunk/searchcommands_app.log', 'a', 524288000, 9, 'utf-8', True)
77+
args = ('searchcommands_app.log', 'a', 524288000, 9, 'utf-8', True)
7878
formatter = searchcommands
7979

8080
[handler_splunklib]
81-
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/splunklib.log
81+
# Select this handler to log events to splunklib.log
8282
class = logging.handlers.RotatingFileHandler
83-
args = ('%(SPLUNK_HOME)s/var/log/splunk/splunklib.log', 'a', 524288000, 9, 'utf-8', True)
83+
args = ('splunklib.log', 'a', 524288000, 9, 'utf-8', True)
8484
level = NOTSET
8585
formatter = searchcommands
8686

0 commit comments

Comments
 (0)