input { 

    file { 

        type => nginx_access 

        path => ["/var/log/nginx/*-access.log"] 

    } 

 

filter { 

    grok { 

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

    } 

 

output { 

    elasticsearch { hosts => ["192.168.50.5:9200"] } 

    stdout { codec => rubydebug } 

'오픈소스 > nginx' 카테고리의 다른 글

blocking setup for nginx  (0) 2018.02.02
nginx redirect  (0) 2018.02.02
nginx log format 정의  (0) 2018.02.02
nginx for syslog  (0) 2018.02.02
nginx for beego  (0) 2018.02.02

+ Recent posts