CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA or CCSE One-Week Certification Training Courses with CPUG in Beautiful San Francisco!
    R70 CCSA Courses Starting (2010) 6/7, 7/12, 8/9, 10/11, 11/8, 12/6.  R70 CCSE Courses Starting (2010) 8/16.
2. CPUG CON 2010 EUROPE, the User Conference in Switzerland, September 20th-22nd, 2010!
3. Join Our CPUG Groups On LinkedIn and Facebook.  See Our Channel on YouTube.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > SmartView Tracker/Logging And Alerting
Register Projects FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 2009-11-16
Junior Member
 
Join Date: 2008-06-05
Posts: 3
Rep Power: 0
edhacker has an average reputation (10+)
Default Extended ASCII log processing tool fw1logsearch.pl

I have had several friends ask me about my Checkpoint log processing scripts and recently found myself having to sift through nearly a billion log lines, looking for specific patterns of access. The problem was that many of the exported fwm log files had differing column positions and there had been many ruleset changes over the course of 11 months worth of log data. Many of the excellent FW1 log summarization tools (such as Peter Sundstrom’s fwlogsum) didn’t handle the hundreds of files and differing column positions.

I wrote (or rather heavily hacked together) a perl script to read the header line and process the log file based on the column alignment shown in the header vs a predetermined column sequence. The fw1logsearch.pl script can be used to find complex patterns of interest. Any matching records found by fw1logsearch will be output with an initial FW1 header line so that fw1logsearch can be used iteratively, to build very complex search criteria (additive includes and excludes on (nearly) any column). The script can also write out a discard file allowing completely negative logic searches resulting in 100% of the input data separated into match and reject files.

This saved me countless hours, and while there are undoubtedly better scripts out there that I just didn't see or find, I hope this will help someone on this list. I've posted the script on my website at Sifting through Checkpoint FW1 logs Allen Pomeroy

Cheers,
AP
Reply With Quote
  #2 (permalink)  
Old 2009-11-29
Junior Member
 
Join Date: 2009-11-28
Posts: 2
Rep Power: 0
fwlogsum has an average reputation (10+)
Default Re: Extended ASCII log processing tool fw1logsearch.pl

Please note that fwlogsum can handle as many merged fwlogexport files as your system resources can handle (mostly memory) as it uses the header description line that is the first line of each log export.

This means it doesn't matter if the order of the columns changes between the logexports, as fwlogsum simply reads in each new header.

Cheers

Peter Sundstrom
fwlogsum
Reply With Quote
Reply

Tags
fwlogsum, header, log, perl, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 23:50.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.1