mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38950 from mbom2004/2016.3
Fixed Logstash Engine in file logstash.py
This commit is contained in:
commit
b66b6f6423
1 changed files with 1 additions and 2 deletions
|
@ -19,7 +19,6 @@ them onto a logstash endpoint.
|
|||
# Import python libraries
|
||||
from __future__ import absolute_import
|
||||
import logging
|
||||
import json
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils.event
|
||||
|
@ -66,4 +65,4 @@ def start(host, port=5959, tag='salt/engine/logstash'):
|
|||
while True:
|
||||
event = event_bus.get_event()
|
||||
if event:
|
||||
logstash_logger.info(tag, extra=json.dumps(event))
|
||||
logstash_logger.info(tag, extra=event)
|
||||
|
|
Loading…
Add table
Reference in a new issue