elk logstash中修改index
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elk logstash中修改index相关的知识,希望对你有一定的参考价值。
可以使用命令直接定义 input {
udp {
...
type => "foo"
}
file {
...
type => "bar"
}
}
output {
if [type] == "foo" {
elasticsearch {
...
index => "foo-index"
}
} else {
elasticsearch {
...
index => "bar-index"
}
}
}
以上是关于elk logstash中修改index的主要内容,如果未能解决你的问题,请参考以下文章
ELK 之数据收集传输过滤 Filebeat+Logstash 部署
ELK(elasticsearch+kibana+logstash)搜索引擎: elasticsearch基础教程