Stats on single filter rule only?

Is there a way to get the stats on a single filter rule via the CLI?

I have one I need to check periodically and don’t really need to see the 65 others. If I could get this to work, I could have the router email it to me with the other stuff it sends at midnight every day.

Thanks.

Add a comment to your filter rule, then edit the script below to match. Run this in the terminal to output a sample. Remove starting/ending curly braces in your final script as they are only needed for the local variables when running in the terminal.

{
/ip firewall filter
:local cmt "my Comment"
:local bytes [get [find comment=$cmt] bytes]
:local packets [get [find comment=$cmt] packets]
:put "$bytes bytes, $packets packets"
}

Replace the last line above with your email code.

/tool email ... body="$bytes bytes, $packets packets"

Cool thanks.

I’ll try it out as soon as I have a little more time and let you know how it went.

Vance

OK, worked fine.

Dressed it up with a time and date header, gets emailed to me at 0004 every night.

Thanks for the help.