CPUG

The Check Point User Group

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

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We already have sign-ups from twelve different countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 7/14, 8/25, 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
3. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
4. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Eventia Analyzer/Reporter/SmartView Reporter
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-06-02
pop_alex pop_alex is offline
Senior Member
 
Join Date: 2005-12-12
Location: Malaysia
Posts: 122
Rep Power: 0
pop_alex has an average reputation (10+)
Default merging multiple logs with a software

Hi,

Is there a software or tool which can merges a multiple log files into one? I have around hundreds of logs (with 5MB each) and wants it to merge into one.

Thanks very much.

Regards,

Al
Reply With Quote
  #2 (permalink)  
Old 2006-06-03
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: merging multiple logs with a software

https://secureknowledge.checkpoint.c....do?id=sk10444

fw mergefiles [-s] [-t time_conversion_file] filename_1.log [... filename_x.log] output_file
SYNTAX OPTIONS:
-s sort merged file by log records time field
-t time_conversion_file different GMT zone log records time in the event that the log files originated from log servers in different time zones. The time_conversion_file format is: IP address signed_date_time_in_seconds.
Reply With Quote
  #3 (permalink)  
Old 2006-06-03
pop_alex pop_alex is offline
Senior Member
 
Join Date: 2005-12-12
Location: Malaysia
Posts: 122
Rep Power: 0
pop_alex has an average reputation (10+)
Default Re: merging multiple logs with a software

Thanks. I think I have to create a scripts to do the job based on the merging tool from Check Point.

Regards,

Al
Reply With Quote
  #4 (permalink)  
Old 2006-11-21
don_veto don_veto is offline
Junior Member
 
Join Date: 2006-10-30
Posts: 6
Rep Power: 0
don_veto has an average reputation (10+)
Default Re: merging multiple logs with a software

Hi,
i also want to use fw mergfiles but i´m not able to.

If i enter following, i got no error message, but no output file, too:

D:\>fw mergefiles D:\2006-11-13.log D:\2006-11-17.log D:\2006-11-18.log D:\2006-11-19.log D:\2006_week_46.log

This files are exported from SmartView Tracker.

I use R55. Is this only possible with R60+ ?

Or is there any error in my command?

Any help i would appreciate.

(heers

don_veto
Reply With Quote
  #5 (permalink)  
Old 2006-11-21
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: merging multiple logs with a software

PROCEDURE:
1) Ensure all log files to be consolidated are located/moved into the $FWDIR/log directory.

2) Within the $FWDIR/log directory type at prompt: fw mergefiles filename_1.log filename_2.log output_filename.log

NOTES:
It is recommended not to merge active log files.
It is recommended to perform a logswitch of the active log before merging.
Reply With Quote
  #6 (permalink)  
Old 2006-11-21
don_veto don_veto is offline
Junior Member
 
Join Date: 2006-10-30
Posts: 6
Rep Power: 0
don_veto has an average reputation (10+)
Default Re: merging multiple logs with a software

$FWDIR\log>fw mergefiles 2006-11-13.log 2006-11-17.log 2006-11-18.log 2006-11-19.log 2006_week_46.log

Same result. No errors, no output file.
Reply With Quote
  #7 (permalink)  
Old 2006-11-21
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: merging multiple logs with a software

Did you have only *.log files for one date in log-directory?

For example for 2006-11-13 - only 2006-11-13.log file without 2006-11-13.logaccount_ptr, 2006-11-13.loginitial_ptr, 2006-11-13.logptr. I think for merging you need all these files.

Last edited by kva.kva; 2006-11-21 at 05:57.
Reply With Quote
  #8 (permalink)  
Old 2006-11-21
don_veto don_veto is offline
Junior Member
 
Join Date: 2006-10-30
Posts: 6
Rep Power: 0
don_veto has an average reputation (10+)
Default Re: merging multiple logs with a software

no, i filtered the complete logfile to have only the entrys for a specific user. This filtered file i exported to 2006-11-13.log. I only have this one file.

I had an NGX II course last week and there i tried it on R60 and it worked in this way. I´m not sure, if i used exactly the same command.

I have no R60 here, maybe one of you can try it with exported files and tell me if it works?
Reply With Quote
  #9 (permalink)  
Old 2006-11-21
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: merging multiple logs with a software

I tried on my vmware. Really you need not only *.log files. Without *.logaccount_ptr, *.loginitial_ptr, *.logptr "fw mergefiles" doesn't work. Also I tried Save Is from SmartView Tracker (with filter or without - it does not matter) - appear 5 new files in log dir *.log, *.logaccount_ptr, *.loginitial_ptr, *.logptr, *logLuuidDB.

Last edited by kva.kva; 2006-11-21 at 05:56.
Reply With Quote
  #10 (permalink)  
Old 2006-11-21
don_veto don_veto is offline
Junior Member
 
Join Date: 2006-10-30
Posts: 6
Rep Power: 0
don_veto has an average reputation (10+)
Default Re: merging multiple logs with a software

thank you very much for testing!

If you use the export command of SmartView Tracker, you have just one file. I want to import the log entrys in Excel for better presentation, so i chose the export option.

I think with Save As... it is not possible or at least not so comfortable.
Reply With Quote
Reply

Thread Tools
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 20:11.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0