首页 > 其他 > 详细

logstash插件

时间:2016-10-07 01:50:30      阅读:284      评论:0      收藏:0      [点我收藏+]

codec 插件   goeip插件

input {

    file {

    path => ["/data/nginx/logs/access.log"]

    type =>"type"

    start_position => "end"

    codec => json

   }

 

filter {

  goeip {

    source => "client"

    fields => ["ip","city_name","country_name","location"]

  }

}

 

output {

    elasticsearch {

        hosts => "127.0.0.1:9200"

        index => "logstash-%{+YYYY.MM.dd}"

  }

}

logstash插件

原文:http://www.cnblogs.com/fengjian2016/p/5935192.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!