可以使用命令直接定义
input {
udp {
...
type => "foo"
}
file {
...
type => "bar"
}
}
output {
if [type] == "foo" {
elasticsearch {
...
index => "foo-index"
}
} else {
elasticsearch {
...
index => "bar-index"
}
}
}
原文地址:http://blog.51cto.com/2765034/2091075
时间: 2024-10-09 09:54:27