I have a 'logs' directory full of log files whose names follow this format:
XXX-YYYY-DATE-N.txt
where N is a number that grows bigger as time goes on.
So for example right now I have:
xxx-yyy-20130226-20.txt
xxx-yyy-20130226-21.txt
xxx-yyy-20130226-22.txt
I'd like to monitor these files, so I can see the latest one and scroll back to earlier ones transparently.
The multitail docs say
It can also monitor wildcards: if another file matching the wildcard has a more recent modification date, it will automatically switch to that file. That way you can, for example, monitor a complete directory of files. Merging of 2 or even more logfiles is possible.
So multitail seems to be exactly what I want in this case.
I've read the docs, but I can't figure out the correct incantations to have it do exactly what I said above: show me the latest log matching a pattern, and merge all of them so I can scroll back.
Could you please help?