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.

  • Kubernetes pod fails while making call to google cloud pub/sub with unknown certificate autority
  • How to map docker ports using vagrant 1.6 and the docker provider
  • What is the recommended setup for an Elasticsearch cluster that contains data at the scale of TBs and above? [closed]
  • How to use Capistrano with Rails and Docker-compose?
  • How to move docker containers using device mapper to another machine without using docker commands
  • Kubernetes docker sample does not expose a port
  • 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!

  • How to open Ubuntu GUI inside docker image
  • Why does “bundle install --path” break when “bundle install” works?
  • Error committing Oracle tablespace in Docker
  • Fallback for environment variables with docker-compose
  • Is it possible to mount folder from container to host machine?
  • docker exe into container does not show container id?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.