Skip to content

Fluentd Not Sending Data to MongoDB #96

Description

@tech-talks-india

I am trying to send the parsed data from Fluentd to MongoDB. My system configuration is as below:

fluentd-system-configuration

And MongoDB plugin: fluent-plugin-mongo | 1.1.0

My data is being parsed but I am not able to send it to Mongo. Here is my config file:

<match *>
  @type mongo
  host 127.0.0.1
  port 27017
  user tti-prod
  password mypassword
  database fluent-testrun
  collection requests
  capped
  capped_size 100m
</match>

<source>
  @type tail
  path /home/my-app/logs/%Y/%b/app.log
  tag request.main
  format /^\[(?<time>[^\]]*)\] (?<ip>[^ ]*) (?<method>\w*) (?<url>[^ ]*) (?<format>[^ ]*) (?<size>\d*) (?<agent>[^ ]*) (?<status_code>\d*) (?<duration>\d*)$/
  time_format %Y-%m-%d %H:%M:%S 
  pos_file /tmp/fluentd--1516870436.pos
</source>

Can anyone explain this. There is no error log as such.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions