get apache2 logs in ubuntu server code example Example: log of apache ubuntu # default dir /var/log/apache2/