Question about path in filebeat configuration

for different services, I have different path of log files.

Can I add all the paths of my log files to a single filebeat.yml?

Yes. See

path1 on host1: /var/log/apache/*.log

path2 on host2: /var/log/serviice1/*.log

path1 is not on host2 and path2 is not on the path1, will it still be ok to put them inside the filebeat.yml?

should be ok. But you might get an error message logged by filebeat about every scan_frequency complaining about glob(%s) fail: .... A little annoying, but not critical, as next glob-pattern will be checked anyways.

This topic was automatically closed after 21 days. New replies are no longer allowed.