I'm trying to use the grep function, but it not works,
this is the error :
Couldn't find any filter plugin named 'grep'. Are you sure this is correct?
Trying to load the grep filter plugin resulted in this error: no such file to
load -- logstash/filters/grep
and this is my file logstash.conf
input {
stdin { }
file {
type => "FireWall"
path => "/var/log/test.txt"
start_position => 'beginning'
}
}
filter {
grep {
match =>["message",".* Morito .*"]
}
grok {
patterns_dir => "./patterns"
match => [
"message", "%{WORD:firstname} %{WORD:lastname} %{NUMBER:age}
]
}
}
output {
stdout { }
elastic search {
cluster => "logstash"
}
}
What should i do please ?