--- title: "Filtering log output using the CLI" slug: "filtering-log-output-using-the-cli" tags: ["Network Security (NX)", "Product Usage"] updated: 2026-09-12T20:32:10Z published: 2026-09-12T20:32:10Z canonical: "docs.trellix.com/filtering-log-output-using-the-cli" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Filtering log output using the CLI 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 ``` 4. To display only the lines that do not match a regular expression: ``` hostname # show log not matching ``` 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 matching ``` 4. To display only the lines in an archived log that do not match a regular expression: ``` hostname # show log files not matching ``` 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 ``` 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 ``` 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 ``` 3. To view only the lines in all logs that do not match a regular expression: ``` hostname # show log files all not matching ``` :