Observe multiple log files in one output

Have you tried tail -f file1 file2? It appears to do exactly what you want, at least on my FreeBSD machine. Perhaps the tail that comes with a Debian system can do it too?


For some reason, answers along the lines of tail -f file1 file2 wasn't quite what I had in mind.

I want to know what happened in several logs sort of most recently 'locally', regardless of the global chronological order.

To do that, I used something more like watch -n1 tail -n10 file1 file2


For the exercise i wrote small node utility that does the same thing as tail -f f1 f2 f3

Splex:

https://www.npmjs.com/package/splex

The main "upgrade" is that lines are color coded per file name, and that you can have table-like interface.

Another improvemtn, actually main reason I wrote this, is the ability to have .splexrc.json files in different folders, so instead having to type tail -f f1 f2 f3in one folder, then different files in other, you can write .splexrc.json file in root of your project and just type splex without file list arguments and it automatically stream relevant logs you enumerated in config file.

Tags:

Tail

Logs