Herramientas de usuario

Herramientas del sitio


wiki2:fluentd

¡Esta es una revisión vieja del documento!


Fluentd

Also called td-agent.

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:

  • source directives determine the input sources.
  • match directives determine the output destinations.
  • filter directives determine the event processing pipelines.
  • system directives set system wide configuration.
  • @include directives include other files.

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.

Useful plugins

  • For replication use the out_copy plugin.
wiki2/fluentd.1430924004.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)