I have a requirement to add log files to my filebeat server which will create an index in Elasticsearch.
The location from where Filebeat would be taking the log file contains log file of different dates. Suppose for today's date, the log file generated by Tomcat is user_log-2019.06.29 and for tomorrow a new log file with name log-2019.06.30 will be generated. So how shall I configure the path in filebeat.yml so that it will take that particular date's log file. My filebeat server will be running for the whole month. My yml file looks like below:
- type: log
This is the yml file for one day's log.
I tried with
But it didn't work. Can you please help me with this.