"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "salt/engines/logstash_engine.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

logstash_engine.py  (salt-2019.2.0):logstash_engine.py  (salt-2019.2.1)
skipping to change at line 36 skipping to change at line 36
# Import salt libs # Import salt libs
import salt.utils.event import salt.utils.event
# Import third-party libs # Import third-party libs
try: try:
import logstash import logstash
except ImportError: except ImportError:
logstash = None logstash = None
log = logging.getLogger(__name__)
__virtualname__ = 'logstash' __virtualname__ = 'logstash'
def __virtual__(): def __virtual__():
return __virtualname__ \ return __virtualname__ \
if logstash is not None \ if logstash is not None \
else (False, 'python-logstash not installed') else (False, 'python-logstash not installed')
log = logging.getLogger(__name__)
def start(host, port=5959, tag='salt/engine/logstash', proto='udp'): def start(host, port=5959, tag='salt/engine/logstash', proto='udp'):
''' '''
Listen to salt events and forward them to logstash Listen to salt events and forward them to logstash
''' '''
if proto == 'tcp': if proto == 'tcp':
logstashHandler = logstash.TCPLogstashHandler logstashHandler = logstash.TCPLogstashHandler
elif proto == 'udp': elif proto == 'udp':
logstashHandler = logstash.UDPLogstashHandler logstashHandler = logstash.UDPLogstashHandler
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)