Hi,
Trying to parse different kinds of log files and output to ES but seems like the condition gets ingnored by logsash when applying filters and I get some error. Any ideas what could be going wrong?
this is the structure of my config file
if [type] == "type1" {
json {
}
} else if [type] == "type2" {
grok {
}
}else if [type] == "type3"{
csv {
}
}
I get grock parse errors for files of type3 though im not applying grok filter to the type.