I have log forwarding set up using rsyslog and imfile. How could I go about watching nested log files?
Right now I'm using wildcards to watch all files matching log/*.log
, but I have logs nested 1 level deep that I need to forward as well: log/EventXXX/*.log
.
Unfortunately, I cannot change this directory structure, and new log/Event/
directories crop up over time. I know that unfortunately imfile currently does not support wildcards on a directory-level (only on a file-level).