View only logs events related to a rule

Started by l0rdraiden, April 23, 2020, 09:52:28 PM

Previous topic - Next topic
Is there  way to filter the logs to see only the ones related with a rule?
This is basic and avaibale in any other firewall, it is possible in opnsense?

Really? no way? dont the firewall rules have an ID or something?

Well considering that it is probably not even possible I have oppened this
https://github.com/opnsense/core/issues/4065

It would be nice if somebody would work on this. I have no spare resources for this in the foreseeable future.

https://github.com/opnsense/core/issues/2195


Cheers,
Franco

@lordraiden: you should learn RegEx. Then you can build the filter rule yourself pretty quick.

E.g. exclude all logs from interface IPSec:  ^((?!IPsec).)*$
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR