Filtering lines

LogTail has a powerful mechanism to filter lines in the log file by either hiding lines matching a search term or showing only lines that contain the search term.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To show only lines that contain the search term, select ‘Show only matching’ option.

You can also optionally set the highlighting options for the shown line

 

To hide the content of lines that contain specific a specific text  you can set up a 'Filter' rule,

and select the ‘Hide matching lines’ option.

 

Note that whether the ‘Hide matching’ or ‘Show only matching’ option takes effect depends on the Default Line Action configuration in the Filter/Highlight view tab at the bottom.

 

If the ‘Default Line Action’ value is ‘Show’, then when any filter rules are enabled, all lines except those that match rules with ‘Hide matching’ selected are shown.

 

If the ‘Default Line Action’ value is ‘Hide’, then all lines are hidden by default, unless the line matches a rule with ‘Show only matching’ option selected.

Lines with text that match rules with ‘Hide matching’ selected  (or if Default Line Action is ‘Hide’) will be displayed with '...' to indicate that they are being hidden.

 

To display the line content in a filtered row, click on '...' to reveal it.

(Screenshot of lines matching text ‘message’ being filtered)

Highlighting lines >