This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache logs location on Ubuntu | |
cd /var/log/apache2 | |
# Apache logs location on my local macOS | |
cd ~/Sites/logs | |
# Tail Logs, only show rows with specific info (like my ip address) | |
tail -f /var/log/apache2/[site].log | grep [search term] | |
# Search through zipped log files for some piece of data (ip/email etc.) | |
zgrep "73.11.123.45" /var/log/apache2/sa* | grep -v ajax | grep -v dist | grep -Ev onesignal | grep -v css | grep -v js | grep -v linkout | grep -v uploads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment