%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/engines/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/engines/http_logstash.pyo |
�
���^c @@ s{ d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l Z i d d 6Z
d � Z d d d � Z
d S( u�
HTTP Logstash engine
==========================
An engine that reads messages from the salt event bus and pushes
them onto a logstash endpoint via HTTP requests.
.. versionchanged:: 2018.3.0
.. note::
By default, this engine take everything from the Salt bus and exports into
Logstash.
For a better selection of the events that you want to publish, you can use
the ``tags`` and ``funs`` options.
:configuration: Example configuration
.. code-block:: yaml
engines:
- http_logstash:
url: http://blabla.com/salt-stuff
tags:
- salt/job/*/new
- salt/job/*/ret/*
funs:
- probes.results
- bgp.config
i ( t absolute_importt print_functiont unicode_literalsNu application/jsonu Content-Typec
C@ sI t j j j | d d t d t j j j | � d t d t d t �} | S( u5
Issues HTTP queries to the logstash server.
u POSTt header_dictt datat decodet statust opts( t saltt utilst httpt queryt _HEADERSt jsont dumpst Truet __opts__( t urlR t result( ( s>