Logstash stop running

this is my logstash config:

input{
tcp{
	port => 5510
	codec => json
	type =>"ntopng-*"
}
}
filter{
	if[type]=="ntopng-*"
	{
		if "" not in [IPV4_SRC_ADDR] and "" not in [IPV6_SRC_ADDR]
		{
			drop{}
		}
	}
}
output{
elasticsearch {
			
            codec => "json" 
            hosts => ["localhost:9200"]
			user  =>elastic
			password =>SNOOPY255262

    }
if[type]=="ntopng-*"
{
	stdout{codec=> rubydebug}
}
}

Sometimes it would stop running, and after I key "enter" it would work regularly.
How to solve it?

thank you in advance!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.