首页 > 技术文章 > 十四、output ES 插件

momo6656 2021-08-19 16:43 原文

•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 集群

推荐阅读