In my log I have many lines that look like this:
mysitename.net 1.23.45.67 - - [10/Mar/2017:20:28:38 +0000] "GET /foldername/special/somefile.php HTTP/1.1" 200 2012
Is there any way to grep all the unique PHP GETs into a file, so I have a list of any/all files on the server that were accessed?
I tried:
grep -i "GET [\w]+.php" mylogfile.txt > results.txt
but it does not return any rows.