Can anyone tell me all the commands that I need to enable logging on my email, hit count on access control entries that I use in static NAT with port translation, on my ASA 5525-X?
I tried with:
logging enable
logging timestamp
logging mail errors
logging from-address asa@xxx.xxx
logging recipient-address asa@xxx.xxx level errors
smtp-server x.x.x.x
logging message 106100 level errors
and of course at the end of ACEs I added "log"
Hit count is rising, but I don have emails.
level
keyword on the recipient address command:logging recipient-address <e-mail_address> [severity_level]
.informational
, but your question says you don't get any for errors. Are you sure that there are what it considers errors happening?106100
is aninformation
level message, and you can change it toerror
level, but it will not change for any existing ACE, and all errors will end up in the log, not just the matches. "An optional syslog level (0 - 7) can be specified for the generated syslog messages (106100). If no level is specified, the default level is 6 (informational) for a new ACE. If the ACE already exists, then its current log level remains unchanged."