Before I go on, I want to say a few things: First, "please do not write the Perl script for me". This is a great opportunity for me to learn and I would like to do it on my own. I am asking for some guidance and tips to help me, not only get started, but write this script.
Alright, here is what I am attempting to do. I want to setup a Perl script to extract certain parts of information from our firewall log. Specifcially, my manager wants me to set it up so any attempts trying to get in through ftp, ping or our proxy.
Right now, the firewall logs are stored on a Windows 2000 machine. The logs themselves have a ending with .wgl, standing for watchguard log. (Watchguard is the company...)
I would like to transfer the files over to a Linux box, run a Perl script on the log at night (Through cron) to extract the information that I want. Here is a snip from the firewall log, of what I am attempting to extract from the log:
Before I go on, I put the firewall log onto a Linux server so I could see what type of file it is. Here is what it is:03/13/03 16:44:56 kernel Temporarily blocking host 212.241.116.21 03/13/03 16:44:57 firewalld[103] deny in eth0 48 tcp 20 117 212.241.11 +6.21 209.126.xxx.xxx 4449 80 syn (LO-Proxied-HTTP)
So it's a data file.[tuxexdo@backupstorage]$ file 192.168.1.1-2003-03-17-12-28-30.wgl 192.168.1.1-2003-03-17-12-28-30.wgl: data
First question: Is it possible, to extract the information that I want from this file through Perl?
Thanks everyone.
Tarballed
In reply to Extracting data from a firewall log by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |