To retrieve logs from the /var/log/opt/CPsuite-R81.10/fw1/log directory and display them on the Smart Console, you can use the fw fetchlogs command. Here’s how you can do it:
1) List Available Logs: First, list the available log files on your Management Server using the following command:
[Expert@HostName:0]# fw lslogs MyGW
This will show you the log files available for fetching.
2) Fetch Specific Log Files: Use the fw fetchlogs command to fetch the desired log file. Replace 2024-06-01_000000 with the actual log file name you want to fetch:
[Expert@HostName:0]# fw fetchlogs -f 2024-06-01_000000 MyGW
3) This command will fetch the specified log file from the Management Server.
Verify Log Files: After fetching, verify that the log files are present in the $FWDIR/log directory:
[Expert@HostName:0]# ls $FWDIR/log/MyGW*
4) Check Smart Console: Once the logs are fetched, they should be available in the Smart Console under Logs & Monitoring.
If you encounter any issues with logs not appearing in Smart Console, it might be due to a corrupted log indexing database. In such cases, you may need to clear or reset the log indexing database. For detailed steps on this, refer to this solution sk168812 .
➜ CCSM Elite, CCME, CCTE ➜ www.checkpoint.tips