•output ES 插件 if [type] == "filelog"{ elasticsearch{ hosts => ["192.168.4.15:9200","192.168.4.10:9200"] index => "weblog" 指定索引 flush_size=> 2000 idle_flush_time=> 10}}–调试成功后,把数据写入ES 集群