logstash能不能动态的生成es的索引模板啊???
elasticsearch{
action => "index"
index => "ddt2_log_intranet_%{[@metadata][logdate]}"
#document_type => "ddt2_log"
hosts => ["192.168.2.200:9200","192.168.2.2:9200","192.168.2.131:9200"]
template => "D:\elk\logstash-7.4.2\bin\ddt2_log.json"
template_name => "ddt2"
manage_template => false
template_overwrite => true
}
elasticsearch{
action => "index"
index => "ddt2_log_intranet_%{[@metadata][logdate]}"
#document_type => "ddt2_log"
hosts => ["192.168.2.200:9200","192.168.2.2:9200","192.168.2.131:9200"]
template => "D:\elk\logstash-7.4.2\bin\ddt2_log.json"
template_name => "ddt2"
manage_template => false
template_overwrite => true
}
1 个回复
tacsklet - 公司有用到es
赞同来自: