in reply to Extracting data from a firewall log

Thanks again for your help. I am reading those links right now. I understand basically, how to open and close the file, what I am trying to figure out at this point is how to extract the data from the file, then send that data from that file to a new file.

Here is my little script so far:

#!/usr/bin/perl
#This script will be run against our Firewall logs. It will extract the information we want and send it to a new log.
#Open the firewall script to allow Perl to read it and gather data
open(FWLOG,"firewall.txt");
while(<FWLOG>)
#Close the file
close FWLOG;
It is not much, but I am trying to grasp the basic and understand it all.

Tarballed

  • Comment on Re: Extracting data from a firewall log