How to input the dateType path about log file in logstash

i want to get log data in ds_20170707.log
log file name contains the date...
for example )
ds_20170705.log
ds_20170706.log
ds_20170707.log
....
so..
input {
file {
path => ["//~~~/ds_%{+YYYYMMdd}.log"]

}
this form can not get log data...

but path => [" ~~~~~/ds_20170707.log"] is successsssssssssssss ㅠㅠ plz help me

Why not just use a wildcard like ds_*.log in the input section?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.