For the SmartView Tracker, custom log queries are stored on the SmartConsole system in the TrackerTree.C file as documented here:
sk39268: How to migrate Custom Queries from one SmartView Tracker to another
For R77.30 SmartLog, favorite log queries are stored up on the SMS here:
$SMARTLOGDIR/data/users_settings/admin/Bookmarks_Custom.xml
Not sure if these will survive a SMS upgrade to R80+ and appear in the new SmartConsole or not; however this Bookmarks_Custom.xml file is included in a migrate export which is a good sign.
--
My Book "Max Power: Check Point Firewall Performance Optimization"
Second Edition Coming Soon
Gaia 4.18 (R82) Immersion Tips, Tricks, & Best Practices Video Course
Now Available at https://shadowpeak.com/gaia4-18-immersion-course