Supervisor listener to send supervisor logs to Fulentd (td-agent)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alfred b4d74e9487 Adding install instrucctions 4 years ago
README.md Adding install instrucctions 4 years ago
config.py First commit 4 years ago
requirements.txt First commit 4 years ago
supervisor2fluentd.py Changing the name 4 years ago

README.md

Supervisor2Fluentd

This script sends log lines from Supervisor to Fluentd. Supervisor2Fluentd performs listener actions and it must be configured like that. You only need to set the fluentd host and fluentd port in the config.py file, then the script will tag the received log lines as ‘supervisor.process.channel’ and send them to Fluentd.

Supervisor configuration

To configure Supervisord for making processes to send log lines to Supervisor2Fluentd you must specify the processes properties stderr_events_enabled and stdout_events_enabled to true. Now you only need to set the listener, which is something like this section into a supervisor config file:

[eventlistener:supervisor2fluentd]
command=python /path/supervisor2fluentd.py
events=PROCESS_LOG_STDERR,PROCESS_LOG_STDOUT

Install

You only need to install its dependences:

$ pip install -r requirements.txt