Trace Filtering
Trace Filtering
Now let's move on with the search filtering capabilities!
We can filter out specific nodes/logs using their associated fields as follows: {fieldName}={value}. Typing this into the search bar will filter out all nodes/logs that have the fieldName set to value.
More explanation with an example
-
For example,
isEntry=truewill highlight all logs that have a field ofisEntrywith a value oftrue. -
We can also combine filters using logical operators like
&&,||, and^. For instance, typingaction=DequeueEvent && state=WaitForPrepareResponseswill search for logs with the actionDequeueEventand the machine in the stateWaitForPrepareResponses.
Demo Video: How to filter a trace by fields?
Filtering by Text
In addition to filtering by nodes, we can also filter out nodes and fields by text. This method of filtering will highlight any logs/nodes containing the text, or any of the log/node's field values that contain the text.
More explanation with an example
-
For example, typing
truein the search bar will highlight logs/nodes that either contain the wordtrueor have fields containing the texttrue.
Demo Video: How to filter a trace by text?
If the text you are trying to filter by contains any nonalphanumeric characters (i.e., any characters that aren't letters or numbers), you must surround the text with double quotes in order to filter.
More explanation with an example
-
For example, if we want to filter by the text
status=0and avoid treating it as a fields filter looking for logs/nodes with thestatusfield equal to0, we need to surround it with double quotes like the following. Typing"status=0"in the search bar (with the double quotes!) will search for logs that contain the textstatus=0, or where the log's fields contain the textstatus=0.