Last active
February 26, 2020 14:27
-
-
Save deepaknverma/35152344d4067414b6b3 to your computer and use it in GitHub Desktop.
highlight keyword while tail
This file contains hidden or 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
replace 503 with your keyword | |
tail -f /var/log/apache2/access.log | perl -pe 's/ 503 /\e[1;31;43m$&\e[0m/g' | |
sudo bash -c 'tail -f /var/log/apache2/access.log| grep "[0-9] 5[0-9][0-9] \"" | (while read; do date; /usr/local/sbin/profile-php; done)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment