I am currently debugging a weird problem on my server and therefore I am searching for a tool that is monitoring the standard log folder /var/log/
. Any changes to the existing files should be printed so that I know what exactly happens.
As I am not just starting one program but rather making requests to different services strace is not helping. Solutions proposed here monitoring file changes + process access to files are outdated or limited to non-recursive folder structures.
inotifywait
with-r
? – phk Feb 12 '17 at 14:24tail -F
, or, if you don't want to write your own multiple-tail script,multitail
; check whether it's available as an installable package or else download it from the author's site. – AlexP Feb 12 '17 at 14:49multitail -c --mergeall "$(find . -type f | grep -v gz | sed ':a;N;$!ba;s/\n/ /g')"
Sadly there is still one small error remaining (the parsing of the whitespaces) but I hope I can fix it soon. – matt3o Feb 12 '17 at 15:46