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

Sort rules by hit count / last hit

I'm looking for a quick way to sort rules by hit count and last hit date. CLI / API one-liner would be all I need. Has anyone created this already?

Thanks in advance!

0 Kudos
4 Replies
JozkoMrkvicka
Mentor
Mentor

Have you tried export with hit count included ?

Not sure if there is simple way to do it as one-liner.

Kind regards,
Jozko Mrkvicka
0 Kudos
Danny
Champion Champion
Champion

Thanks, $MDS_FWDIR/scripts/web_api_show_package.sh -n port -c  exports all the info I need. I already created the report for the rules sorted by hit count (copied the rule number and hit count from html to Excel, sorted by hit count). As the info about the last hit date (which is part of the exported json data) is not visualized it's harder to create a report for as I need to find a proper way to filter just that data out of the json content. Will let you know about my proceeding.

Denis
Explorer

Hi Danny!

Were you able to pull data on last rule triggers? I have a similar problem and if you managed to work out a solution, could you share the results?

 

Best Regards, Denis
0 Kudos
Danny
Champion Champion
Champion

Hi @Denis , yes my solution is documented here.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events