The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Filtering log output using the CLI

Prev Next

Use the commands in this section to use regular expressions to filter the log display to include only Network Security HA-specific information.

To filter the active log:
  1. Log in to the Central Management System CLI.

  2. Enable the CLI enable mode:

    hostname > enable
    hostname #
  3. To display only the lines that match a regular expression:

    hostname # show log matching <regularExpression>
  4. To display only the lines that do not match a regular expression:

    hostname # show log not matching <regularExpression>
To filter an archived log:
  1. Enable the CLI enable mode:

    hostname > enable
    hostname #
  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 <regularExpression>
  4. To display only the lines in an archived log that do not match a regular expression:

    hostname # show log files <number> not matching <regularExpression>
To filter the newly added lines that are printed in real time:
  1. Enable the CLI enable mode:

    hostname > enable
    hostname #
  2. To start printing only the new lines in the active log that match a regular expression:

    hostname # show log continuous matching <regularExpression>
  3. To start printing only the new lines in the active log that do not match a regular expression

    hostname # show log continuous not matching <regularExpression>
To filter all logs:
  1. Enable the CLI enable mode:

    hostname > enable
    hostname #
  2. To view only the lines in all logs that match a regular expression:

    hostname # show log files all matching <regularExpression>
  3. To view only the lines in all logs that do not match a regular expression:

    hostname # show log files all not matching <regularExpression>