NicolasJ
(Jardillier)
October 21, 2019, 10:43am
1
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
Badger
October 21, 2019, 12:00pm
2
You can sometimes reference fields from an event in the configuration of an output using a sprintf reference. Does that help?
NicolasJ
(Jardillier)
October 21, 2019, 1:09pm
3
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.
system
(system)
Closed
November 18, 2019, 1:09pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.