Filter¶
In Explorer, you can filter and query data by specifying a field name and field value.
Note
The main difference between filtering and searching is whether the input contains a : (colon separator). If it does, the input is treated as a filter condition; if not, it is treated as a search condition.
Operators¶
Different field types support different operators, as follows:
-
String field operators:
=,≠,match,not match,wildcard,not wildcard,exist,not exist,regexp,not regexp -
Numeric field operators:
=,≠,>,>=,<,<=,[xx TO xx],exist,not exist
| Operator | Description |
|---|---|
= |
Equal. Example: attribute:value |
≠ |
Not equal. Example: -attribute:value |
match |
Contains. Example: attribute:~value |
not match |
Does not contain. Example: -attribute:~value |
wildcard |
Contains; requires wildcards for fuzzy query. Example: attribute:*value* |
not wildcard |
Does not contain; requires wildcards for reverse fuzzy query. Example: -attribute:*value* |
exist |
Exists; filters data where the specified field exists. Example: attribute:* |
not exist |
Does not exist; filters data where the specified field does not exist. Example: -attribute:* |
regexp |
Regular expression match; uses a regular expression to match the target string. Example: attribute:/value.*/ |
not regexp |
Reverse regular expression match; uses the target string to match the regular expression. Example: -attribute:/value.*/ |
> |
Greater than. Example: attribute:>value |
>= |
Greater than or equal to. Example: attribute:>=value |
< |
Less than. Example: attribute:<value |
<= |
Less than or equal to. Example: attribute:<=value |
[xx - xx] |
Range. Example: attribute:[1 - 100] |
Wildcard¶
Supports * and ? wildcards, where:
-
*matches zero or more arbitrary characters -
?matches exactly one arbitrary character
Example:
Value: platform
# Use suffix * matching only; applicable when the prefix of a value string is fixed and exact while the latter part changes dynamically
attribute:plat* // * matches form
# Use ? matching only; applicable when only characters at specific fixed positions change dynamically
attribute:plat?orm // ? matches f
# Use ? and * together
attribute:pla?for* // ? matches t, * matches m
# Mixed use of *
attribute:plat*or* // the first * matches f, the second * matches m
Special Characters¶
In Explorer, some characters have special meanings; for example, a space separates multiple words. If the search content contains the following special characters, special handling is required: space, :, ", “, \, (, ), [, ], {, }.
For more information, refer to Special Character Escape Queries.
Boolean Operators¶
Supports combining related searches and filters in the form of AND/OR/NOT.
| Logical Relationship | Description |
Notes |
|---|---|---|
| a AND b | Intersection of the query results before and after | Search and filter conditions are connected by AND by default. AND can be replaced with a space, i.e., a AND b = a b |
| a OR b | Union of the query results before and after | The returned results must contain either keyword a or b. Example: a OR b:value |
| NOT c | Excludes the current query results | NOT is mostly used in search syntax; in filters, use ≠ instead for exclusion logic |
Grouping¶
Use parentheses () to increase the priority of data query conditions. If parentheses are present in a query, the query logic inside the parentheses is executed first. Within parentheses, query priority still follows the order NOT > AND > OR.
Manual Mode¶
Supports switching the search box to manual mode.
This applies to all Explorers (except dashboards and custom Explorers). In this mode, you can add search and filter conditions through UI interactions and freely switch between manual mode and UI mode without making any changes to the content from before the switch, enabling real-time switching and restoration between UI and manual input.
Quick Filters¶
In Explorer, you can edit Quick Filters to add new filter fields. Two configuration methods are supported:
Configured by administrators or owners.
Visible to all workspace members, but regular members and standard members cannot edit, delete, or move them.
Note
After configuring a filter field here, the system automatically sets it as an index field. It can then be reused directly in the search bar.
All members can configure quick filter items based on the local browser.
Visible only to the current user; other workspace members cannot view them.
Quick Filters support preset fields. Newly added fields use the field type in Field Management by default. If the field does not exist in Field Management, it defaults to text format.
The Log Explorer also displays the count and percentage of field values to help compare data distribution. For details, see Quick Filter Count and Percentage.
After entering the field editing interface, two parts of fields are displayed:
-
Filter fields: the fields displayed in Quick Filters
-
Available fields: all fields cached for the current data type
You can perform the following operations:
-
Search for fields; if the query result has no exact match, you can directly create and add one to "Filter fields".
-
Edit field aliases;
-
Drag to adjust field order;
-
Remove fields;
-
Set whether to display field aliases.
Null Value Filtering¶
After an administrator enables null value filtering in the global configuration, the "No Data" item in each field group of Quick Filters is fixed at the top of the field value list and separated from other field values by a divider. When scrolling through the field value list, the "No Data" item remains visible. Click this item to filter data where the field has no value.
Related Operations¶
To optimize performance, quick filter items do not refresh automatically when query conditions (time range, search filters, etc.) change. You must manually expand the corresponding filter item to load or update its data.
Refresh Rules:
-
Initial load: When you enter Explorer, all filter items are collapsed by default; some commonly used filter items (such as
service,status, etc.) are expanded by default and load the current list data once. -
Manual refresh: After adjusting the time range, search conditions, or filter conditions, the data of expanded filter items does not update automatically. To view the latest list of options, collapse the item temporarily and then expand it again.
-
Independent refresh: The global refresh button at the top of the page and the automatic refresh frequency setting next to the Time Widget (such as 5s, 30s) only affect data refresh in the main Explorer list and do not affect the data status of options in the Quick Filters panel.
Click the row containing a tag value to select only that value (select this value only). If you need to select multiple values, you can continue selecting the checkboxes of other values. If a value is already selected exclusively, clicking the row containing that value again deselects it and clears all filters at the same time.
When Quick Filters contain more than 10 tag fields, you can perform a fuzzy search by field name or display name.
When a Quick Filters field has more than 10 attribute values, you can enter text for real-time search. You can also click the fuzzy match or reverse fuzzy match button to filter.
After clicking, the current Explorer switches to Analysis Mode, and the field is automatically brought into "Analysis Dimensions" for the query.
If the Quick Filters in Explorer include the duration field, you can manually adjust the maximum and minimum values for query analysis.
- By default, the minimum and maximum values of the progress bar are the minimum and maximum durations in the trace data list respectively.
- If the input format is invalid, the input box turns red and no search is performed. The correct input format is a plain "number" or "number+ns/μs/ms/s/min".
- If you search without entering a unit, the system adds "s" after the entered number by default for filter search.
- If you manually enter a unit, the search is performed directly using the entered unit.
Filter History¶
You can view filter and search history and apply it to different Explorers in the current workspace. Click the icon to the right of the search bar above Explorer, or use the shortcut (Mac OS: shift+cmd+k / Windows: shift+ctrl+k) to quickly open Filter History.
Note
Filter History only supports viewing the current user's filter and search conditions in the local browser.
Related Operations¶
Filter History retains a maximum of 100 regular history records.
-
Pin to Filter: Click the Pin to Filter button on the right to pin the filter condition to the top.
-
Add to Filter: Click a filter condition directly to add it to Explorer for filtering. Multiple selection is supported.
-
Apply Filter History in different Explorers: For example, after viewing the filter history of
-source:defaultin Logs > Explorer, you can use this filter condition directly in other Explorers such as Traces.
Cross-page Persistence¶
Cross-page Persistence automatically applies selected filter conditions to other Explorers, which is suitable for troubleshooting issues with the same service across logs, traces, and other data.
In Filter History, click the Cross-page Persistence stacked icon to the right of a condition to enable it. Multiple conditions can be persisted at the same time. After it is enabled, the condition is immediately applied to the current Explorer, and the same indicator appears to the left of the corresponding condition in the search bar.
When you enter another Explorer that supports this feature, persisted conditions are combined with the target page's existing conditions using AND, meaning query results must satisfy all these conditions at the same time; identical complete conditions are retained only once. For example, after persisting service:api, if you enter a Trace Explorer that already has the status:error condition, the query condition is status:error AND service:api.
Scope: Explorers in Logs, Application Performance Monitoring (APM), Real User Monitoring (RUM), Event Center, Synthetic Monitoring, CI Visualization, Security Monitoring, Cloud Billing, and Agent Monitoring, as well as the view pages of custom Explorers.
Persistence configurations are saved in the local browser by current user and logged-in workspace, and are restored after refresh or reopening. When switching users, workspaces, or browsers, the respective persistence configurations are used.
| Operation | Result |
|---|---|
| Click the Cross-page Persistence icon in history again, or click the indicator to the left of the condition in the search bar | Cancels Cross-page Persistence for that condition; the current page retains the condition as a regular filter |
| Delete the current condition, submit an edited condition, or cancel the filter in Filter History | Simultaneously cancels Cross-page Persistence for the removed condition; the new edited condition can enable persistence again in history |
| Clear the search bar | Simultaneously clears the currently persisted conditions |
Pin to Filter controls the pinned order of history entries, while Cross-page Persistence controls automatic reuse of conditions. The two are configured separately.
When using DQL or SLS queries, the current expression is executed and automatically applying persisted conditions is paused; sharing and snapshot viewing use the saved query. After you return to search and filter mode that supports Cross-page Persistence, persisted conditions continue to be applied.







