mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
* [#1004] - support for influxdb connections over tls * removed blank line from end of file
This commit is contained in:
committed by
Michel Oosterhof
parent
73f0db7540
commit
0717f27238
@ -25,9 +25,14 @@ class Output(cowrie.core.output.Output):
|
||||
except Exception:
|
||||
port = 8086
|
||||
|
||||
try:
|
||||
ssl = CONFIG.getboolean('output_influx', 'ssl')
|
||||
except Exception:
|
||||
ssl = False
|
||||
|
||||
self.client = None
|
||||
try:
|
||||
self.client = InfluxDBClient(host=host, port=port)
|
||||
self.client = InfluxDBClient(host=host, port=port, ssl=ssl, verify_ssl=ssl)
|
||||
except InfluxDBClientError as e:
|
||||
log.err("output_influx: I/O error({0}): '{1}'".format(
|
||||
e.errno, e.strerror))
|
||||
|
||||
Reference in New Issue
Block a user