When I add a output file with variable in the pipiline.conf
path => "%{type}_%{+yyyy_MM_dd}.log"
I get the logstash error :
The starting part of the path should not be dynamic
It works fine when I remove the path line or without variable name:
path => "access.log"
Here is the pipelines.conf
input {
file {
path => "/mylogstash/data/apache_access.log"
start_position => "beginning"
type => "access"
}
http {
type => "access"
}
}
filter {
grok {
match => { "message" => '%{HTTPD_COMMONLOG} "%{GREEDYDATA:referrer}" "%{GREEDYDATA:agent}"' }
}
mutate {
convert => {
"response" => "integer"
"bytes" => "integer"
}
}
}
output {
stdout {
codec => rubydebug
}
file {
path => "%{type}_%{+yyyy_MM_dd}.log"
}
}
Any hint?