Langa,

Take a look at this script.  I created it to read my firewall log files, and
then give me a sort and count per unique address.  You could substitute a
more traditional grep in place of the substitution I use.

 <<logscan.pl>> 

Craig Hammer
Internal Infrastructure Team Lead
Parago, Inc.
972-538-3936


-----Original Message-----
From: Langa Kentane [mailto:[EMAIL PROTECTED]]
Greetz,
I need some help with IP address matching. For instance I have a log with an
IP address 10.3.2.1 and 10.3.4.5. I want to match all IP addresses in the
10.3.0.0 mask 255.255.0.0 range. How would I do this?

Another thing is I would like to match any IP address on the log file for
instance I have a log and the IP address could appear anywhere on the line,
not in any specific column. I am not searching for a specifig IP address I
am just searching for any IP address. How would I find the IP on the line??

I gave up cracking my skull on this one. 

Langa Kentane           | Tel: +27 12 672 7209
Security Engineer               | Cell: +27 82 456 2219
Nanoteq (PTY) LTD               | PGP Key ID: 0x771B0480 

Attachment: logscan.pl
Description: Binary data

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to