fw fetchlogs
Description
Fetches the specified Security log files ($FWDIR/log/*.log*
) or Audit log files ($FWDIR/log/*.adtlog*
) from the specified Check Point computer.
Syntax
|
Parameters
Parameter |
Description |
||
---|---|---|---|
|
Runs the command in debug mode. Use only if you troubleshoot the command itself.
|
||
|
Specifies the name of the log file to fetch. Need to specify name only. Notes:
|
||
|
Specifies the remote Check Point computer, with which this local Check Point computer has established SIC Secure Internal Communication. The Check Point proprietary mechanism with which Check Point computers that run Check Point software authenticate each other over SSL, for secure communication. This authentication is based on the certificates issued by the ICA on a Check Point Management Server. trust.
|
Notes:
-
This command moves the specified log files from the
$FWDIR/log/
directory on the specified Check Point computer. Meaning, it deletes the specified log files on the specified Check Point computer after it copies them successfully. -
This command moves the specified log files to the
$FWDIR/log/
directory on the local Check Point computer, on which you run this command. -
This command cannot fetch the active log files
$FWDIR/log/fw.log
or$FWDIR/log/fw.adtlog
.-
Perform log switch on the applicable Check Point computer:
fw logswitch [-audit] [-h <IP Address or Hostname>]
-
Fetch the rotated log file from the applicable Check Point computer:
fw fetchlogs -f <Log File Name> <IP Address or Hostname>
-
-
This command renames the log files it fetched from the specified Check Point computer. The new log file name is the concatenation of the Check Point computer's name (as configured in SmartConsole), two underscore (_) characters, and the original log file name (for example:
MyGW__2019-06-01_000000.log
).
Example - Fetching log files from a Management Server