嘿~ 今天天气不错嘛

Filebeat output es 如何配置多索引多pipeline

Beats | 作者 Florence | 发布于2020年09月09日 | 阅读数:2346

setup.ilm.enabled: false
setup.template.overwrite: true
setup.template.name: "test_log"
setup.template.pattern: "test_log-*"
setup.template.enabled: true

output.elasticsearch:
hosts: ["localhost:9200"]
index: "test_log-%{[fields.index]}-*"
indices:
- index: "test_log-zookeeper-%{+yyyy.MM.dd}"
pipeline: "test-zookeeper-pipeline"
when.equals:
fields.index: "zookeeper"
- index: "test_log-flume-%{+yyyy.MM.dd}"
pipeline: "test-flume-pipeline"
when.equals:
fields.index: "flume"
以上是我传输到es的配置,可以实现分到多个index,但是配置的pipeline无法生效
已邀请:

hz_zqc

赞同来自:

信息太少  这样配应该是可以生效的

sweetguy

赞同来自:

问题解决了吗,分享一下

gitzhanglj

赞同来自:

8.5版本,写到inputs下,亲测可以生效

要回复问题请先登录注册