IF ELSE in Logstash INPUT

Hey there,

at the moment many different systems were sending logs on port 514

Does anyone know if it is possible to declare different type direktly in the input section?

Something like:

input {
udp {
port => "514"
if [grok{ patterns_dir => [ "/opt/logstash/patterns" ]
match => [
type => "cisco"

No, but you can change the type in the filter section.

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