Skip to content

Commit 307f729

Browse files
Merge pull request #149 from doksu/master
"handlers" stanza missing in examples/searchcommands_template/default/logging.conf
2 parents cadf1d1 + e934bc8 commit 307f729

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/searchcommands_template/bin/stream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class %(command.title())Command(StreamingCommand):
2323
"""
2424
def stream(self, events):
2525
# Put your event transformation code here
26-
pass
26+
for event in events:
27+
yield event
2728

2829
dispatch(%(command.title())Command, sys.argv, sys.stdin, sys.stdout, __name__)

examples/searchcommands_template/default/logging.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ handlers = app
3333
# Default: 1
3434
propagate = 0
3535

36+
[handlers]
37+
keys = app, splunklib, stderr
38+
3639
[handler_app]
3740
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/searchcommands_app.log
3841
class = logging.handlers.RotatingFileHandler

0 commit comments

Comments
 (0)