Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

td-agent use with fluent-plugin-docker_metadata_filter out_mongo not work #83

Open
@udomsak

Description

@udomsak

I use td-agent version 0.12.12 and use plugin "fluent-plugin-docker_metadata_filter" and set output to mongodb.

output - file no problem.
output - console - no problem.

but for mongo output not work and not show any error. not sure what happen

Also td-agent and plugin work that i no idea why that. Please investigate too. :)

This my configuration file

<source>
  type tail
  path /var/lib/docker/containers/*/*-json.log
  pos_file fluentd-docker.pos
  time_format %Y-%m-%dT%H:%M:%S
  tag docker.*
  format json
  read_from_head true
</source>

<filter docker.var.lib.docker.containers.*.*.log>
  type docker_metadata
</filter>

<match **>
  type stdout
</match>

<match **>
  type file
  path /var/log/docker/*.log
  format json
</match>


<match **>
  type mongo
  host 127.0.0.1
  port 27017
  database docker
  collection logs

  # for capped collection
  capped
  capped_size 1024m

  remove_tag_prefix docker.var.lib.docker.containers.*.*.log

  # authentication
  #user michael
  #password jordan

  # key name of timestamp
  time_key time

  log_level trace
  ignore_invalid_record true
  disable_collection_check true

  # flush
  flush_interval 10s
</match>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      td-agent use with fluent-plugin-docker_metadata_filter out_mongo not work · Issue #83 · treasure-data/td-agent