robertsdgm
IS-IT--Management
Hello All
It has been quite a long time since I have used perl..
I have a huge apache access log and from this I need to print out all the unique IP address's and their access time.
How do I go about doing this if my general line output is such as below?!
Thanks
Dan
cbdw88209.utp.test.dan.com - - [20/May/2004:11:47:58 -0400] "GET /srs71/doc/js/tree-menu/menu-images
/menu_folder_closed.gif HTTP/1.1" 200 135
cbdw88209.utp.test.dan.com - - [20/May/2004:11:47:58 -0400] "GET /srs71/doc/js/tree-menu/menu-images
/menu_folder_closed.gif HTTP/1.1" 200 135
cbdw88209.utp.test.dan.com - - [20/May/2004:11:48:41 -0400] "GET /srs71/doc/srsbook_srsusr/srsusr25_
1.html HTTP/1.1" 200 4793
cbdw88209.utp.test.dan.com - - [20/May/2004:11:48:41 -0400] "GET /srs71/doc/srsbook_srsusr/images/i_
icon.jpg HTTP/1.1" 200 514
cbdw88209.utp.test.dan.com - - [20/May/2004:11:48:41 -0400] "GET /srs71/doc/srsbook_srsusr/images/li
st_values_up.jpg HTTP/1.1" 200 1991
It has been quite a long time since I have used perl..
I have a huge apache access log and from this I need to print out all the unique IP address's and their access time.
How do I go about doing this if my general line output is such as below?!
Thanks
Dan
cbdw88209.utp.test.dan.com - - [20/May/2004:11:47:58 -0400] "GET /srs71/doc/js/tree-menu/menu-images
/menu_folder_closed.gif HTTP/1.1" 200 135
cbdw88209.utp.test.dan.com - - [20/May/2004:11:47:58 -0400] "GET /srs71/doc/js/tree-menu/menu-images
/menu_folder_closed.gif HTTP/1.1" 200 135
cbdw88209.utp.test.dan.com - - [20/May/2004:11:48:41 -0400] "GET /srs71/doc/srsbook_srsusr/srsusr25_
1.html HTTP/1.1" 200 4793
cbdw88209.utp.test.dan.com - - [20/May/2004:11:48:41 -0400] "GET /srs71/doc/srsbook_srsusr/images/i_
icon.jpg HTTP/1.1" 200 514
cbdw88209.utp.test.dan.com - - [20/May/2004:11:48:41 -0400] "GET /srs71/doc/srsbook_srsusr/images/li
st_values_up.jpg HTTP/1.1" 200 1991