I'm trying to get multitail
(6.0) on Ubuntu to tail -f
any log files (even new ones) in certain directories recursively by doing:
multitail -Q 1 /home/default/storage/accounts/**/*.log
This just produces a blank screen.
So I tried being more specific with the dir to monitor:
multitail -Q 1 /home/default/storage/accounts/1/entries/1/logs/imports/*.log
But I get the same blank screen even if the log files change.
What am I doing wrong here?
For what you're trying to accomplish, you'll want to use the
-Iw
parameter instead of-Q
. This tells multitail to tail existing files (all in one window), as well as watching for new files and tailing them (also in the same window). The "1" following the wildcard pattern specifies to watch for new files every second. You also need to add quotes around the paths to prevent the shell from expanding them, so you finally get to: