¡Esta es una revisión vieja del documento!
Also called td-agent.
Before install: http://docs.fluentd.org/articles/before-install
By default, td-agent is configured to take logs from HTTP and route them to stdout (/var/log/td-agent/td-agent.log). You can post sample log records using the curl command: $ curl -X POST -d 'json={“json”:“message”}' http://localhost:8888/debug.test
$ /etc/init.d/td-agent start $ /etc/init.d/td-agent stop $ /etc/init.d/td-agent restart $ /etc/init.d/td-agent status
Reload the configuration: sudo /etc/init.d/td-agent reload
Configuration is in /etc/td-agent/td-agent.conf
Directives into the config:
Each source directive must include a type parameter. The type parameter specifies which input plugin to use.
The source submits events into the Fluentd’s routing engine. An event consists of three entities: tag, time and record. The tag is a string separated by ‘.’s (e.g. myapp.access), and is used as the directions for Fluentd’s internal routing engine.
The “match” directive looks for events with _match_ing tags and tells Fluentd what to do.
Install plugins: $ /usr/sbin/td-agent-gem install fluent-plugin-xx
/opt/td-agent/embedded/bin/fluentd-ui startLibraries:
from fluent import sender, event sender.setup('debug.test', host='127.0.0.1', port=24224) event.Event('json', {"json":"message from python"})