Description
Shows a list of Security log files ($FWDIR/log/*.log) and Audit log files ($FWDIR/log/*.adtlog) residing on the local computer or a remote computer.
Syntax
| fw [-d] lslogs [-f <Name of Log File 1>] [-f <Name of Log File 2>] ... [-f <Name of Log File N>] [-e] [-r] [-s {name | size | stime | etime}] [<Target>] | 
Parameter
| Parameter | Description | 
|---|---|
| 
 | Runs the command in debug mode. Use only if you troubleshoot the command itself. Note - If you use this parameter, then redirect the output to a file, or use the  | 
| 
 | Specifies the name of the log file to show. Need to specify name only. Notes: 
 | 
| 
 | Shows an extended file list. It includes the following information for each log file: 
 | 
| 
 | Reverses the sort order (descending order). | 
| 
 | Specifies the sort order of the log files using one of the following sort options: 
 | 
| 
 | Specifies the remote Check Point computer, with which this local Check Point computer has established SIC trust. 
 | 
Example 1 - Default output
| [Expert@MGMT:0]# fw lslogs Size Log file name 9KB 2018-06-14_000000.log 11KB 2018-06-15_000000.log 9KB 2018-06-16_000000.log 10KB 2018-06-17_000000.log 9KB fw.log [Expert@MGMT:0]# | 
Example 2 - Showing all log files
| [Expert@MGMT:0]# fw lslogs -f "*" Size Log file name 9KB fw.adtlog 9KB fw.log 9KB 2018-05-29_000000.adtlog 9KB 2018-05-29_000000.log 9KB 2018-05-20_000000.adtlog 9KB 2018-05-20_000000.log [Expert@MGMT:0]# | 
Example 3 - Showing only log files specified by the patterns
| [Expert@MGMT:0]# fw lslogs -f "2018-06-14*" -f '2018-06-15*' Size Log file name 9KB 2018-06-14_000000.adtlog 9KB 2018-06-14_000000.log 11KB 2018-06-15_000000.adtlog 11KB 2018-06-15_000000.log [Expert@MGMT:0]# | 
Example 4 - Showing only log files specified by the patterns and their extended information
| [Expert@MGMT:0]# fw lslogs -f "2018-06-14*" -f '2018-06-15*' Size Log file name 9KB 2018-06-14_000000.adtlog 9KB 2018-06-14_000000.log 11KB 2018-06-15_000000.adtlog 11KB 2018-06-15_000000.log [Expert@MGMT:0]# | 
Example 5 - Showing only log files specified by the patterns, sorting by name in reverse order
| [Expert@MGMT:0]# fw lslogs -f "2018-06-14*" -f '2018-06-15*' -e -s name -r Size Creation Time Closing Time Log file name 11KB 14Jun2018 0:00:00 15Jun2018 0:00:00 2018-06-15_000000.log 11KB 14Jun2018 0:00:00 15Jun2018 0:00:00 2018-06-15_000000.adtlog 9KB 13Jun2018 18:23:59 14Jun2018 0:00:00 2018-06-14_000000.log 9KB 13Jun2018 0:00:00 14Jun2018 0:00:00 2018-06-14_000000.adtlog [Expert@MGMT:0]# | 
Example 6 - Showing only log files specified by the patterns, from a managed Security Gateway
| [Expert@MGMT:0]# fw lslogs -f "2018-06-14*" -f '2018-06-15*' 192.168.3.53 Size Log file name 11KB 2018-06-15_000000.adtlog 11KB 2018-06-15_000000.log 9KB 2018-06-14_000000.log 9KB 2018-06-14_000000.adtlog [Expert@MGMT:0]# |