elasticsearch 如何在fluentd的匹配中定义多个索引名,elasticsearch,logging,kibana,fluentd,elasticsearch,Logging,Kibana,Fluentd" /> elasticsearch 如何在fluentd的匹配中定义多个索引名,elasticsearch,logging,kibana,fluentd,elasticsearch,Logging,Kibana,Fluentd" />

elasticsearch 如何在fluentd的匹配中定义多个索引名

elasticsearch 如何在fluentd的匹配中定义多个索引名,elasticsearch,logging,kibana,fluentd,elasticsearch,Logging,Kibana,Fluentd,我有下面的fluentd配置文件 <source> @type tail path /home/thingtrax/Documents/pi/logs/health_log.json pos_file /home/thingtrax/Documents/pi/logs/health_log.json.pos format json time_format %Y-%m-%d %H:%M:%S tag health_001 </source> <

我有下面的fluentd配置文件

<source>
  @type tail
  path /home/thingtrax/Documents/pi/logs/health_log.json
  pos_file /home/thingtrax/Documents/pi/logs/health_log.json.pos
  format json
  time_format %Y-%m-%d %H:%M:%S
  tag health_001
</source>

<match *health*>
  @type elasticsearch
  hosts https://search-rpproduction-0fzlamandaofgvfcukuoyewkrtfkkw2vre.eu-west-2.es.amazonaws.com/
  user <user>
  password <pwd>
  index_name <index name>
  type_name health
</match>

@型尾
path/home/thingtrax/Documents/pi/logs/health_log.json
pos_文件/home/thingtrax/Documents/pi/logs/health_log.json.pos
格式json
时间\u格式%Y-%m-%d%H:%m:%S
标签健康_001
@类型弹性搜索
主人https://search-rpproduction-0fzlamandaofgvfcukuoyewkrtfkkw2vre.eu-west-2.es.amazonaws.com/
使用者
密码
索引名称
键入\u名称健康状况

这与所有标记匹配,即
健康\u 001
健康\u 002
健康\u 003
等。但是如何在
匹配中动态定义
索引\u名称
。我想保持索引名与标记名相同。请帮忙。谢谢

看起来管道
更合适