Skip to content

It's a listener to send logs from Supervisor to Fluentd (td-agent)

Notifications You must be signed in to change notification settings

ElectronicStars/supervisor2fluentd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

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:

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

About

It's a listener to send logs from Supervisor to Fluentd (td-agent)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%