To filter an archived log:

Prev Next
  1. Enable the CLI enable mode:

    hostname > enable

  2. List the logs:

    hostname # show log files

  3. To display only the lines in an archived log that match a regular expression:

    hostname # show log files <number> matching <regular expression>

    hostname # show log files <number> matching <regular expression>

    where <number> is the number of the file in the list of log files.

  4. To display only the lines in an archived log that do not match a regular expression:

    hostname # show log files <number> not matching <regular expression>