Log Parser
- by Vince
-
in Blog
-
Hits: 1185
I was talking with a guy the other day and he said something along the lines of -- "Sometimes there are bad things that happen on the Internet." I replied: "There are bad things happening on the Internet ALL THE TIME."
Fast forward to today -- I'm working on a project and I need to parse through the Apache access.log file, create a unique list of IP addresses, perform an nslookup on each of the IP addresses, ignore the addresses that do not resolve, and I need to spit out the list of addresses that resolve.
Not that I'm shocked but while writing this up and using cat to show the first part of the log for this screenshot, I see mostly malicious traffic hitting this server: