Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/searchcommands_template/bin/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class %(command.title())Command(StreamingCommand):
"""
def stream(self, events):
# Put your event transformation code here
pass
for event in events:
yield event

dispatch(%(command.title())Command, sys.argv, sys.stdin, sys.stdout, __name__)
3 changes: 3 additions & 0 deletions examples/searchcommands_template/default/logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ level = NOTSET ; Default: WARNING
handlers = app ; Default: stderr
propagate = 0 ; Default: 1

[handlers]
keys = app, splunklib, stderr

[handler_app]
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/searchcommands_app.log
class = logging.handlers.RotatingFileHandler
Expand Down