美文网首页
elk 之 logstash + elasticsearch

elk 之 logstash + elasticsearch

作者: 台风口的猪 | 来源:发表于2018-08-15 18:53 被阅读0次

input {

    file{

        path =>"/root/zym/log/logstash-tutorial.log/*"

        start_position=>"beginning"

  }

}

filter {

    grok {

        match => { "message" => "%{COMBINEDAPACHELOG}"}

    }

    geoip {

        source => "clientip"

    }

}

output {

    elasticsearch {

        hosts => [ "localhost:9200" ]

    }

}

相关文章

网友评论

      本文标题:elk 之 logstash + elasticsearch

      本文链接:https://www.haomeiwen.com/subject/jhawbftx.html