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 firstname.lastname@example.org logging recipient-address email@example.com 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.
levelkeyword 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?
informationlevel message, and you can change it to
errorlevel, 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."