Tail all logs in a folder for Nginx or Apache

Say that you have multiple log files for Nginx, Apache or any other software that you would like to tail. You can do this easily with tail like so:

Nginx

tail -f /var/log/nginx/*.log

Apache

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

You need to have a fairly recent version of tail to use this. It works on Ubuntu 16.04 with tail version 8.25.

Leave a Reply

Your email address will not be published. Required fields are marked *

Markdown is allowed in comments.