Skip to content

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

feat(logs): expose severity_text on the log_attributes HogQL table (#70635)

Frank Hamand1bdfc6cbe638
diff --git a/posthog/hogql/database/schema/logs.py b/posthog/hogql/database/schema/logs.py
index 554801f2e0f4..f7c380ac40f1 100644
--- a/posthog/hogql/database/schema/logs.py
+++ b/posthog/hogql/database/schema/logs.py
@@ -124,6 +124,11 @@ class LogAttributesTable(Table):
"service_name": StringDatabaseField(
name="service_name", nullable=False, description="Service the attribute counts are scoped to."
),
+ "severity_text": StringDatabaseField(
+ name="severity_text",
+ nullable=False,
+ description="OpenTelemetry severity text the attribute counts are scoped to, e.g. 'INFO', 'ERROR'.",
+ ),
}
def to_printed_clickhouse(self, context):