in reply to data mine a firewall log

It seems to me like you have two questions here:

For part 1, you need to research Network security, learn what you should be looking for (searching may help). For part two you need to learn Perl:

Update: fixed typo