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

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.
I am trying to send the parsed data from Fluentd to MongoDB. My system configuration is as below:
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:
Can anyone explain this. There is no error log as such.