Filter on multiple includes / excludes

Userlevel 5
Is there anyway to filter on multiple excludes / includes.

As an example I have ACL logging enabled and I am trying to filter the log to exclude on certain ports, so as an example of some of the things I have tried that don't work are:

show log | exclude 137,139,138,14128,1512

show log | exclude (137)(139)(138)(14128)(1512)

show log | exclude (137),(139),(138),(14128),(1512)

show log | exclude 137 | exclude 138

Thanks in advance.

2 replies

Userlevel 6
Behind the exclude is an regex statement.
So the following should work:

show log | exclude (137|138|139|14128|1512)
Userlevel 5
Brilliant, that's seems to have worked. Thanks