Search code examples
elasticsearchdockerlogstashfluentd

Docker logs, stderr


Is it possible to separate docker logs between stderr \ stdout? Via fluentd\logstash etc. The ultimate goal - sending logs to elasticsearch and filter it by stderr\stdout


Solution

  • If you want to separate docker logs into stdout processing and stderr processing in fluentd side, you can use rewite-tag-filter plugin with source value.

    http://docs.fluentd.org/articles/out_rewrite_tag_filter