Filter on multiple includes / excludes

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
  • (Edited)

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.

Photo of Martin Flammia

Martin Flammia

  • 6,170 Points 5k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of OscarK

OscarK, ESE

  • 7,912 Points 5k badge 2x thumb
Behind the exclude is an regex statement.
So the following should work:

show log | exclude (137|138|139|14128|1512)
Photo of Martin Flammia

Martin Flammia

  • 6,170 Points 5k badge 2x thumb
Brilliant, that's seems to have worked. Thanks