Logstash详解之——output模块
Logstash的output模块,相比于input模块来说是一个输出模块,output模块集成了大量的输出插件,可以输出到指定文件,也可输出到指定的网络端口,当然也可以输出数据到ES.在这里我只介绍如何输出到ES,至于如何输出到端口和指定文件,有很多的文档资料可查找. elasticsearch{ hosts=>["172.132.12.3:9200"] action=>"index" index=>"indextemplate-logstash" #document_type=>"%{@type}" document_id=>"ignore" template=>"/opt/logstash-conf/es-template.json" template_name=>"es-template.json" template_overwrite=>true } action=>”index” #es要执行的动作 index, delete, create, updatel index:将logstash.时间索引到一个文档l del...