我试图创造新的输出的索引,使用3输入索引。 在新的输出索引我需要填充的几个具体领域,从输入索引。 我试图创造新的领域使用add_field.它是硬编码like'%{[index1name][field1inIndex1]}',而不是填充值指数。 我已经尝试了以下代码:
input
{
elasticsearch{
hosts => ["hostname"]
index => "index1"
query => '{"query":{"match_all":{}}}'
docinfo => "true"
user => "uname"
password =>"pwd"
ssl=>"true"
}
elasticsearch {
#same like above for index2
}
elasticsearch {
#same like above for index3
}
}
filter
{
mutate
{
add_field =>["newfieldname","%{[index1][fieldinindex1]}"]
}
}
output
{
elasticsearch {
#creating new index here
}
}