Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Danny
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
2 Replies
JozkoMrkvicka
Leader
Leader

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

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.