I have today a wifi setup using access list (CAPSMAN) and I would like to get an email sent to me everytime someone is rejected by the system? Is that possible and could someone get me a step by step?
The ideal solution would be if I would be able to get the same message that is printed in the log sent to me as an email, e.g.
Time Jan/31/2021 22:14:24
Buffer memory
Topics
caps
info
Message 00:00:00:00:00:00@CAP_name rejected, forbidden by access-list
I am sorry if this has been asked before but I did not find anything relevant when searching the forums.
Problem with that solution often is that logging selection criteria are not good enough.
I.e. there is no way to select logging actions on a regexp match with the actual message contents, and while you can select on the logging topics there a not enough unique topics defined to select a single message type.
In this case you would select on “caps,info” but you would get ALL messages with topic caps,info and it could be way too many.
I have registered a feature request some time ago to allow selecting logging actions based on regexp match with the message content.
Alternatively, a logging topic should be defined for each unique message in the system.
As it is now, your only solution is to have a regularly scheduled job that scans the messages logged to memory and picks out the interesting ones and mails them.
Yes this filter feature is missing. I use DUDE’s syslog filters to reduce the number of messages (but email is not one of my actions so far)
(Not trying to master the RegExp syntax yet, just adding many simple rules)
..