2011-11-16

Following multiple files with `tail`

Suddenly enough, `tail` command supports multiple file monitoring and even understands the wildcard character. Following all the Apache logs on the machine at once (or your own use case here) is as simple as

tail -f /var/log/apache2/*/access.log


-- something I've previously did using MultiTail (this tool it is still worth checking by the way).

Note: multiple file support seems to be a GNU's `tail` feature, and it might be not available on all BSDs, yet.

No comments: