Skip to Content
KubeSense

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

ScreenWhere the filter bar isFields
LogsThe filter bar of the Log ExplorerLog fields
TracesThe filter bar of TracesTrace fields
EventsThe filter bar of the Events pageEvent fields
RUMThe filter bars of the RUM screensFields of the event type: sessions, views, actions, errors, resources, long tasks
Data ExplorerEach logs, events, traces and RUM query. Metrics keep PromQL.The fields of the query's source
Alert rulesLogs and traces queries in the rule editorLog or trace fields
SLOsThe filters of a by-count or time-slice SLO, on traces or logsTrace or log fields
WorkflowsQuery steps and sample stepsLog or trace fields
DashboardsPanel queries and variables of logs, traces, events and RUM, and event overlaysThe fields of the source
Log pipelinesThe condition of Block and Replace rulesLog fields
Log-to-metricThe filter of a metricLog fields
List screensSLOs, 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:payment runs within the range and clusters you picked. On the Events page the cluster selection is added to the text as cluster:(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 panelWith ns set to otel-demoWith ns empty
namespace:$nsnamespace:otel-demoNo filter on namespace.
type:$lvl namespace:$nsBoth termsOnly type:$lvl
Filter in the panelWith ns set to prod and svc set to payWith ns empty
namespace:~*${ns}*namespace:~*prod*, a substring, ignoring caseNo filter on namespace.
workload:${svc}*workload:pay*, a prefixNo filter on workload.
workload:${svc}-apiworkload:pay-apiNo 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.

  • $$name on its own stands for the whole condition: the variable's field and its selected values. With payment selected in a svc variable that lists workload, type:ERROR $$svc reads as type:ERROR workload:payment. It changes when the variable's field changes. -$$svc leaves 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, $$name and ${name}. On any other screen, such as Logs, an alert, an SLO or a pipeline, a $name, ${name} or $$name is ordinary text and is searched as typed, so service:$nope is the same as service:"$nope".
  • $$name:value takes 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.

TermIn a pipelineOn the Logs page
The log level, such as type:ERROROn 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:trueMatches 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:~error

Or 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:cart matches an event with either workload. Each condition is bracketed when the rule is written to the pipeline, so a long mix of AND and OR reads the way you wrote it.
  • Equality compares the text. @http.status_code:500 matches the number 500 and the text 500. @http.status_code:"500" means the same, so there is no quoting rule. The number 500.0 is written 500 in the text form, so @code:500.0 matches only the text 500.0.
  • Comparisons are numeric. @http.status_code>=500 and workload>5 compare 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>5

Has a value

To testWriteMatches
A column has a value, empty or nottype:/^/Every event that carries the column.
The body is present, empty or notbody:/^/Every event that carries a body.
A column is not emptytype:*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 kindWildcards and ~OR across fields
SLOs, dashboards, alert rulesYesYes
Every other listNo, exact values onlyNo

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:prod
kind:Deployment -namespace:kube-system -namespace:kube-public
namespace:prod namespace:staging

On 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:

ScreenFields
SLOsburn_rate, burn_rate_status, cluster, metric, name, namespace, status, status_eval, workload
Dashboardsaccess, created_by, integrated, name, owner, public, tag, type
Alert rulescreated_by, enabled, evaluation, name, notification_channel, query_type, severity, state
Workloadskind, namespace, source, workload
Audit logaction, description, resource_name, resource_type, user_email
Issuescluster, perspective_namespace, perspective_workload, protocol_type, return_code, source
Anomaliesclustered_resource, cluster, issue_reason, region, return_code, status, subtype, workload
Kubernetes nodesname, cluster, status
Kubernetes podsname, namespace, cluster, status, node, workload
Kubernetes deployments, StatefulSets, DaemonSets and ReplicaSetsname, namespace, cluster, status
Kubernetes persistent volumes and claimsname, cluster, status
Kubernetes jobs, CronJobs and ConfigMapsname, namespace, cluster
Hostsname, 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
Processesname, host, cluster, pid, command
ECS containersname, 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 monitoringname, server, namespace, cluster, protocol_type, client, app_db, client_namespace, client_cluster
Cost & Usageuser, module, role, status, domain, origin, feature
Sensitive Datadomain, compliance, severity, status, cluster, namespace, workload, rule, group
LLM traces and spansservice_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 sessionsgen_ai_system, gen_ai_operation, request_model, service_name, env, cluster, namespace, user_id
LLM overview and usersgen_ai_system, gen_ai_operation, request_model, service_name, env, cluster, namespace
Workload detail tabsstatus, 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 eventstype, namespace, workload, kind, reason, instance
Service mapstatus, source, protocol_type, namespace, workload
Scanner activityclient_ip, path, signature, workload, app_service, namespace, cluster
Security signalsseverity, rule, service, source_ip, assignee, cluster, namespace
Synthetics monitorsstatus, type, location, probe, owner, policy
Synthetics suitesstatus
Synthetics outagesstate, severity, error, location
Synthetics alert eventsmonitor, event, priority, channel, location, muted
Synthetics CI batchesstatus, provider, repo, branch, pipeline, suite
Synthetics resultsstatus, check_type, monitor, location, probe, failure_code, http_status
Synthetics monitor results tabstatus, probe, failure_code
Synthetics mobile appsplatform
Synthetics status pagesaccess, enabled, domain
Synthetics maintenancestatus, mode, enabled
Alertmanager alerts (MCP list-alerts only)alertname, severity, state, namespace, fingerprint
Data Streams topicstopic, domain, status
Data Streams consumer groupsgroup, topic, domain, status
Data Streams pipeline maptopic, 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.
  • OR works inside one field, as in status:(UP OR DOWN). It does not work across fields. A field written twice is combined, as on the other lists; status:UP status:DOWN is refused because nothing matches both.
  • -field:value works on fields with a fixed set of values and means "the other values". These are monitor status, type and policy, suite status, outage state, severity and error, alert event event and muted, and batch status. 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:payments is 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 as DNS, TIMEOUT, CONNREFUSED, SSL and INCORRECT_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:HTTP

Synthetics 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, status is success or failure, and check_type is the type of check, such as http or tcp. monitor takes the monitor name, and failure_code takes the same codes as Outages. The other fields are location, probe and http_status. Case does not matter for status, check_type and failure_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, probe and failure_code. status and failure_code take one value each, and probe takes one or several. Only status can be excluded.
status:failure check_type:(http OR tcp) monitor:"Checkout API" -location:eu

Mobile 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.

ListFieldValues
Mobile appsplatformios, android
Status pagesaccesspublic, password, ip-allowlist
Status pagesenabledenabled, disabled
Status pagesdomaincustom, default
Maintenancestatusactive, inactive
Maintenancemodemute, pause
Maintenanceenabledenabled, 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:payments
status:active mode:mute

Security signals

Filtering works on the Security → Signals list, its facets and its counts.

  • severity is critical, high, medium, low or info.
  • rule takes 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.
  • assignee takes a user id, or unassigned for signals with no assignee, as in assignee:unassigned.
  • service, source_ip, cluster and namespace take exact values.
  • A word with no field searches signal titles. It must be one word or one quoted phrase, with no - and no OR.
  • The status tabs (open, resolved and so on) stay separate from the text. There is no status field.
  • Any field can be excluded, as in -severity:info.
severity:(critical OR high) assignee:unassigned -namespace:kube-system

Old 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.

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 query argument of search-logs, search-traces, search-rum, analyze-logs, analyze-traces and create-alert, and in each entry of analyze-telemetry. The older where and filters arguments 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-suites and synthetics-list-incidents. Their fields are the ones in the table above. A tool refuses query together with an argument that filters the same field, such as state with status: in query. Send the field in one place.
  • Stored alerts, dashboards and pipelines read back through the MCP tools carry kql, or legacy when the filter cannot be written in the filter syntax. The log pipeline tools take kql for rule conditions.

On this page