Sure. Assuming no other ip's will appear in the log entry, and that the
source ip is always first:
($source, $dest) = $line =~
m/^.+?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).+?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{
1,3}).*$/;
At 12:23 AM 10/7/05 -0400, [EMAIL PROTECTED] wrote:
>Hi,
>
>I am trying to parse :
>Sep 26 17:05:11 pixfw.testsec.org %PIX-3-106010: Deny inbound protocol 12
>src outside:123.97.104.117 dst intf2:192.168.50.10
>
>but ONLY to get the src IP , which is 123.97.104.117 and Destination ip ,
>which is 2:192.168.50.10
>
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede malis"
00000100
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs