I'm try to configure a Graylog collector [filebeat] for Liunx. The part that I'm having an issue with is the paths:
The path I want to collect logs from has many log files contained in it. I only want to collect the files that have the format (example) 20201020.catalina.out
from a the command line I run this and it works on the server:
vi /var/log/oscar/`(date +"%Y%m%d.catalina.out")`
Bring up the file with today's date.
Example of my filebeat config:
> # Needed for Graylog fields_under_root: true fields.collector_node_id: ${sidecar.nodeName} fields.gl2_source_collector: ${sidecar.nodeId}
>
> filebeat.inputs:
> - input_type: log
>
> paths:
>
> - /var/log/oscar/error-ssl.log
> - /var/log/oscar/access-ssl.log
> - /var/log/oscar/`(date +"%Y%m%d.catalina.out")`
When the collector is running it only captures only the error-ssl.log and access-ssl.log [logs]