I have an apache log file. I need to report how many rows (request) are from a specific context root. The apache logs already start with a slash and context root is to the second slash.
Example Apache Log:
126.96.36.199 - - [14/Feb/2013:00:27:33 -0600] "GET /lifecontent/monitor?test=siteseer&format=siteseer HTTP/1.1" 200 275 "-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)" "SSL=on" 111.22.333.44 - - [14/Feb/2013:00:29:29 -0600] "GET /lc/Brokerage%20Manager/IDG%20Licensing%20and%20Appointment%20Process/IDG%20Franchise%20Reference%20Manual HTTP/1.1" 302 - "-" "(Windows NT)" "SSL=-"
The two context roots would be "/lifecontent/" and "/lc"
Not sure what tool would be best? I am comfortable with GUI or batch solution.
I mostly am just trying to figure out what percentage each context root is being used within an apache files. (Ideally it could search through multiple files at once, but not a requirement.)