01-18-2012 08:40 AM - edited 03-11-2019 03:16 PM
I know there has to be a way to filter the logging on the ASA CLI. The "sh logging" command is obviously all logs on the ASA but i would like to filter the logging based on perhaps a source IP or dst ip or port. I can do this in the ASDM using the logging tool but i perfer using the CLI. Is there a regular expression or something that I need to use? I know i can use "sh loggin | in 10.10.0.1" (ip based). But that shows all logs for source or destination 10.10.0.1. I need to specify. Thanks.
01-24-2012 07:59 AM
Hi Justin,
For source IP, you can do something like this:
show log | grep for .*:
For destination IP, you would use:
show log | grep to .*:
-Mike
02-08-2012 12:27 PM
What If I wanted to filter on source and destination IP addresses? I tried show log | grep to .*:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide