I am using a single Logstash config file for multiple file inputs and grok filters and single ES output. The problem is that, it goes in infinite loop and I don't know why. I created separate files to check on if GROK is working fine for respective logs and it works fine. Then I merged the content and did configtest as well.
Logical part:
#----------Start-----
input {
file {
#TypeA
#path for file A
}
file {
#TypeB
#path for file B
}
}
filter {
if [type="A"] {
#GROK for A
}
}
filter {
if [type="B"] {
#GROK for B
}
}
output {
elasticsearch {
#output config for elasticsearch
}
}
#----------End-----
Please guide me for same