We need to save our nodejs application logs as records at MongoDB. Most of the records we should create, but there are some records that needs only update.
We want to use Fluentd. I see it has option to insert log to mongo, but I couldn't find a way to update existing records.
Is there a way to achieve that?
Here is my current td-agent.conf (it's still under development):
<match mongo.*>
@type mongo
host localhost
port 27017
database my-db
# Set 'tag_mapped' if you want to use tag mapped mode.
tag_mapped
# If the tag is "mongo.foo", then the prefix "mongo." is removed.
# The inserted collection name is "foo".
remove_tag_prefix mongo.
# This configuration is used if the tag is not found. The default is 'untagged'.
collection misc
</match>