- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: Log file retrieval
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Log file retrieval
Hi All,
Our SMS doesn't show logs after 15 days. However, I observed logs in the /var/log/opt/CPsuite-R81.10/fw1/log
directory. How can I retrieve these logs and have them displayed on the Smart Console?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think these are the index logs. Under the relevant object in SmartConsole you can open it and see under logs what days have been set there. If this matches the 15 says it means it works as it should. Can you confirm if you search logs you can search further back then 15 days? It could be a bit slower if you search further back of time. This is normal. index logs makes searching more quick but use more disk space.
If you like this post please give a thumbs up(kudo)! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Most likely the thing to check.
You can also see your current index retention value with "cat $FWDIR/conf/log_policy.C | grep -i index_delete_older_than_value".
Or on the Management/dedicated log server under Logs -> Storage -> under "Daily Logs Retention Configuration":
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I search logs back 15 days, I am unable to retrieve them. I managed to open the log files older than 15 days : go to "Logs," then click on the three lines, select "File," open "Logfiles," and navigate to the specific date I looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This validates it's indexing related. Try to search the things I mentioned in the post and see if you save indexes only for 14 days (which is the default with "Daily Retention" turned on).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Ihenock1011
I thought, you checked the avaialble space on the partititon etc...
But befere you dig into the debugging, run #evstop then #evstart command. I can solve a lot ot indexing problems.
Here is an SK about how to reindexing logs:
https://support.checkpoint.com/results/sk/sk164553
Be careful, I takes time 🙂
Akos
\m/_(>_<)_\m/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 .
