How to set filebeat to look into folder with current date.?


(Srinivasarao Daruna) #1

I want to configure filebeat to look into folders with current date.

Base Path: /user/srini/inputs/
For Eg:

if current date is 01-01-2016, then it has to get files from below path.

/user/srini/inputs/01-01-2016/*.log

If current date is 02-02-2016, then it has to get files from below path.

/user/srini/inputs/02-02-2016/*.log.

Precisely, i want to set the filebeat to look for today's folder. How can i do that.?


(Magnus B├Ąck) #2

You can't. But you know that you can use wildcards for the directory part of the path too, right?

/user/srini/inputs//.log


(system) #3