- Code: Select all
10.185.248.71 - - [09/Jan/2015:19:12:06 +0000] 808840 "GET /inventoryService/inventory/purchaseItem?userId=20253471&itemId=23434300 HTTP/1.1" 500 17 "-" "Apache-HttpClient/4.2.6 (java 1.5)"
I want to parse out the '500' status code. I'm using Unix command line tools, and I'm not sure if I should use grep or the 'cat'/'cut' method. I'd like as few false positives as possible.