fbpx

Check All Apache Virtual Host Logs on Ubuntu

Sometimes I need to check all my virtual hosts on my Apache server.

The best way to do it is with a cat command like this

/var/log/apache2# cat *.access.log

If I want to keep observing the log I use the command tail as follows

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

But if I want to check something more specific I can use a grep too

/var/log/apache2# cat *.access.log | grep root

This is a quick way to verify my logs without having to check them one by one.

Leave a Reply

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