Hi
I'm using logstash 7.0 . I'm having multiple events to filter. Instead of having one single config file, I prefer to have multiple filter config files for each event. As an example, I'm having a login event and I store that filter config in separate file.
I wish to give file path in filter as below
filter
{
if [I]=="login_event"
{
file {
path => "/home/logstash/config/login_event.txt"
}
}
else if[I] == "other_event"
{
file {
path => "/home/logstash/config/other_event.txt"
}
}
}
but I saw there is no file plugin available in filter. Is there any other way