Logstash input->file

My log file is generated per day , similar to the file name access-2016-04-17.log、access-2016-04-18.log,How can I write input, read these files can be generic.

You will want to use the file input - https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html

If you have other specific questions, please let us know.

should i write absolute path? Does it matter i wirte like this:“path => "/path/to/{+yyyy/MM/dd/hh}.log” ?
Because my log generated daily by date, I need to load different log every day.

See https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-path

Paths must be absolute and cannot be relative.

Also I don't think we allow variables in the inputs like that, only wildcards.