Hi Davide
Thanks for the tutorial it is a big help :-)
I can open the example file in the tutorial with the command line:
open ~/Sites/KillTheVirus-OCT2016/RawACESS/a_file
and search and find “boo” with the command:
grep -n "boo" a_file
Great. So I know that I am able to do this.
But I am still missing something with respect to the Raw Access Log File scenario:
a) The Access Log file that I downloaded is a Zip.
finalbug.net-Oct-2016.gz
b) I can double click on this file which gives me:
finalbug.net-Oct-2016
So far so good?
c) I can right click on this exec file and open it in the Terminal where I do get to see thousands of lines of code in a new window.
Here are the last couple of lines:
/Users/pauldavidmurray/Sites/KillTheVirus-OCT2016/RawACESS/finalbug.net-Oct-2016: line 51447: 216.244.66.243: command not found
/Users/pauldavidmurray/Sites/KillTheVirus-OCT2016/RawACESS/finalbug.net-Oct-2016: line 51448: 216.244.66.243: command not found
/Users/pauldavidmurray/Sites/KillTheVirus-OCT2016/RawACESS/finalbug.net-Oct-2016: line 51449: 216.244.66.243: command not found
/Users/pauldavidmurray/Sites/KillTheVirus-OCT2016/RawACESS/finalbug.net-Oct-2016: line 51450: 216.244.66.243: command not found
logout
[Process completed]
Please advise. Am I on the right track?
After step (c)of the process is complete I see no way of entering a command such as:
grep “insert” finalbug.net-Oct-2016
d) Alternatively I can open the exec file with text editor with a right hand mouse click.
I then duplicate and save this file as:
finalbug.net-Oct-2016-Text-Edit.txt
open ~/Sites/KillTheVirus-OCT2016/RawACESS/finalbug.net-Oct-2016-Text-Edit.txt
I can open this text file in the terminal:
open ~/Sites/KillTheVirus-OCT2016/RawACESS/finalbug.net-Oct-2016-Text-Edit.txt
where I do get to see thousands of lines of code in a new window.
Here are the last couple of lines:
216.244.66.243 - - [17/Oct/2016:14:00:41 +0200] "GET /blog/entry/180-aja-drivers-ioxt HTTP/1.0" 307 242 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot,
[email protected])"
216.244.66.243 - - [17/Oct/2016:14:00:42 +0200] "GET /blog/categories/listings/19-paradigm-shift?start=25 HTTP/1.0" 307 251 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot,
[email protected])"
216.244.66.243 - - [17/Oct/2016:14:00:43 +0200] "GET /network/badges/achievements/825-liepe HTTP/1.0" 307 242 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot,
[email protected])"
After step (d) is finished I can enter:
paurray:~ pauldavidmurray$ grep “insert” finalbug.net-Oct-2016-Text-Edit.txt
Which returns
grep: finalbug.net-Oct-2016-Text-Edit.txt: No such file or directory
I am pretty sure that I am missing some tiny detail which does not seem to be very obvious to me!
Kindly advise
Paul
Helping you learn beyond your finalBUG