Created
February 20, 2018 19:17
-
-
Save kstevens715/4af7e80803ed07a8a820987a96436c17 to your computer and use it in GitHub Desktop.
Tail a Rails log, "grepping" for an IP address. Print out the entire request both to stdout and a log file.
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
tail -f staging.log | awk '/10.10.14.210/,/Completed/' | tee ip_address.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment