十四、output ES 插件

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

posted @ 2021-08-19 16:43  落樰兂痕  阅读(48)  评论(0编辑  收藏  举报