Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

PSQL - Show top 20 hit count per gateway

Danny
MVP Platinum
MVP Platinum

🏆 PSQL wizardry!
👉 Directly queries the management database

PSQL query to show the top 20 hit count per gateway on a Check Point Security Management (SmartCenter).
In expert mode run:


    psql_client monitoring postgres -c "WITH ranked AS (SELECT netobj_name AS gateway, rule_uid, policy_type, SUM(hits) AS total_hits, MAX(end_date) AS last_seen, ROW_NUMBER() OVER (PARTITION BY netobj_name ORDER BY SUM(hits) DESC) AS rn FROM public.hitcount WHERE end_date >= now() - 
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




1 Reply

the_rock
MVP Diamond
MVP Diamond

Excellent!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos