【发布时间】:2021-12-06 07:23:38
【问题描述】:
我想在 fluentd conf 文件的 index_name 中设置主机名。我是这样设置的,但它不起作用
<match output.**>
@type copy
<store>
@type elasticsearch
host elasticsearch
ssl_version TLSv1_2
ssl_verify false
type_name _doc
port 443
scheme https
flush_interval 10s
index_name abc-${hostname}
</store>
<store>
@type stdout
</store>
</match>
我怎样才能做到这一点?
【问题讨论】:
标签: fluentd