Hello, I have a very naive question but I can not find a solution.
By launching logstash with this config file (just after), it creates several indexes in elasticsearch.
input {
file {
path => "/home/ahmed/Bureau/access.log"
start_position => "beginning"
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
geoip { source => "clientip" }
} output {
elasticsearch {
hosts => ["localhost:9200"]
index => "log-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug }
}
Why is it so?