Use filter in output

Hi all,

I wonder if it is possible to use filter value in output.
For example, my output is formatted like this :

output {
mongodb {
id => "mongodb_plugin_id"
collection => ""
database => "my_mogodb_database"
uri => "mongodb://username:password@localhost:27017/my_mogodb_database"
codec => "json"

And I would like to set dynamically depending on a pattern extract in the filter.

hope to be clear enough and as I am new in logstash I am a little bit confused.

Best regards

You can sometimes reference fields from an event in the configuration of an output using a sprintf reference. Does that help?

Thanks for your reply @Badger, I think that I have to read more on documentation. I still do not know how to use what you mentioned.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.