Filtering on each screen
Where filtering is available, the fields each screen accepts, and the rules that differ for dashboards, log pipelines, list screens, saved views, links and agents.
This page lists every screen that takes a filter and what is special about each one. The same filter text matches the same rows on every screen that reads stored data. Screens differ in the fields they know and in a few limits, and log pipelines differ in three cases. For logs and traces, see Filtering on logs and Filtering on traces.
Screens at a glance
| Screen | Where the filter bar is | Fields |
|---|---|---|
| Logs | The filter bar of the Log Explorer | Log fields |
| Traces | The filter bar of Traces | Trace fields |
| Events | The filter bar of the Events page | Event fields |
| RUM | The filter bars of the RUM screens | Fields of the event type: sessions, views, actions, errors, resources, long tasks |
| Data Explorer | Each logs, events, traces and RUM query. Metrics keep PromQL. | The fields of the query's source |
| Alert rules | Logs and traces queries in the rule editor | Log or trace fields |
| SLOs | The filters of a by-count or time-slice SLO, on traces or logs | Trace or log fields |
| Workflows | Query steps and sample steps | Log or trace fields |
| Dashboards | Panel queries and variables of logs, traces, events and RUM, and event overlays | The fields of the source |
| Log pipelines | The condition of Block and Replace rules | Log fields |
| Log-to-metric | The filter of a metric | Log fields |
| List screens | SLOs, dashboards, alert rules, workloads, audit log, issues, anomalies, cloud resources, Kubernetes (including Kubernetes events), hosts, processes, containers, database monitoring, the Service map, Data Streams (topics, consumer groups and the pipeline map), Security → Signals and Scanner activity, the LLM Observability screens (tracing, Sessions, Users, Overview) and Synthetics (Monitors, Suites, Outages, Alerts, CI batches, Results, a monitor's Results tab, Mobile apps, Status pages, Maintenance) | The fields of the list, in the table below |
Field names are the filter names in Log and trace fields, not SQL column names.
Explorer pages
On the Logs, Traces, Events and RUM pages and in the Data Explorer, the mode control beside the filter bar offers Basic and Advanced. The Basic tab is the filter bar, and new pages open in it. Advanced stays until it is retired, and KubeSense asks before it clears a text it cannot convert.
- Facets and the details drawer follow the filter text. See Coming from Basic.
- The time range and cluster selection stay outside the text.
workload:paymentruns within the range and clusters you picked. On the Events page the cluster selection is added to the text ascluster:(a OR b). - On Logs and Traces, picking SQL writes your filter as SQL that selects the same rows. Picking Advanced or SPL clears the text after asking you.
- The Create an alert button opens the alert editor with the page's filter.
Alert rules, SLOs and workflows
The alert rule editor, the SLO editor and workflow steps use filters for logs and traces. A text you test on the Logs page matches the same rows in the rule. A saved rule keeps its stored filter until you edit the text. A new or edited alert whose filter can never match, or fails on every check, is refused at save, because it would never fire. The message names the condition.
In a workflow step, $NAME takes the value of the workflow input NAME when a run starts. Only the whole-value form works. ${NAME} is an error. Alert-uptime and metrics SLOs, and metrics and RUM alert rules, have no filter. They keep their own editors.
Dashboards and variables
A dashboard panel stores your filter text and runs it each time the panel loads. In a panel query, write $name when a variable is the whole value and ${name} when it is part of a value. The panel fills in the variable's current selection.
| Filter in the panel | With ns set to otel-demo | With ns empty |
|---|---|---|
namespace:$ns | namespace:otel-demo | No filter on namespace. |
type:$lvl namespace:$ns | Both terms | Only type:$lvl |
| Filter in the panel | With ns set to prod and svc set to pay | With ns empty |
|---|---|---|
namespace:~*${ns}* | namespace:~*prod*, a substring, ignoring case | No filter on namespace. |
workload:${svc}* | workload:pay*, a prefix | No filter on workload. |
workload:${svc}-api | workload:pay-api | No filter on workload. |
A variable with no selection drops its term, a negated term too. The quick reference has the rules and a table of what each form matches. These apply here too.
$$nameon its own stands for the whole condition: the variable's field and its selected values. Withpaymentselected in a svc variable that listsworkload,type:ERROR $$svcreads astype:ERROR workload:payment. It changes when the variable's field changes.-$$svcleaves the selected values out.- A term that names a variable the dashboard does not have is ignored, so the panel runs without it. This covers
$name,$$nameand${name}. On any other screen, such as Logs, an alert, an SLO or a pipeline, a$name,${name}or$$nameis ordinary text and is searched as typed, soservice:$nopeis the same asservice:"$nope". $$name:valuetakes only the field from the variable, as in$$svc:payment.- A variable can have its own filter, which decides the values it lists.
A panel saved before the filter bar keeps ~$name matching exactly, even after you edit the panel. ~${name} ignores case.
Log pipelines and log-to-metric
Pipeline rules and log-to-metric filters match as the Logs page does, so body:error blocks the lines that the Logs page finds with body:error. The exceptions are below. Only here, a /regex/ term works on any field, and a rule that must keep case on body writes body:/Payment/. A converted body LIKE "Payment%" rule becomes exactly that, with no notice. See Regular expressions.
A converted level != "DEBUG" rule becomes (type:/^/ -type:DEBUG). The term type:/^/ means the event has a type value, empty or not, which type:* would not match when the value is empty. The filter bar explains it when you hover the term.
Where a pipeline differs from the Logs page
A pipeline reads a log before KubeSense stores it. Three kinds of term match differently there.
| Term | In a pipeline | On the Logs page |
|---|---|---|
The log level, such as type:ERROR | On Kubernetes logs, type is UNKNOWN until every pipeline has run. type:ERROR matches no log, and -type:INFO matches every log. | The level of the log. |
A true or false attribute, such as @flag:true | Matches only the text true, not the value true. | Matches both. |
A comparison on a number stored as text, such as @code>=500 on the text "500" | Does not match. | Matches. |
To test the level in a pipeline, use the attribute when the logs carry one:
@level:~errorOr add a JSON Extract rule that writes the attribute to level, above the rule that tests it. type:ERROR then works in the rules below it. The pipeline editor warns you when a condition tests type and no earlier rule in that pipeline sets the level.
Log-to-metric filters run after the level is read, so type:ERROR works there.
What a pipeline condition means
A condition tests a value, so an event with no value for the field fails the test. That is why the converted rule above names type:/^/ as well as -type:DEBUG: an event with no type is not blocked.
- OR means OR.
workload:payment OR workload:cartmatches an event with either workload. Each condition is bracketed when the rule is written to the pipeline, so a long mix ofANDandORreads the way you wrote it. - Equality compares the text.
@http.status_code:500matches the number 500 and the text500.@http.status_code:"500"means the same, so there is no quoting rule. The number500.0is written500in the text form, so@code:500.0matches only the text500.0. - Comparisons are numeric.
@http.status_code>=500andworkload>5compare as numbers. In a pipeline a comparison works on any log field. - A value that is true or false, null, a list or an object has no filter form. The rule stays as it is. So does a number against
body, because a body is text.
@http.status_code:500 workload>5Has a value
| To test | Write | Matches |
|---|---|---|
| A column has a value, empty or not | type:/^/ | Every event that carries the column. |
| The body is present, empty or not | body:/^/ | Every event that carries a body. |
| A column is not empty | type:* | An event whose type has some text. |
| An attribute is present | @user_id:* | An event with that attribute. |
field:/^/ is the one way to say "has a value" for a column and for body. An attribute uses @key:*. A converted exist(type) check becomes type:/^/.
type:/^/ body:/^/ @user_id:*A rule that matches every log stays as it is
A MATCH on the body with ^ or an empty pattern is true for every event. A block rule with it drops every log. KubeSense does not convert it. The rule keeps its old form, and the editor says: "This condition matches every log. It stays as it is so someone can review it; a block rule with it drops every log." If only a part of a condition matches every log, the editor says so and names that it decides nothing. Check the rule and replace it with the condition you meant.
Rules the pipeline cannot run
KubeSense compiles every rule except Lookup when you create, edit or turn on a pipeline. A rule that the pipeline cannot run is refused, and the message names the rule and the reason. An old rule such as @code >= "500", which compares a number with quoted text, is refused this way. Write @code>=500.
Rules that change a little
A rule that compared a value with its own type, such as a number in status = 500, converts to the text form. It now also matches the same value stored the other way, so the editor shows typed_equality_to_text. Rules saved before conditions existed show their filter when it can be shown to select the same logs, and open in Advanced with a reason when it cannot. See When a filter cannot be converted.
One * pattern is written differently. See A pipeline pattern that ran as a contains test.
List screens
List screens understand less of the filter syntax than the explorers.
| Screen kind | Wildcards and ~ | OR across fields |
|---|---|---|
| SLOs, dashboards, alert rules | Yes | Yes |
| Every other list | No, exact values only | No |
On every list except the first three, the text must be an AND of per-field groups. OR is allowed inside one field, as in namespace:(a OR b). kind:Deployment OR namespace:a is an error.
A field written in several terms is combined: -namespace:a -namespace:b excludes both, and namespace:(a OR b) -namespace:b keeps a. Terms that no row can match, such as namespace:a namespace:b, are refused.
kind:Deployment namespace:(prod OR staging)kind:Deployment OR namespace:prodkind:Deployment -namespace:kube-system -namespace:kube-publicnamespace:prod namespace:stagingOn hosts, processes and ECS containers, an include and an exclude on one field are joined by AND. os:linux -os:windows works and os:linux OR -os:windows does not.
The fields of each list:
| Screen | Fields |
|---|---|
| SLOs | burn_rate, burn_rate_status, cluster, metric, name, namespace, status, status_eval, workload |
| Dashboards | access, created_by, integrated, name, owner, public, tag, type |
| Alert rules | created_by, enabled, evaluation, name, notification_channel, query_type, severity, state |
| Workloads | kind, namespace, source, workload |
| Audit log | action, description, resource_name, resource_type, user_email |
| Issues | cluster, perspective_namespace, perspective_workload, protocol_type, return_code, source |
| Anomalies | clustered_resource, cluster, issue_reason, region, return_code, status, subtype, workload |
| Kubernetes nodes | name, cluster, status |
| Kubernetes pods | name, namespace, cluster, status, node, workload |
| Kubernetes deployments, StatefulSets, DaemonSets and ReplicaSets | name, namespace, cluster, status |
| Kubernetes persistent volumes and claims | name, cluster, status |
| Kubernetes jobs, CronJobs and ConfigMaps | name, namespace, cluster |
| Hosts | name, cluster, os, os_version, kernel, arch, cpu_model, cloud_provider, cloud_platform, cloud_region, cloud_availability_zone, cloud_account_id, instance_type, azure_vm_size, resource_group |
| Processes | name, host, cluster, pid, command |
| ECS containers | name, id, ecs_cluster, cluster, host, status, task_family, service_name, launch_type, task_revision, task_arn, image, image_tag, image_hash, cloud_provider, cloud_region, cloud_availability_zone, cloud_account_id |
| Database monitoring | name, server, namespace, cluster, protocol_type, client, app_db, client_namespace, client_cluster |
| Cost & Usage | user, module, role, status, domain, origin, feature |
| Sensitive Data | domain, compliance, severity, status, cluster, namespace, workload, rule, group |
| LLM traces and spans | service_name, span_name, gen_ai_system, gen_ai_operation, gen_ai_type, request_model, response_model, cluster, namespace, workload, application_id, application_name, user_id, session_id, env, status, observation_type, observation_level, source, agent_name, prompt_name, finish_reasons |
| LLM sessions | gen_ai_system, gen_ai_operation, request_model, service_name, env, cluster, namespace, user_id |
| LLM overview and users | gen_ai_system, gen_ai_operation, request_model, service_name, env, cluster, namespace |
| Workload detail tabs | status, protocol, source, role, status_code, method, namespace, workload, container, region, app_version, resource, server, client, instance, server_namespace, client_namespace, associate_namespace, associate_workload, node_name, operation_name, partner_cluster, reason, env_type, service, app_db, trace_id, span_id, issue_id, domain |
| Kubernetes events | type, namespace, workload, kind, reason, instance |
| Service map | status, source, protocol_type, namespace, workload |
| Scanner activity | client_ip, path, signature, workload, app_service, namespace, cluster |
| Security signals | severity, rule, service, source_ip, assignee, cluster, namespace |
| Synthetics monitors | status, type, location, probe, owner, policy |
| Synthetics suites | status |
| Synthetics outages | state, severity, error, location |
| Synthetics alert events | monitor, event, priority, channel, location, muted |
| Synthetics CI batches | status, provider, repo, branch, pipeline, suite |
| Synthetics results | status, check_type, monitor, location, probe, failure_code, http_status |
| Synthetics monitor results tab | status, probe, failure_code |
| Synthetics mobile apps | platform |
| Synthetics status pages | access, enabled, domain |
| Synthetics maintenance | status, mode, enabled |
Alertmanager alerts (MCP list-alerts only) | alertname, severity, state, namespace, fingerprint |
| Data Streams topics | topic, domain, status |
| Data Streams consumer groups | group, topic, domain, status |
| Data Streams pipeline map | topic, service, namespace |
Cloud resources accept any field name that the resource type shows.
A page-level scope, such as the cluster selection on Pods, stays next to your text. On Pods, a cluster term in your text replaces the page's cluster selection. The same holds for the domain selection on Scanner activity.
LLM Observability: Users, Sessions and Overview
These screens group calls into users, sessions or totals. A filter picks individual calls, and the rows are built from the calls that are left. So -gen_ai_system:openai-chat drops the calls made with openai-chat. A user or session that also made other calls still shows, counted on those other calls. It does not mean "users who never used openai-chat". These screens have always filtered this way.
Scanner activity
On Security → Scanner activity (once called Security signals), client_ip is the probe's source address. workload is the service that answered. A service with no Kubernetes workload shows in app_service instead. A cluster term replaces the page's domain selection. The View probes link on a security signal opens this page with its filters written as a filter.
Synthetics
Filtering works on the Monitors and Suites lists, on a monitor's Outages, on the Alerts tab and on CI batches (Results → batches). When the platform handles Synthetics alerting, the Alerts tab is the platform's Alert history, locked to Synthetics alerts, with its fields. Otherwise it lists Synthetics alert events, with the fields in the table above.
These lists are stricter than the explorers.
- Values are exact. There are no wildcards.
ORworks inside one field, as instatus:(UP OR DOWN). It does not work across fields. A field written twice is combined, as on the other lists;status:UP status:DOWNis refused because nothing matches both.-field:valueworks on fields with a fixed set of values and means "the other values". These are monitorstatus,typeandpolicy, suitestatus, outagestate,severityanderror, alert eventeventandmuted, and batchstatus. Excluding every value is refused. On any other field an exclusion is refused.- Labels are written
@team:payments. A label cannot be excluded, so-@team:paymentsis refused. On Suites a label takes one value, because all labels must match. - A word with no field searches monitor and suite names. On outages it searches the root-cause message, and on CI batches it is the commit.
- On Outages,
error:takes the failure codes, such asDNS,TIMEOUT,CONNREFUSED,SSLandINCORRECT_ASSERTION. Case does not matter. The bar suggests them. - On Synthetics alert events,
monitor:takes a monitor or suite id. On CI batches,suite:takes a suite id. A name is refused with a message. Pick one from the suggestions, which show the name.
status:(DOWN OR DEGRADED) @env:prod -type:HTTPSynthetics results
Filtering works on the Results explorer and on the Results tab of a monitor. The same rules apply as above: exact values, OR inside one field, no wildcards.
- On Results,
statusissuccessorfailure, andcheck_typeis the type of check, such ashttportcp.monitortakes the monitor name, andfailure_codetakes the same codes as Outages. The other fields arelocation,probeandhttp_status. Case does not matter forstatus,check_typeandfailure_code. - Any field on Results can be excluded, as in
-location:eu. A word with no field is refused, because Results has no free-text search. Run attributes and labels are not fields here. - A monitor's Results tab takes
status,probeandfailure_code.statusandfailure_codetake one value each, andprobetakes one or several. Onlystatuscan be excluded.
status:failure check_type:(http OR tcp) monitor:"Checkout API" -location:euMobile apps, status pages and maintenance
These three lists are filtered in the browser, so a field takes a short word you type, not the label you see on the page.
| List | Field | Values |
|---|---|---|
| Mobile apps | platform | ios, android |
| Status pages | access | public, password, ip-allowlist |
| Status pages | enabled | enabled, disabled |
| Status pages | domain | custom, default |
| Maintenance | status | active, inactive |
| Maintenance | mode | mute, pause |
| Maintenance | enabled | enabled, disabled |
- Mobile apps and Maintenance take labels written
@key:value, as in@team:payments. Labels on these two lists can be excluded. - A word with no field searches names.
platform:ios @team:paymentsstatus:active mode:muteSecurity signals
Filtering works on the Security → Signals list, its facets and its counts.
severityiscritical,high,medium,loworinfo.ruletakes a rule name or id. A name that no rule has is refused, and the bar suggests names. If several rules share a name, all of them match.assigneetakes a user id, orunassignedfor signals with no assignee, as inassignee:unassigned.service,source_ip,clusterandnamespacetake exact values.- A word with no field searches signal titles. It must be one word or one quoted phrase, with no
-and noOR. - The status tabs (open, resolved and so on) stay separate from the text. There is no
statusfield. - Any field can be excluded, as in
-severity:info.
severity:(critical OR high) assignee:unassigned -namespace:kube-systemOld Synthetics links with parameters such as ?state=DOWN&label=env:prod open as the filter they mean, here status:DOWN @env:prod. Saved views of the monitors list keep working.
Saved views
Saved views from the old chip editor and from Advanced open in the Basic tab as filters, with a notice when the meaning changed. Opening a view never rewrites it. Saving a view stores the filter text.
Links and agents
A link carries the filter in the page address as q, the URL-encoded filter text. The address /logs?q=workload%3Apayment%20type%3AERROR opens the Logs page with workload:payment type:ERROR in the Basic tab. searchMode=KQL marks it as a filter.
Links from before the filter bar, with filter_ parameters, filter_advanced_query or queryState, still open as filters, with a notice when the conversion changed what they match.
AI agents can filter through the KubeSense MCP server. The ui_url in a tool result opens the same query in KubeSense.
For API and Terraform users
- MCP tools take the filter in the
queryargument ofsearch-logs,search-traces,search-rum,analyze-logs,analyze-tracesandcreate-alert, and in each entry ofanalyze-telemetry. The olderwhereandfiltersarguments are refused. - These MCP tools also take the filter in
query:list-nodes,list-pods,list-workloads,list-issues,list-dashboards,list-alert-rules,list-active-alerts,list-alerts(Alertmanager),get-service-map,synthetics-list-monitors,synthetics-list-suitesandsynthetics-list-incidents. Their fields are the ones in the table above. A tool refusesquerytogether with an argument that filters the same field, such asstatewithstatus:inquery. Send the field in one place. - Stored alerts, dashboards and pipelines read back through the MCP tools carry
kql, orlegacywhen the filter cannot be written in the filter syntax. The log pipeline tools takekqlfor rule conditions.