Files
docker-compose-hatthieves/production/elk/apache.conf
Your Name cc05427130 elk
2020-05-27 17:46:42 +00:00

30 líneas
535 B
ApacheConf

input {
file {
path => "/access.log"
# start_position => "beginning"
mode => "tail"
file_completed_action => "log"
}
}
filter {
if [path] =~ "access" {
mutate { replace => { "type" => "apache_access" } }
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "nginx"
document_type => "access_log"
}
# stdout { codec => rubydebug }
}