in reply to Extracting data from a firewall log
Let me show what I am trying to pull out of the file:
03/13/03 16:44:56 kernel Temporarily blocking host 212.241.116.21
(This is where the inital block occurs, the firewall will then continue to block all attempts from this IP address.I would like to extract all entries in the firewall like this one.)
03/13/03 16:44:57 firewalld103 deny in eth0 48 tcp 20 117 212.241.11.21 209.126.xxx.xxx 4449 80 syn (LO-Proxied-HTTP)
(At this point, the firewall continues to block the attempt. I would like to extract all lines in the firewall that contain this as well...contains very useful information such as ports and packet sizes.)
With that in mind, can I ask for someone to help me build my script? I feel like I am butting my head against a wall. I know I have much to learn, but can learn a lot from seeing the script and breaking it down to see how it functions.
Thanks.
Tarballed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Extracting data from a firewall log
by zengargoyle (Deacon) on Apr 10, 2003 at 01:12 UTC |