Fix Splunk HEC and Twisted HTTP

This commit is contained in:
Michel Oosterhof
2017-07-25 09:32:46 +04:00
parent 48e44a2c9d
commit 6a11ab796d

View File

@ -28,7 +28,7 @@ class Output(cowrie.core.output.Output):
Optional: index, sourcetype, source, host
"""
self.token = cfg.get('output_splunk', 'token')
self.url = cfg.get('output_splunk', 'url')
self.url = bytes(cfg.get('output_splunk', 'url'))
try:
self.index = cfg.get('output_splunk', 'index')
except: