CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [rovf] Stuck on how to iterate a list in a file against a logfile.: Edit Log



asandybox
Novice

Jun 19, 2012, 4:53 AM


Views: 8596
Re: [rovf] Stuck on how to iterate a list in a file against a logfile.

Thanks rovf,

Here is what I want to match. Basically I would like to return any line that contains the IP on the list.

1265939281.764 1 172.16.167.228 TCP_DENIED/403 734 POST http://lbcore1.metacafe.com/test/SystemInfoManager.php - NONE/- text/html
1265939281.764 1 192.168.2.20 TCP_DENIED/403 734 POST http://lbcore1.metacafe.com/test/SystemInfoManager.php - NONE/- text/html
1265939281.764 1 172.16.167.228 TCP_DENIED/403 734 POST http://lbcore1.metacafe.com/test/SystemInfoManager.php - NONE/- text/html
1265939281.764 1 192.168.3.0 TCP_DENIED/403 734 POST http://lbcore1.metacafe.com/test/SystemInfoManager.php - NONE/- text/html

I ran the script through the squid log file and did not get any returns on any lines matching the IP's on the list.


(This post was edited by asandybox on Jun 19, 2012, 4:55 AM)


Edit Log:
Post edited by asandybox (Novice) on Jun 19, 2012, 4:54 AM
Post edited by asandybox (Novice) on Jun 19, 2012, 4:55 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives