User Profile
Collapse
-
Thanks dwblas. Works well. -
Sorry about the script; it messed up when i posted it. What I need to do is extract a list of IP addresses and the URL they accessed.Leave a comment:
-
Simple log file parsing using Python
I have just started learning Python and am trying to write a simple script to extract the IP address and the URL from a log file. The log file has around 600 entries and looks like this:
208.115.113.86 - - [08/Apr/2016:17:36:09 -0700] "GET /paper2003/0306AssElection .htm HTTP/1.1" 200 5551 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexp lorer.org/dotbot, [email protected])" "www.redlug.com "...
No activity results to display
Show More
Leave a comment: