splitting docker stdout and stderr with fluentd fluent-plugin-rewrite-tag-filter plugin

I currently have the following config:

<match docker.nginx>
  @type rewrite_tag_filter
  rewriterule1 source stdout docker.nginx.stdout
  rewriterule2 source stderr docker.nginx.stderr

but this means, that with each container I have to do the same.

  • Grunt / Docker file paths
  • Python3 utf8 codecs not decoding as expected in Docker ubuntu:trusty
  • How to update docker container running on Amazon ECS
  • Docker Swarm Service Can Not Be Reached on Different Node After Period
  • Advantages of a Dockerfile
  • Not able to Pull from Docker Although image is present in docker hub
  • This isn’t working, but probably you’ll get what I want from it:

    <match docker.*>
      @type rewrite_tag_filter
      rewriterule1 source stdout docker.*.stdout
      rewriterule2 source stdout docker.*.stderr

    So my question is can I somehow refer to the matched tag in the match block? So if it’s nginx/rabbitmq/zookeeper/anything, it will split all event flows into docker.<fluentd-tag>.stdout and stderr.

    Thanks in advance!

  • Import data.sql MySQL Docker Container
  • invalid header field value "oci runtime error while running docker image
  • No module named rest_framework . Django + Docker
  • Communication between docker containers in differente networks
  • Docker doesn't install correct on Mac
  • Error while starting tomcat server inside docker centos
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.