elasticsearch索引不能使用这样的名称吗?
data: {"key1": "val1"}
fluentD conf:
<match **>
@type elasticsearch
host localhost
port 9200
logstash_format true
logstash_prefix ${key1}
time_key @timestamp
include_timestamp true
</ match>
错误:
[warn]: #0 chunk key placeholder '' not replaced. template:${key1}
答案 0 :(得分:0)
也许您必须设置chunk_keys。
<match **>
@type elasticsearch
# snip
<buffer tag,key1>
logstash_prefix ${key1}
</buffer>
</match>
答案 1 :(得分:0)
也许您可以指定一个自定义索引,如下所示:
{{1}}