output {
mongodb {
collection => ... # string (required)
database => ... # string (required)
host => ... # string (required)
password => ... # password (optional)
port => ... # number (optional), default: 27017
tags => ... # array (optional), default: []
type => ... # string (optional), default: ""
user => ... # string (optional)
}
}
The collection to use. This value can use %{foo} values to dynamically select a collection based on data in the event.
The database to use
your mongodb host
the mongodb port
Only handle events with all of these tags. Note that if you specify a type, the event must also match that type. Optional.
The type to act on. If a type is given, then this output will only act on messages with the same type. See any input plugin's "type" attribute for more. Optional.