Skip to content

Instantly share code, notes, and snippets.

@kstevens715
Created February 20, 2018 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kstevens715/4af7e80803ed07a8a820987a96436c17 to your computer and use it in GitHub Desktop.
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.
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