:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
perf(logs): serve severity and service facets from the logs_volume_buckets rollup (#98430)
Frank Hamandc8c7d4fcdecf
diff --git a/posthog/clickhouse/logs/logs_volume_buckets.py b/posthog/clickhouse/logs/logs_volume_buckets.pyindex 530a591b5e41..cee82c66f8b3 100644--- a/posthog/clickhouse/logs/logs_volume_buckets.py+++ b/posthog/clickhouse/logs/logs_volume_buckets.py@@ -31,6 +31,10 @@ TABLE_NAME = "logs_volume_buckets"def LOGS_VOLUME_BUCKETS_TABLE_SQL():+ # Tests use no TTL. Test fixtures use fixed dates, and the TTL deletes rows older than 42 days.+ # This TTL uses a column per row, not a fixed interval. ttl_period() in+ # posthog/clickhouse/kafka_engine.py does not support this, so this function has its own guard.+ ttl_clause = "" if settings.TEST else "TTL time_bucket + toIntervalDay(greatest(42, retention_days))"return f"""CREATE TABLE IF NOT EXISTS {settings.CLICKHOUSE_LOGS_CLUSTER_DATABASE}.{TABLE_NAME}(@@ -46,7 +50,7 @@ CREATE TABLE IF NOT EXISTS {settings.CLICKHOUSE_LOGS_CLUSTER_DATABASE}.{TABLE_NAENGINE = {AggregatingMergeTree(TABLE_NAME, replication_scheme=ReplicationScheme.REPLICATED)}PARTITION BY toDate(time_bucket)ORDER BY (team_id, time_bucket, service_name, namespace, environment, severity_text)-TTL time_bucket + toIntervalDay(greatest(42, retention_days))+{ttl_clause}SETTINGS index_granularity = 8192, ttl_only_drop_parts = 0"""diff --git a/posthog/clickhouse/test/__snapshots__/test_schema.ambr b/posthog/clickhouse/test/__snapshots__/test_schema.ambrindex b8c0b5daea40..67c6d4cf6d69 100644--- a/posthog/clickhouse/test/__snapshots__/test_schema.ambr+++ b/posthog/clickhouse/test/__snapshots__/test_schema.ambr@@ -4191,7 +4191,7 @@ENGINE = ReplicatedAggregatingMergeTree('/clickhouse/tables/77f1df52-4b43-11e9-910f-b8ca3a9b9f3e_noshard/posthog.logs_volume_buckets', '{replica}-{shard}')PARTITION BY toDate(time_bucket)ORDER BY (team_id, time_bucket, service_name, namespace, environment, severity_text)- TTL time_bucket + toIntervalDay(greatest(42, retention_days))+SETTINGS index_granularity = 8192, ttl_only_drop_parts = 0'''@@ -12056,7 +12056,7 @@ENGINE = ReplicatedAggregatingMergeTree('/clickhouse/tables/77f1df52-4b43-11e9-910f-b8ca3a9b9f3e_noshard/posthog.logs_volume_buckets', '{replica}-{shard}')PARTITION BY toDate(time_bucket)ORDER BY (team_id, time_bucket, service_name, namespace, environment, severity_text)- TTL time_bucket + toIntervalDay(greatest(42, retention_days))+SETTINGS index_granularity = 8192, ttl_only_drop_parts = 0'''diff --git a/products/logs/backend/log_facet_values_query_runner.py b/products/logs/backend/log_facet_values_query_runner.pyindex 2cb007deceb7..69518271460b 100644--- a/products/logs/backend/log_facet_values_query_runner.py+++ b/products/logs/backend/log_facet_values_query_runner.py@@ -28,9 +28,9 @@ FACET_FIELDS: frozenset[str] = frozenset({"severity_text", "service_name"})DEFAULT_FACET_LIMIT = 100-# Attribute facets read the pre-aggregated log_attributes rollup; cap the read and return-# partial results rather than erroring, matching LogValuesQueryRunner.-MAX_ATTRIBUTE_READ_BYTES = 5_000_000_000+# Column facets read the logs_volume_buckets rollup. Attribute facets read the log_attributes rollup.+# At this limit, the query returns partial results and does not fail. LogValuesQueryRunner does the same.+MAX_ROLLUP_READ_BYTES = 5_000_000_000@dataclass(frozen=True, kw_only=True)@@ -49,18 +49,26 @@ class _AttributeFacet:class LogFacetValuesQueryRunner(AnalyticsQueryRunner[LogsQueryResponse], LogsQueryRunnerMixin):"""Per-value counts for a single facet.- A column facet (severity_text/service_name) groups the logs table directly. An attribute facet —- a resource attribute like k8s.namespace.name, or a log-body attribute like log.iostream — reads- the pre-aggregated log_attributes rollup instead of the logs Map column: orders of magnitude- cheaper, and the only way to keep the query under the read cap at scale.+ A column facet (severity_text or service_name) groups the logs_volume_buckets rollup. This rollup+ has both columns. An attribute facet groups the log_attributes rollup. Examples of attribute+ facets are the resource attribute k8s.namespace.name and the log attribute log.iostream. Each+ rollup costs much less to read than the logs table. At scale, a rollup is the only way to stay+ under the read limit.- Cross-filtering (a facet's counts reflect every *other* active filter, so selecting a value- re-scopes its siblings rather than itself) is exact for column facets, which strip their own- WHERE clause. On the rollup it depends on what the rollup carries. Every attribute facet honours- service_name, severity levels and resource-attribute filters, but not body search or- log-attribute filters — those dimensions aren't there. And only a resource-attribute facet can- strip its own filter, because rollup rows for a resource key share a resource_fingerprint; log- attributes have no equivalent grouping column, so a log-attribute facet can't exclude itself.+ Cross-filtering: the counts of a facet use all active filters, but not the filter of that facet.+ Thus, when the user selects a value, the other facets change, but this facet does not change.+ The applied filters depend on the columns that each rollup has:++ - A column facet removes its own filter exactly. It ignores body search, log-attribute filters,+ and resource-attribute filters, because logs_volume_buckets does not have these columns.+ - An attribute facet applies service, severity, and resource-attribute filters. It ignores body+ search and log-attribute filters.+ - Only a resource-attribute facet can remove its own filter. Its rollup rows share one+ resource_fingerprint. Log attributes have no such column, so a log-attribute facet cannot+ remove its own filter.++ Neither rollup has personId or sessionId. The person and session Logs tabs must show exact+ counts. Thus, when personId or sessionId is set, a column facet groups the logs table."""query: LogsQuery@@ -104,20 +112,25 @@ class LogFacetValuesQueryRunner(AnalyticsQueryRunner[LogsQueryResponse], LogsQue"facet_search": self.facet_search,}+ @cached_property+ def _scoped_to_person_or_session(self) -> bool:+ return self.query.personId is not None or self.query.sessionId is not None+@cached_propertydef settings(self) -> HogQLGlobalSettings:- if self.attribute_facet is not None:- # The rollup is small; "break" returns partial results instead of erroring if we ever- # hit the cap (mirrors LogValuesQueryRunner).+ if self.facet_field is not None and self._scoped_to_person_or_session:+ # logs_volume_buckets has no personId or sessionId, so this query groups the logs table.+ # At this limit, the query fails. It does not read an unlimited quantity of data.return HogQLGlobalSettings(- read_overflow_mode="break",- max_bytes_to_read=MAX_ATTRIBUTE_READ_BYTES,+ max_execution_time=30,+ max_bytes_to_read=10_000_000_000,+ read_overflow_mode="throw",)- # Column facets still group the logs table — fail fast rather than scan unbounded data.+ # All other facets read a small rollup. At this limit, "break" returns partial results and+ # the query does not fail. LogValuesQueryRunner does the same.return HogQLGlobalSettings(- max_execution_time=30,- max_bytes_to_read=10_000_000_000,- read_overflow_mode="throw",+ read_overflow_mode="break",+ max_bytes_to_read=MAX_ROLLUP_READ_BYTES,)@cached_property@@ -132,6 +145,18 @@ class LogFacetValuesQueryRunner(AnalyticsQueryRunner[LogsQueryResponse], LogsQuetimezone_info=ZoneInfo("UTC"),)+ @cached_property+ def _volume_buckets_query_date_range(self) -> QueryDateRange:+ # logs_volume_buckets uses 5-minute buckets. Align the range limits to these buckets.+ return QueryDateRange(+ date_range=self.query.dateRange,+ team=self.team,+ interval=IntervalType.MINUTE,+ interval_count=5,+ now=dt.datetime.now(),+ timezone_info=ZoneInfo("UTC"),+ )+def _calculate(self) -> LogsQueryResponse:response = execute_hogql_query(query_type="LogsQuery",@@ -149,11 +174,93 @@ class LogFacetValuesQueryRunner(AnalyticsQueryRunner[LogsQueryResponse], LogsQuedef to_query(self) -> ast.SelectQuery:if self.attribute_facet is not None:return self._attribute_query(self.attribute_facet)- return self._column_facet_query()+ if self._scoped_to_person_or_session:+ return self._column_facet_query_from_logs()+ return self._column_facet_query_from_rollup()++ def _column_facet_query_from_rollup(self) -> ast.SelectQuery:+ # This query sums log_count in the logs_volume_buckets rollup. A query on the logs table+ # reads each row in the range, and at scale it goes above the read limit.+ # The rollup has service_name and severity_text, so exclude_facet_field removes the filter+ # of this facet exactly. The rollup has no body, log attributes, or resource attributes, so+ # this query ignores these filters. When personId or sessionId is set, to_query() calls+ # _column_facet_query_from_logs, because the rollup has neither column.+ facet = ast.Field(chain=[cast(str, self.facet_field)])+ filter_builder = LogsFilterBuilder(+ self.query,+ self.team,+ self.query_date_range,+ exclude_facet_field=self.facet_field,+ )+ date_range = self._volume_buckets_query_date_range+ exprs: list[ast.Expr] = [+ # Floor the lower limit to the bucket that contains date_from. That bucket starts before+ # date_from, but it holds logs from after date_from. A bucket that starts before date_to+ # is in the range, so the upper limit needs no change.+ parse_expr(+ "time_bucket >= {date_from} AND time_bucket < {date_to}",+ placeholders={+ "date_from": date_range.date_from_to_start_of_interval_hogql(),+ "date_to": ast.Constant(value=date_range.date_to()),+ },+ ),+ ]+ if self.query.serviceNames and self.facet_field != "service_name":+ exprs.append(+ parse_expr(+ "service_name IN {serviceNames}",+ placeholders={+ "serviceNames": ast.Tuple(exprs=[ast.Constant(value=str(sn)) for sn in self.query.serviceNames])+ },+ )+ )+ if self.query.severityLevels and self.facet_field != "severity_text":+ exprs.append(+ parse_expr(+ "severity_text IN {severityLevels}",+ placeholders={+ "severityLevels": ast.Tuple(+ exprs=[ast.Constant(value=str(sl)) for sl in self.query.severityLevels]+ )+ },+ )+ )+ # The viewer also keeps level and service selections as `log` filters in filterGroup.+ # column_filter_exprs() removes the filter of this facet.+ exprs.extend(filter_builder.column_filter_exprs())+ if self.facet_search:+ exprs.append(+ parse_expr(+ "{facet} ILIKE {pattern}",+ placeholders={+ "facet": facet,+ # Escape %, _, and \ so that the search matches them as text, not as wildcards.+ "pattern": ast.Constant(value=ilike_pattern(self.facet_search)),+ },+ )+ )+ query = parse_select(+ """+ SELECT {facet} AS value, sum(log_count) AS count+ FROM posthog.logs_volume_buckets+ WHERE {where}+ GROUP BY {facet}+ ORDER BY sum(log_count) DESC, {facet} ASC+ LIMIT {limit}+ """,+ placeholders={+ "facet": facet,+ "where": ast.And(exprs=exprs),+ "limit": ast.Constant(value=self.query.limit or DEFAULT_FACET_LIMIT),+ },+ )+ assert isinstance(query, ast.SelectQuery)+ return query- def _column_facet_query(self) -> ast.SelectQuery:- # The day-precision time_bucket prune in where() is widened to exact timestamp bounds so the- # counts match the requested window (same half-open pattern as CountQueryRunner).+ def _column_facet_query_from_logs(self) -> ast.SelectQuery:+ # logs_volume_buckets has no personId or sessionId. Thus, for the person and session Logs+ # tabs, this query groups the logs table. The query reads only the lines of one person or+ # one session, not all the lines of the team.facet = ast.Field(chain=[cast(str, self.facet_field)])filter_builder = LogsFilterBuilder(self.query,@@ -177,7 +284,7 @@ class LogFacetValuesQueryRunner(AnalyticsQueryRunner[LogsQueryResponse], LogsQue"{facet} ILIKE {pattern}",placeholders={"facet": facet,- # Escape %, _ and \ so user input matches literally instead of as wildcards.+ # Escape %, _, and \ so that the search matches them as text, not as wildcards."pattern": ast.Constant(value=ilike_pattern(self.facet_search)),},)@@ -237,9 +344,9 @@ class LogFacetValuesQueryRunner(AnalyticsQueryRunner[LogsQueryResponse], LogsQuedate_range,exclude_resource_attribute=facet.key if facet.attribute_type == "resource" else None,)- # Level and service also arrive as `log` filters in filterGroup, which is where the viewer- # keeps a facet selection. Nothing is stripped here: an attribute facet never owns a column,- # and a column facet is served by _column_facet_query, which passes exclude_facet_field.+ # The viewer also keeps level and service selections as `log` filters in filterGroup.+ # This query removes none of these filters, because an attribute facet has no column.+ # The two column facet queries pass exclude_facet_field to remove their own filter.where_exprs.extend(filter_builder.column_filter_exprs())where_exprs.append(filter_builder.resource_filter(existing_filters=where_exprs))diff --git a/products/logs/backend/presentation/views/api.py b/products/logs/backend/presentation/views/api.pyindex d72cd38585fd..7ff642f2681f 100644--- a/products/logs/backend/presentation/views/api.py+++ b/products/logs/backend/presentation/views/api.py@@ -500,7 +500,11 @@ class _LogsFacetValuesBodySerializer(serializers.Serializer):required=False,allow_null=True,help_text="Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or "- "facetAttribute. Its own filter is excluded so counts reflect the other active filters.",+ "facetAttribute. Counts come from a rollup with 5-minute buckets, so the window widens to the buckets "+ "that contain date_from and date_to. The rollup honours severityLevels and serviceNames, but not body "+ "search, log-attribute filters, or resource-attribute filters. When personId or sessionId is set, counts "+ "come from the logs table with the exact window and every other filter. Both paths exclude this facet's "+ "own filter.",)facetResourceAttribute = serializers.CharField(required=False,diff --git a/products/logs/backend/test/test_log_facet_values.py b/products/logs/backend/test/test_log_facet_values.pyindex 637f76867f1b..65ce2ddeab22 100644--- a/products/logs/backend/test/test_log_facet_values.py+++ b/products/logs/backend/test/test_log_facet_values.py@@ -1,5 +1,7 @@import osimport json+import datetime as dt+from collections import Counterfrom posthog.test.base import APIBaseTest, ClickhouseTestMixin@@ -18,17 +20,37 @@ class TestLogFacetValues(ClickhouseTestMixin, APIBaseTest):def setUpTestData(cls):super().setUpTestData()+ log_items = []with open(os.path.join(os.path.dirname(__file__), "test_logs.jsonnd")) as f:- sql = ""for line in f:log_item = json.loads(line)log_item["team_id"] = cls.team.id- sql += json.dumps(log_item) + "\n"- sync_execute(f"""- INSERT INTO logs- FORMAT JSONEachRow- {sql}- """)+ log_items.append(log_item)++ sql = "\n".join(json.dumps(log_item) for log_item in log_items)+ sync_execute(f"""+ INSERT INTO logs+ FORMAT JSONEachRow+ {sql}+ """)++ # The severity_text and service_name facets read logs_volume_buckets, not the logs table.+ # See LogFacetValuesQueryRunner._column_facet_query_from_rollup. Make the rollup rows from+ # the same fixture, in 5-minute buckets, so that the two tables always agree.+ bucket_counts: Counter[tuple[int, dt.datetime, str, str]] = Counter()+ for log_item in log_items:+ timestamp = dt.datetime.fromisoformat(log_item["timestamp"]).replace(tzinfo=dt.UTC)+ time_bucket = timestamp.replace(minute=timestamp.minute - timestamp.minute % 5, second=0, microsecond=0)+ bucket_counts[(log_item["team_id"], time_bucket, log_item["service_name"], log_item["severity_text"])] += 1++ sync_execute(+ "INSERT INTO logs_volume_buckets "+ "(team_id, time_bucket, service_name, namespace, environment, severity_text, log_count) VALUES",+ [+ (team_id, time_bucket.replace(tzinfo=None), service_name, "", "", severity_text, count)+ for (team_id, time_bucket, service_name, severity_text), count in bucket_counts.items()+ ],+ )def _facet(self, facet_field: str, **filters) -> dict[str, int]:body = {"query": {"facetField": facet_field, "dateRange": self.DATE_RANGE, **filters}}@@ -75,6 +97,13 @@ class TestLogFacetValues(ClickhouseTestMixin, APIBaseTest):f"{other_filter_key} should re-scope {facet_field} counts",)+ def test_column_facet_keeps_the_bucket_that_contains_date_from(self):+ # The rollup has 5-minute buckets. A date_from inside a bucket must not drop that bucket, or+ # the counts lose up to 5 minutes of logs. Every fixture log in DATE_RANGE is at or after+ # 09:00, so a start of 09:02 must give the same counts as a start of 09:00.+ inside_bucket = {**self.DATE_RANGE, "date_from": "2025-12-16T09:02:00Z"}+ self.assertEqual(self._facet("severity_text", dateRange=inside_bucket), self._facet("severity_text"))+@parameterized.expand([("service_name", "aws"),diff --git a/products/logs/frontend/generated/api.schemas.ts b/products/logs/frontend/generated/api.schemas.tsindex 3540ffdf5175..760f9431c043 100644--- a/products/logs/frontend/generated/api.schemas.ts+++ b/products/logs/frontend/generated/api.schemas.ts@@ -1721,7 +1721,7 @@ export const FacetFieldEnumApi = {} as constexport interface _LogsFacetValuesBodyApi {- /** Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Its own filter is excluded so counts reflect the other active filters.+ /** Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Counts come from a rollup with 5-minute buckets, so the window widens to the buckets that contain date_from and date_to. The rollup honours severityLevels and serviceNames, but not body search, log-attribute filters, or resource-attribute filters. When personId or sessionId is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this facet's own filter.** * `severity_text` - severity_text* * `service_name` - service_name */diff --git a/products/logs/frontend/generated/api.zod.ts b/products/logs/frontend/generated/api.zod.tsindex 468bdbfc1f89..c335db318db1 100644--- a/products/logs/frontend/generated/api.zod.ts+++ b/products/logs/frontend/generated/api.zod.ts@@ -823,7 +823,7 @@ export const LogsFacetValuesCreateBody = /* @__PURE__ */ zod.object({]).optional().describe(- 'Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Its own filter is excluded so counts reflect the other active filters.\n\n\* `severity_text` - severity_text\n\* `service_name` - service_name'+ "Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Counts come from a rollup with 5-minute buckets, so the window widens to the buckets that contain date_from and date_to. The rollup honours severityLevels and serviceNames, but not body search, log-attribute filters, or resource-attribute filters. When personId or sessionId is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this facet's own filter.\n\n\* `severity_text` - severity_text\n\* `service_name` - service_name"),facetResourceAttribute: zod.string()diff --git a/products/logs/mcp/prompts/logs-facet-values.md b/products/logs/mcp/prompts/logs-facet-values.mdindex dca7f794373b..ae970dd86e16 100644--- a/products/logs/mcp/prompts/logs-facet-values.md+++ b/products/logs/mcp/prompts/logs-facet-values.md@@ -6,31 +6,31 @@ All parameters go inside `query` — top-level fields are rejected. Provide **ex{ "query": { "facetField": "service_name", "dateRange": { "date_from": "-1h" } } }```-Counts are cross-filtered: every active filter is applied _except the faceted field's own filter_, so you see the full distribution rather than collapsing to your own selection. Faceting `service_name` with `serviceNames: ["api"]` still returns every service, not just `api`.+Counts are cross-filtered: the faceted field's own filter is never applied, so you see the full distribution rather than collapsing to your own selection. Faceting `service_name` with `serviceNames: ["api"]` still returns every service, not just `api`. Which _other_ filters apply depends on the facet path; each parameter below says which it honors.# When to use-- To find how log volume is distributed across severity or service under a filter — e.g. "of the logs matching 'timeout', which services emit them?" Facet `service_name` with `searchTerm: "timeout"`.- As the drill-down loop for an investigation: facet `service_name` filtered to `severity=error` → find the hot service → add it to `serviceNames` → facet a resource attribute like `k8s.pod.name` → find the bad pod. Each call is one cheap aggregation that narrows the search space before you pull raw rows with `query-logs`.- To confirm the severity mix in a window before committing to a query: facet `severity_text`.+- To find how log volume is distributed across severity or service for one person's or session's logs — e.g. "which services logged for this session?" Facet `service_name` with `sessionId` set; unlike the general case this honors every other active filter, including `searchTerm`.## Pick the right tool- Counts for an arbitrary **attribute** value (any log or resource attribute key) → use `logs-attribute-values-list`. It returns `{value, count}` for any key and is the general-purpose choice for attributes.- Per-service log/error counts and error rates with a sparkline → use `logs-services-create`.-- Use **this** tool for `severity_text` / `service_name` distribution cross-filtered by the full query (severity + body `searchTerm` + `filterGroup`) — the one thing the tools above can't do.+- Use **this** tool for `severity_text` / `service_name` distribution cross-filtered by severity, service, and `filterGroup` — the one thing the tools above can't do. For body-search-filtered service/severity counts, scope to `personId`/`sessionId` (see below) or use `query-logs` directly.# Parameters## query.facetField-Top-level column to facet on: `severity_text` or `service_name`. Provide this OR `facetResourceAttribute`, not both. Counts are grouped on the raw logs table with all _other_ filters applied — so this path honors `severityLevels`, `serviceNames`, `searchTerm`, and `filterGroup`.+Top-level column to facet on: `severity_text` or `service_name`. Provide this OR `facetResourceAttribute`, not both. Counts come from a rollup with 5-minute buckets: the window widens to the buckets that contain `date_from` and `date_to`, and this path honors `severityLevels` and `serviceNames` but not `searchTerm`, log-attribute filters, or resource-attribute filters. When `personId` or `sessionId` is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this field's own filter.## query.facetResourceAttributeResource attribute key to facet on, e.g. `k8s.namespace.name`, `k8s.pod.name`, `host.name`. Provide this OR `facetField`, not both.-**Limitation:** this path is served from a pre-aggregated rollup that has no severity or body dimension. It honors only `serviceNames` and other resource-attribute filters — `severityLevels`, `searchTerm`, and log-attribute filters are **ignored**. If you need those applied, facet a column instead, or narrow with `logs-attribute-values-list`.+**Limitation:** this path is served from a pre-aggregated rollup that has no body dimension. It honors `severityLevels`, `serviceNames`, and other resource-attribute filters — `searchTerm` and log-attribute filters are **ignored**. No facet path applies those two filters to resource-attribute counts. If you need them, use `query-logs` and inspect the matching rows.## query.facetSearch@@ -45,7 +45,7 @@ Date range for the counts. Defaults to the last hour (`-1h`).## query.severityLevels-Filter by log severity: `trace`, `debug`, `info`, `warn`, `error`, `fatal`. Omit to include all levels. Ignored when faceting on `severity_text` (that field's own filter is excluded) and when faceting a resource attribute (rollup has no severity dimension).+Filter by log severity: `trace`, `debug`, `info`, `warn`, `error`, `fatal`. Omit to include all levels. Ignored when faceting on `severity_text` (that field's own filter is excluded).## query.serviceNames@@ -53,7 +53,7 @@ Filter by service names. Ignored when faceting on `service_name` (that field's o## query.searchTerm-Full-text search across log bodies. Ignored when faceting a resource attribute.+Full-text search across log bodies. Ignored when faceting a resource attribute, and ignored when faceting a column (`severity_text`/`service_name`) unless `personId` or `sessionId` is set.## query.filterGroup@@ -96,12 +96,13 @@ Property filters to narrow results. Same format as `query-logs` filters.}```-## Which services emit a specific error message+## Which services logged for a specific session```json{"query": {"facetField": "service_name",+ "sessionId": "0198f6c2-9a3b-7c9e-9e2e-6a1e8e6a9b3f","searchTerm": "connection reset","dateRange": { "date_from": "-1d" }}diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex ca7b9cfe6e4b..c3c7f8aae04b 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -8966,7 +8966,7 @@}},"logs-facet-values-create": {- "description": "Return per-value counts for a single facet — the distribution of a log dimension across a filter set, ordered by count descending. This is the cheap way to see the _shape_ of a log stream (e.g. \"which services produce the errors?\") without pulling raw rows.\n\nAll parameters go inside `query` — top-level fields are rejected. Provide **exactly one** of `query.facetField` or `query.facetResourceAttribute` — not both, not neither:\n\n```json\n{ \"query\": { \"facetField\": \"service_name\", \"dateRange\": { \"date_from\": \"-1h\" } } }\n```\n\nCounts are cross-filtered: every active filter is applied _except the faceted field's own filter_, so you see the full distribution rather than collapsing to your own selection. Faceting `service_name` with `serviceNames: [\"api\"]` still returns every service, not just `api`.\n\n# When to use\n\n- To find how log volume is distributed across severity or service under a filter — e.g. \"of the logs matching 'timeout', which services emit them?\" Facet `service_name` with `searchTerm: \"timeout\"`.\n- As the drill-down loop for an investigation: facet `service_name` filtered to `severity=error` → find the hot service → add it to `serviceNames` → facet a resource attribute like `k8s.pod.name` → find the bad pod. Each call is one cheap aggregation that narrows the search space before you pull raw rows with `query-logs`.\n- To confirm the severity mix in a window before committing to a query: facet `severity_text`.\n\n## Pick the right tool\n\n- Counts for an arbitrary **attribute** value (any log or resource attribute key) → use `logs-attribute-values-list`. It returns `{value, count}` for any key and is the general-purpose choice for attributes.\n- Per-service log/error counts and error rates with a sparkline → use `logs-services-create`.\n- Use **this** tool for `severity_text` / `service_name` distribution cross-filtered by the full query (severity + body `searchTerm` + `filterGroup`) — the one thing the tools above can't do.\n\n# Parameters\n\n## query.facetField\n\nTop-level column to facet on: `severity_text` or `service_name`. Provide this OR `facetResourceAttribute`, not both. Counts are grouped on the raw logs table with all _other_ filters applied — so this path honors `severityLevels`, `serviceNames`, `searchTerm`, and `filterGroup`.\n\n## query.facetResourceAttribute\n\nResource attribute key to facet on, e.g. `k8s.namespace.name`, `k8s.pod.name`, `host.name`. Provide this OR `facetField`, not both.\n\n**Limitation:** this path is served from a pre-aggregated rollup that has no severity or body dimension. It honors only `serviceNames` and other resource-attribute filters — `severityLevels`, `searchTerm`, and log-attribute filters are **ignored**. If you need those applied, facet a column instead, or narrow with `logs-attribute-values-list`.\n\n## query.facetSearch\n\nCase-insensitive substring match over the faceted field's _own_ values (e.g. return only service names containing `kafka`). Distinct from `searchTerm`, which searches log bodies. Use it to search past the 100-value result cap.\n\n## query.dateRange\n\nDate range for the counts. Defaults to the last hour (`-1h`).\n\n- `date_from`: Start of the range. ISO 8601 timestamps or relative formats: `-1h`, `-6h`, `-1d`, `-7d`.\n- `date_to`: End of the range. Same format. Omit or null for \"now\".\n\n## query.severityLevels\n\nFilter by log severity: `trace`, `debug`, `info`, `warn`, `error`, `fatal`. Omit to include all levels. Ignored when faceting on `severity_text` (that field's own filter is excluded) and when faceting a resource attribute (rollup has no severity dimension).\n\n## query.serviceNames\n\nFilter by service names. Ignored when faceting on `service_name` (that field's own filter is excluded).\n\n## query.searchTerm\n\nFull-text search across log bodies. Ignored when faceting a resource attribute.\n\n## query.filterGroup\n\nProperty filters to narrow results. Same format as `query-logs` filters.\n\n# Examples\n\n## Severity distribution in the last hour\n\n```json\n{\n \"query\": {\n \"facetField\": \"severity_text\",\n \"dateRange\": { \"date_from\": \"-1h\" }\n }\n}\n```\n\n## Which services produce errors over the last day\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"severityLevels\": [\"error\", \"fatal\"],\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```\n\n## Which pods a service's logs come from\n\n```json\n{\n \"query\": {\n \"facetResourceAttribute\": \"k8s.pod.name\",\n \"serviceNames\": [\"checkout\"],\n \"dateRange\": { \"date_from\": \"-6h\" }\n }\n}\n```\n\n## Which services emit a specific error message\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"searchTerm\": \"connection reset\",\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```",+ "description": "Return per-value counts for a single facet — the distribution of a log dimension across a filter set, ordered by count descending. This is the cheap way to see the _shape_ of a log stream (e.g. \"which services produce the errors?\") without pulling raw rows.\n\nAll parameters go inside `query` — top-level fields are rejected. Provide **exactly one** of `query.facetField` or `query.facetResourceAttribute` — not both, not neither:\n\n```json\n{ \"query\": { \"facetField\": \"service_name\", \"dateRange\": { \"date_from\": \"-1h\" } } }\n```\n\nCounts are cross-filtered: the faceted field's own filter is never applied, so you see the full distribution rather than collapsing to your own selection. Faceting `service_name` with `serviceNames: [\"api\"]` still returns every service, not just `api`. Which _other_ filters apply depends on the facet path; each parameter below says which it honors.\n\n# When to use\n\n- As the drill-down loop for an investigation: facet `service_name` filtered to `severity=error` → find the hot service → add it to `serviceNames` → facet a resource attribute like `k8s.pod.name` → find the bad pod. Each call is one cheap aggregation that narrows the search space before you pull raw rows with `query-logs`.\n- To confirm the severity mix in a window before committing to a query: facet `severity_text`.\n- To find how log volume is distributed across severity or service for one person's or session's logs — e.g. \"which services logged for this session?\" Facet `service_name` with `sessionId` set; unlike the general case this honors every other active filter, including `searchTerm`.\n\n## Pick the right tool\n\n- Counts for an arbitrary **attribute** value (any log or resource attribute key) → use `logs-attribute-values-list`. It returns `{value, count}` for any key and is the general-purpose choice for attributes.\n- Per-service log/error counts and error rates with a sparkline → use `logs-services-create`.\n- Use **this** tool for `severity_text` / `service_name` distribution cross-filtered by severity, service, and `filterGroup` — the one thing the tools above can't do. For body-search-filtered service/severity counts, scope to `personId`/`sessionId` (see below) or use `query-logs` directly.\n\n# Parameters\n\n## query.facetField\n\nTop-level column to facet on: `severity_text` or `service_name`. Provide this OR `facetResourceAttribute`, not both. Counts come from a rollup with 5-minute buckets: the window widens to the buckets that contain `date_from` and `date_to`, and this path honors `severityLevels` and `serviceNames` but not `searchTerm`, log-attribute filters, or resource-attribute filters. When `personId` or `sessionId` is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this field's own filter.\n\n## query.facetResourceAttribute\n\nResource attribute key to facet on, e.g. `k8s.namespace.name`, `k8s.pod.name`, `host.name`. Provide this OR `facetField`, not both.\n\n**Limitation:** this path is served from a pre-aggregated rollup that has no body dimension. It honors `severityLevels`, `serviceNames`, and other resource-attribute filters — `searchTerm` and log-attribute filters are **ignored**. No facet path applies those two filters to resource-attribute counts. If you need them, use `query-logs` and inspect the matching rows.\n\n## query.facetSearch\n\nCase-insensitive substring match over the faceted field's _own_ values (e.g. return only service names containing `kafka`). Distinct from `searchTerm`, which searches log bodies. Use it to search past the 100-value result cap.\n\n## query.dateRange\n\nDate range for the counts. Defaults to the last hour (`-1h`).\n\n- `date_from`: Start of the range. ISO 8601 timestamps or relative formats: `-1h`, `-6h`, `-1d`, `-7d`.\n- `date_to`: End of the range. Same format. Omit or null for \"now\".\n\n## query.severityLevels\n\nFilter by log severity: `trace`, `debug`, `info`, `warn`, `error`, `fatal`. Omit to include all levels. Ignored when faceting on `severity_text` (that field's own filter is excluded).\n\n## query.serviceNames\n\nFilter by service names. Ignored when faceting on `service_name` (that field's own filter is excluded).\n\n## query.searchTerm\n\nFull-text search across log bodies. Ignored when faceting a resource attribute, and ignored when faceting a column (`severity_text`/`service_name`) unless `personId` or `sessionId` is set.\n\n## query.filterGroup\n\nProperty filters to narrow results. Same format as `query-logs` filters.\n\n# Examples\n\n## Severity distribution in the last hour\n\n```json\n{\n \"query\": {\n \"facetField\": \"severity_text\",\n \"dateRange\": { \"date_from\": \"-1h\" }\n }\n}\n```\n\n## Which services produce errors over the last day\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"severityLevels\": [\"error\", \"fatal\"],\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```\n\n## Which pods a service's logs come from\n\n```json\n{\n \"query\": {\n \"facetResourceAttribute\": \"k8s.pod.name\",\n \"serviceNames\": [\"checkout\"],\n \"dateRange\": { \"date_from\": \"-6h\" }\n }\n}\n```\n\n## Which services logged for a specific session\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"sessionId\": \"0198f6c2-9a3b-7c9e-9e2e-6a1e8e6a9b3f\",\n \"searchTerm\": \"connection reset\",\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```","category": "Logs","feature": "logs","summary": "Facet log counts",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex c09a23eb5a41..ac3869f617d2 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -9345,7 +9345,7 @@}},"logs-facet-values-create": {- "description": "Return per-value counts for a single facet — the distribution of a log dimension across a filter set, ordered by count descending. This is the cheap way to see the _shape_ of a log stream (e.g. \"which services produce the errors?\") without pulling raw rows.\n\nAll parameters go inside `query` — top-level fields are rejected. Provide **exactly one** of `query.facetField` or `query.facetResourceAttribute` — not both, not neither:\n\n```json\n{ \"query\": { \"facetField\": \"service_name\", \"dateRange\": { \"date_from\": \"-1h\" } } }\n```\n\nCounts are cross-filtered: every active filter is applied _except the faceted field's own filter_, so you see the full distribution rather than collapsing to your own selection. Faceting `service_name` with `serviceNames: [\"api\"]` still returns every service, not just `api`.\n\n# When to use\n\n- To find how log volume is distributed across severity or service under a filter — e.g. \"of the logs matching 'timeout', which services emit them?\" Facet `service_name` with `searchTerm: \"timeout\"`.\n- As the drill-down loop for an investigation: facet `service_name` filtered to `severity=error` → find the hot service → add it to `serviceNames` → facet a resource attribute like `k8s.pod.name` → find the bad pod. Each call is one cheap aggregation that narrows the search space before you pull raw rows with `query-logs`.\n- To confirm the severity mix in a window before committing to a query: facet `severity_text`.\n\n## Pick the right tool\n\n- Counts for an arbitrary **attribute** value (any log or resource attribute key) → use `logs-attribute-values-list`. It returns `{value, count}` for any key and is the general-purpose choice for attributes.\n- Per-service log/error counts and error rates with a sparkline → use `logs-services-create`.\n- Use **this** tool for `severity_text` / `service_name` distribution cross-filtered by the full query (severity + body `searchTerm` + `filterGroup`) — the one thing the tools above can't do.\n\n# Parameters\n\n## query.facetField\n\nTop-level column to facet on: `severity_text` or `service_name`. Provide this OR `facetResourceAttribute`, not both. Counts are grouped on the raw logs table with all _other_ filters applied — so this path honors `severityLevels`, `serviceNames`, `searchTerm`, and `filterGroup`.\n\n## query.facetResourceAttribute\n\nResource attribute key to facet on, e.g. `k8s.namespace.name`, `k8s.pod.name`, `host.name`. Provide this OR `facetField`, not both.\n\n**Limitation:** this path is served from a pre-aggregated rollup that has no severity or body dimension. It honors only `serviceNames` and other resource-attribute filters — `severityLevels`, `searchTerm`, and log-attribute filters are **ignored**. If you need those applied, facet a column instead, or narrow with `logs-attribute-values-list`.\n\n## query.facetSearch\n\nCase-insensitive substring match over the faceted field's _own_ values (e.g. return only service names containing `kafka`). Distinct from `searchTerm`, which searches log bodies. Use it to search past the 100-value result cap.\n\n## query.dateRange\n\nDate range for the counts. Defaults to the last hour (`-1h`).\n\n- `date_from`: Start of the range. ISO 8601 timestamps or relative formats: `-1h`, `-6h`, `-1d`, `-7d`.\n- `date_to`: End of the range. Same format. Omit or null for \"now\".\n\n## query.severityLevels\n\nFilter by log severity: `trace`, `debug`, `info`, `warn`, `error`, `fatal`. Omit to include all levels. Ignored when faceting on `severity_text` (that field's own filter is excluded) and when faceting a resource attribute (rollup has no severity dimension).\n\n## query.serviceNames\n\nFilter by service names. Ignored when faceting on `service_name` (that field's own filter is excluded).\n\n## query.searchTerm\n\nFull-text search across log bodies. Ignored when faceting a resource attribute.\n\n## query.filterGroup\n\nProperty filters to narrow results. Same format as `query-logs` filters.\n\n# Examples\n\n## Severity distribution in the last hour\n\n```json\n{\n \"query\": {\n \"facetField\": \"severity_text\",\n \"dateRange\": { \"date_from\": \"-1h\" }\n }\n}\n```\n\n## Which services produce errors over the last day\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"severityLevels\": [\"error\", \"fatal\"],\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```\n\n## Which pods a service's logs come from\n\n```json\n{\n \"query\": {\n \"facetResourceAttribute\": \"k8s.pod.name\",\n \"serviceNames\": [\"checkout\"],\n \"dateRange\": { \"date_from\": \"-6h\" }\n }\n}\n```\n\n## Which services emit a specific error message\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"searchTerm\": \"connection reset\",\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```",+ "description": "Return per-value counts for a single facet — the distribution of a log dimension across a filter set, ordered by count descending. This is the cheap way to see the _shape_ of a log stream (e.g. \"which services produce the errors?\") without pulling raw rows.\n\nAll parameters go inside `query` — top-level fields are rejected. Provide **exactly one** of `query.facetField` or `query.facetResourceAttribute` — not both, not neither:\n\n```json\n{ \"query\": { \"facetField\": \"service_name\", \"dateRange\": { \"date_from\": \"-1h\" } } }\n```\n\nCounts are cross-filtered: the faceted field's own filter is never applied, so you see the full distribution rather than collapsing to your own selection. Faceting `service_name` with `serviceNames: [\"api\"]` still returns every service, not just `api`. Which _other_ filters apply depends on the facet path; each parameter below says which it honors.\n\n# When to use\n\n- As the drill-down loop for an investigation: facet `service_name` filtered to `severity=error` → find the hot service → add it to `serviceNames` → facet a resource attribute like `k8s.pod.name` → find the bad pod. Each call is one cheap aggregation that narrows the search space before you pull raw rows with `query-logs`.\n- To confirm the severity mix in a window before committing to a query: facet `severity_text`.\n- To find how log volume is distributed across severity or service for one person's or session's logs — e.g. \"which services logged for this session?\" Facet `service_name` with `sessionId` set; unlike the general case this honors every other active filter, including `searchTerm`.\n\n## Pick the right tool\n\n- Counts for an arbitrary **attribute** value (any log or resource attribute key) → use `logs-attribute-values-list`. It returns `{value, count}` for any key and is the general-purpose choice for attributes.\n- Per-service log/error counts and error rates with a sparkline → use `logs-services-create`.\n- Use **this** tool for `severity_text` / `service_name` distribution cross-filtered by severity, service, and `filterGroup` — the one thing the tools above can't do. For body-search-filtered service/severity counts, scope to `personId`/`sessionId` (see below) or use `query-logs` directly.\n\n# Parameters\n\n## query.facetField\n\nTop-level column to facet on: `severity_text` or `service_name`. Provide this OR `facetResourceAttribute`, not both. Counts come from a rollup with 5-minute buckets: the window widens to the buckets that contain `date_from` and `date_to`, and this path honors `severityLevels` and `serviceNames` but not `searchTerm`, log-attribute filters, or resource-attribute filters. When `personId` or `sessionId` is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this field's own filter.\n\n## query.facetResourceAttribute\n\nResource attribute key to facet on, e.g. `k8s.namespace.name`, `k8s.pod.name`, `host.name`. Provide this OR `facetField`, not both.\n\n**Limitation:** this path is served from a pre-aggregated rollup that has no body dimension. It honors `severityLevels`, `serviceNames`, and other resource-attribute filters — `searchTerm` and log-attribute filters are **ignored**. No facet path applies those two filters to resource-attribute counts. If you need them, use `query-logs` and inspect the matching rows.\n\n## query.facetSearch\n\nCase-insensitive substring match over the faceted field's _own_ values (e.g. return only service names containing `kafka`). Distinct from `searchTerm`, which searches log bodies. Use it to search past the 100-value result cap.\n\n## query.dateRange\n\nDate range for the counts. Defaults to the last hour (`-1h`).\n\n- `date_from`: Start of the range. ISO 8601 timestamps or relative formats: `-1h`, `-6h`, `-1d`, `-7d`.\n- `date_to`: End of the range. Same format. Omit or null for \"now\".\n\n## query.severityLevels\n\nFilter by log severity: `trace`, `debug`, `info`, `warn`, `error`, `fatal`. Omit to include all levels. Ignored when faceting on `severity_text` (that field's own filter is excluded).\n\n## query.serviceNames\n\nFilter by service names. Ignored when faceting on `service_name` (that field's own filter is excluded).\n\n## query.searchTerm\n\nFull-text search across log bodies. Ignored when faceting a resource attribute, and ignored when faceting a column (`severity_text`/`service_name`) unless `personId` or `sessionId` is set.\n\n## query.filterGroup\n\nProperty filters to narrow results. Same format as `query-logs` filters.\n\n# Examples\n\n## Severity distribution in the last hour\n\n```json\n{\n \"query\": {\n \"facetField\": \"severity_text\",\n \"dateRange\": { \"date_from\": \"-1h\" }\n }\n}\n```\n\n## Which services produce errors over the last day\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"severityLevels\": [\"error\", \"fatal\"],\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```\n\n## Which pods a service's logs come from\n\n```json\n{\n \"query\": {\n \"facetResourceAttribute\": \"k8s.pod.name\",\n \"serviceNames\": [\"checkout\"],\n \"dateRange\": { \"date_from\": \"-6h\" }\n }\n}\n```\n\n## Which services logged for a specific session\n\n```json\n{\n \"query\": {\n \"facetField\": \"service_name\",\n \"sessionId\": \"0198f6c2-9a3b-7c9e-9e2e-6a1e8e6a9b3f\",\n \"searchTerm\": \"connection reset\",\n \"dateRange\": { \"date_from\": \"-1d\" }\n }\n}\n```","category": "Logs","feature": "logs","summary": "Facet log counts",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 17fdc56b2709..15af28acba46 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -111233,7 +111233,7 @@ export namespace Schemas {}export interface _LogsFacetValuesBody {- /** Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Its own filter is excluded so counts reflect the other active filters.+ /** Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Counts come from a rollup with 5-minute buckets, so the window widens to the buckets that contain date_from and date_to. The rollup honours severityLevels and serviceNames, but not body search, log-attribute filters, or resource-attribute filters. When personId or sessionId is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this facet's own filter.** * `severity_text` - severity_text* * `service_name` - service_name */diff --git a/services/mcp/src/generated/logs/api.ts b/services/mcp/src/generated/logs/api.tsindex b29c7850afec..15565bb130e7 100644--- a/services/mcp/src/generated/logs/api.ts+++ b/services/mcp/src/generated/logs/api.ts@@ -5853,7 +5853,7 @@ export const LogsFacetValuesCreateBody = () => zod.object({]).optional().describe(- 'Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Its own filter is excluded so counts reflect the other active filters.\n\n\* `severity_text` - severity_text\n\* `service_name` - service_name'+ "Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Counts come from a rollup with 5-minute buckets, so the window widens to the buckets that contain date_from and date_to. The rollup honours severityLevels and serviceNames, but not body search, log-attribute filters, or resource-attribute filters. When personId or sessionId is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this facet's own filter.\n\n\* `severity_text` - severity_text\n\* `service_name` - service_name"),facetResourceAttribute: zod.string()diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-facet-values-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-facet-values-create.jsonindex 0fe20955fb5a..6c58dc6ea310 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-facet-values-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-facet-values-create.json@@ -54,7 +54,7 @@"type": "null"}],- "description": "Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Its own filter is excluded so counts reflect the other active filters.\n\n* `severity_text` - severity_text\n* `service_name` - service_name"+ "description": "Top-level column to facet on. Provide exactly one of facetField, facetResourceAttribute or facetAttribute. Counts come from a rollup with 5-minute buckets, so the window widens to the buckets that contain date_from and date_to. The rollup honours severityLevels and serviceNames, but not body search, log-attribute filters, or resource-attribute filters. When personId or sessionId is set, counts come from the logs table with the exact window and every other filter. Both paths exclude this facet's own filter.\n\n* `severity_text` - severity_text\n* `service_name` - service_name"},"facetResourceAttribute": {"anyOf": [