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): add pattern as a column type in the logs table (#90120)

Jon McCallum05694085b777
diff --git a/products/logs/backend/presentation/views/views_api.py b/products/logs/backend/presentation/views/views_api.py
index 6a82fba17271..5444c58fb06c 100644
--- a/products/logs/backend/presentation/views/views_api.py
+++ b/products/logs/backend/presentation/views/views_api.py
@@ -17,6 +17,7 @@ class LogsViewColumnType(models.TextChoices):
SOURCE = "source", "source"
TRACE_ID = "trace_id", "trace_id"
SPAN_ID = "span_id", "span_id"
+ PATTERN = "pattern", "pattern"
MESSAGE = "message", "message"
CUSTOM = "custom", "custom"
@@ -27,7 +28,10 @@ class LogsViewColumnSerializer(serializers.Serializer):
)
type = serializers.ChoiceField(
choices=LogsViewColumnType.choices,
- help_text="Column type. Built-in types resolve client-side from log row fields; `custom` columns are computed server-side from `expression`.",
+ help_text=(
+ "Column type. Most built-in types resolve client-side from log row fields; `pattern` and `custom` "
+ "columns are computed server-side, the latter from `expression`."
+ ),
)
# Optional keys are omitted (not null) so the stored JSON round-trips the client shape exactly
name = serializers.CharField(
diff --git a/products/logs/backend/test/test_custom_columns.py b/products/logs/backend/test/test_custom_columns.py
index b60761c937e5..16882028c617 100644
--- a/products/logs/backend/test/test_custom_columns.py
+++ b/products/logs/backend/test/test_custom_columns.py
@@ -51,13 +51,18 @@ class TestLogsCustomColumns(ClickhouseTestMixin, APIBaseTest):
# drifts off the fixed column count, or if either resolution tier breaks.
shorthand = "resource_attributes.k8s.container.name"
expression = "upper(service_name)"
- response = self._run([shorthand, expression])
+ # `pattern` backs the built-in Pattern column, which rides this same wire mechanism.
+ response = self._run([shorthand, expression, "pattern"])
- self.assertEqual(response.columns, [canonical_key(shorthand), canonical_key(expression)])
+ self.assertEqual(
+ response.columns, [canonical_key(shorthand), canonical_key(expression), canonical_key("pattern")]
+ )
self.assertEqual(len(response.results), 1)
row = response.results[0]
self.assertEqual(row[canonical_key(shorthand)], "argo-rollouts-dashboard")
self.assertEqual(row[canonical_key(expression)], "ARGO-ROLLOUTS")
+ # Empty rather than absent: the fixture predates pattern mining, but the field must resolve.
+ self.assertEqual(row[canonical_key("pattern")], "")
def test_no_custom_columns_leaves_columns_null(self):
# The frontend keys off a null `columns` to decide there are no custom columns to render.
diff --git a/products/logs/frontend/components/LogsViewer/config/columns.test.ts b/products/logs/frontend/components/LogsViewer/config/columns.test.ts
index 4f5db77dcdb8..4df7ba4fd78f 100644
--- a/products/logs/frontend/components/LogsViewer/config/columns.test.ts
+++ b/products/logs/frontend/components/LogsViewer/config/columns.test.ts
@@ -4,20 +4,31 @@ import { columnsToCustomColumns, LogsColumnConfig, migrateAttributeColumns, norm
describe('logs column config', () => {
describe('columnsToCustomColumns', () => {
- it('lowers only custom columns, in order, and never sends built-ins', () => {
+ it('lowers server-computed columns, in order, and never sends client-side built-ins', () => {
const columns: LogsColumnConfig[] = [
{ id: 'timestamp', type: 'timestamp' },
{ id: 'a', type: 'custom', expression: 'attributes.http.url' },
{ id: 'level', type: 'level' },
+ // Pattern lives only on the table, so it rides the wire like a custom column
+ { id: 'pattern', type: 'pattern' },
{ id: 'b', type: 'custom', expression: ' upper(level) ' },
{ id: 'message', type: 'message' },
]
- expect(columnsToCustomColumns(columns)).toEqual(['attributes.http.url', 'upper(level)'])
+ expect(columnsToCustomColumns(columns)).toEqual(['attributes.http.url', 'pattern', 'upper(level)'])
+ })
+
+ it('deduplicates repeated expressions, which the server would reject as a redefined alias', () => {
+ const columns: LogsColumnConfig[] = [
+ { id: 'p1', type: 'pattern' },
+ { id: 'p2', type: 'pattern' },
+ { id: 'c', type: 'custom', expression: 'pattern' },
+ ]
+ expect(columnsToCustomColumns(columns)).toEqual(['pattern'])
})
it.each<[string, LogsColumnConfig[]]>([
['no columns', []],
- ['built-ins only', [{ id: 'timestamp', type: 'timestamp' }]],
+ ['client-side built-ins only', [{ id: 'timestamp', type: 'timestamp' }]],
['custom with blank expression', [{ id: 'x', type: 'custom', expression: ' ' }]],
['custom with no expression', [{ id: 'x', type: 'custom' }]],
])('returns undefined (not []) for %s, keeping query payloads cache-identical', (_, columns) => {
diff --git a/products/logs/frontend/components/LogsViewer/config/columns.ts b/products/logs/frontend/components/LogsViewer/config/columns.ts
index dbc012511320..854c597f2861 100644
--- a/products/logs/frontend/components/LogsViewer/config/columns.ts
+++ b/products/logs/frontend/components/LogsViewer/config/columns.ts
@@ -4,7 +4,15 @@ import { LogsQuery } from '~/queries/schema/schema-general'
import { AttributeColumnConfig, ParsedLogMessage } from 'products/logs/frontend/types'
-export type LogsColumnType = 'timestamp' | 'level' | 'source' | 'trace_id' | 'span_id' | 'message' | 'custom'
+export type LogsColumnType =
+ | 'timestamp'
+ | 'level'
+ | 'source'
+ | 'trace_id'
+ | 'span_id'
+ | 'pattern'
+ | 'message'
+ | 'custom'
export interface LogsColumnConfig {
/** Stable identity for list operations (React keys, reorder). Never sent to the server. */
@@ -23,18 +31,24 @@ export interface LogsColumnConfig {
interface BuiltInColumnDef {
label: string
- getValue: (log: ParsedLogMessage) => string
+ /** Reads the value off the row. Absent when the value only exists server-side (see `expression`). */
+ getValue?: (log: ParsedLogMessage) => string
+ /** HogQL the server computes for this column, for values a log row does not carry. */
+ expression?: string
}
-// Built-in column types resolve client-side from fields every log row already carries —
+// Most built-in column types resolve client-side from fields every log row already carries —
// they never hit the wire. `source` has no top-level row field; the service name rides in
-// resource_attributes per OTel convention.
+// resource_attributes per OTel convention. `pattern` is the exception: it is a table column the
+// row payload leaves out, so it rides the same wire mechanism as custom columns and is only
+// fetched while the column is on screen.
export const LOGS_COLUMN_REGISTRY: Record<Exclude<LogsColumnType, 'custom'>, BuiltInColumnDef> = {
timestamp: { label: 'Timestamp', getValue: (log) => log.timestamp },
level: { label: 'Level', getValue: (log) => log.severity_text },
source: { label: 'Source', getValue: (log) => String(log.resource_attributes?.['service.name'] ?? '') },
trace_id: { label: 'Trace ID', getValue: (log) => log.trace_id },
span_id: { label: 'Span ID', getValue: (log) => log.span_id },
+ pattern: { label: 'Pattern', expression: 'pattern' },
message: { label: 'Message', getValue: (log) => log.body },
}
@@ -75,12 +89,24 @@ export function columnLabel(column: LogsColumnConfig): string {
return column.type === 'custom' ? (column.expression ?? '') : LOGS_COLUMN_REGISTRY[column.type].label
}
-/** Lower a column list to the `LogsQuery.customColumns` wire value. Built-ins never hit the wire. */
+/**
+ * The HogQL the server must compute for a column, or undefined when the row already carries
+ * the value. Keys the server's returned alias, so the wire list and the cell lookup stay in step.
+ */
+export function columnExpression(column: LogsColumnConfig): string | undefined {
+ const expression = column.type === 'custom' ? column.expression : LOGS_COLUMN_REGISTRY[column.type].expression
+ return expression?.trim() || undefined
+}
+
+/** Lower a column list to the `LogsQuery.customColumns` wire value. Client-side built-ins never hit the wire. */
export function columnsToCustomColumns(columns: LogsColumnConfig[]): LogsQuery['customColumns'] {
- const expressions = columns
- .map((column) => (column.type === 'custom' ? column.expression?.trim() : undefined))
- .filter((expression): expression is string => !!expression)
- // Undefined (not []) when there are no custom columns, so the query payload is
+ // Deduplicated: the server aliases each expression by its hash, so sending one twice would
+ // define the same alias twice and fail the whole query. Two columns sharing an expression
+ // (two Pattern columns, or Pattern next to a hand-written `pattern`) read the same alias.
+ const expressions = [
+ ...new Set(columns.map(columnExpression).filter((expression): expression is string => !!expression)),
+ ]
+ // Undefined (not []) when there are no server-computed columns, so the query payload is
// byte-identical to a pre-custom-columns query and cache keys are unaffected.
return expressions.length > 0 ? expressions : undefined
}
diff --git a/products/logs/frontend/components/VirtualizedLogsList/VirtualizedLogsList.tsx b/products/logs/frontend/components/VirtualizedLogsList/VirtualizedLogsList.tsx
index aa37f2a24548..b10ee4f3bf83 100644
--- a/products/logs/frontend/components/VirtualizedLogsList/VirtualizedLogsList.tsx
+++ b/products/logs/frontend/components/VirtualizedLogsList/VirtualizedLogsList.tsx
@@ -12,7 +12,7 @@ import { AutoSizer } from 'lib/components/AutoSizer'
import { SizeProps } from 'lib/components/AutoSizer/AutoSizer'
import { TZLabelProps } from 'lib/components/TZLabel'
-import { isPinnedColumn } from 'products/logs/frontend/components/LogsViewer/config/columns'
+import { columnExpression, isPinnedColumn } from 'products/logs/frontend/components/LogsViewer/config/columns'
import { logsViewerDataLogic } from 'products/logs/frontend/components/LogsViewer/data/logsViewerDataLogic'
import { logDetailsModalLogic } from 'products/logs/frontend/components/LogsViewer/LogDetailsModal/logDetailsModalLogic'
import { logsViewerLogic } from 'products/logs/frontend/components/LogsViewer/logsViewerLogic'
@@ -202,12 +202,19 @@ export function VirtualizedLogsList({
const { customColumnAliases } = useValues(logsViewerDataLogic({ id }))
- // Server aliases are keyed by the expression that produced them, so map each custom column
- // to its alias by expression. This stays correct when columns are reordered without a re-fetch.
- const aliasById = useMemo(() => {
- const customConfigs = columnConfigs.filter((config) => config.type === 'custom' && !!config.expression?.trim())
- return new Map(customConfigs.map((config) => [config.id, customColumnAliases?.[config.expression!.trim()]]))
- }, [columnConfigs, customColumnAliases])
+ // Server aliases are keyed by the expression that produced them, so map each server-computed
+ // column to its alias by expression. This stays correct when columns are reordered without a
+ // re-fetch.
+ const aliasById = useMemo(
+ () =>
+ new Map(
+ columnConfigs.flatMap((config) => {
+ const expression = columnExpression(config)
+ return expression ? [[config.id, customColumnAliases?.[expression]] as const] : []
+ })
+ ),
+ [columnConfigs, customColumnAliases]
+ )
// Columns memoized on structural deps only — per-row state (selection,
// expansion, prettify) is read from kea inside cell components. Everything after the
diff --git a/products/logs/frontend/components/VirtualizedLogsList/columnDefinitions.tsx b/products/logs/frontend/components/VirtualizedLogsList/columnDefinitions.tsx
index 5e6c34be38d5..1cf23e8b0432 100644
--- a/products/logs/frontend/components/VirtualizedLogsList/columnDefinitions.tsx
+++ b/products/logs/frontend/components/VirtualizedLogsList/columnDefinitions.tsx
@@ -14,6 +14,7 @@ import { LogMessage } from '~/queries/schema/schema-general'
import {
LOGS_COLUMN_REGISTRY,
LogsColumnConfig,
+ LogsColumnType,
columnLabel,
} from 'products/logs/frontend/components/LogsViewer/config/columns'
import { logsViewerLogic } from 'products/logs/frontend/components/LogsViewer/logsViewerLogic'
@@ -26,6 +27,7 @@ import {
MAX_ATTRIBUTE_COLUMN_WIDTH,
MESSAGE_MIN_WIDTH,
MIN_ATTRIBUTE_COLUMN_WIDTH,
+ PATTERN_WIDTH,
RESIZER_HANDLE_WIDTH,
SEVERITY_WIDTH,
TIMESTAMP_WIDTH,
@@ -164,7 +166,14 @@ export interface ConfiguredColumnRendering {
flexWidthRef: RefObject<number | undefined | null>
}
-/** Read a server-computed custom column value off the raw row by its canonical alias. */
+// Starting width per column type, before any user resize. Types left out start at the
+// attribute default.
+const DEFAULT_COLUMN_WIDTHS: Partial<Record<LogsColumnType, number>> = {
+ timestamp: TIMESTAMP_WIDTH,
+ pattern: PATTERN_WIDTH,
+}
+
+/** Read a server-computed column value off the raw row by its canonical alias. */
function customColumnValue(log: ParsedLogMessage, alias: string | undefined): string {
if (!alias) {
return ''
@@ -293,10 +302,13 @@ export function createConfiguredColumn(params: {
}
}
- const width = config.width ?? (config.type === 'timestamp' ? TIMESTAMP_WIDTH : DEFAULT_ATTRIBUTE_COLUMN_WIDTH)
+ const width = config.width ?? DEFAULT_COLUMN_WIDTHS[config.type] ?? DEFAULT_ATTRIBUTE_COLUMN_WIDTH
const totalWidth = width + RESIZER_HANDLE_WIDTH
const semanticKey = config.type === 'custom' ? (config.name ?? config.expression ?? '') : config.type
+ // Columns the server computes (custom, and built-ins like `pattern`) read their value off the
+ // aliased result; the rest read it straight off the row.
+ const getBuiltInValue = config.type === 'custom' ? undefined : LOGS_COLUMN_REGISTRY[config.type].getValue
const renderValue =
config.type === 'timestamp'
? (log: ParsedLogMessage): JSX.Element => (
@@ -309,11 +321,7 @@ export function createConfiguredColumn(params: {
: (log: ParsedLogMessage): JSX.Element => (
<AttributeCell
attributeKey={semanticKey}
- value={
- config.type === 'custom'
- ? customColumnValue(log, alias)
- : LOGS_COLUMN_REGISTRY[config.type].getValue(log)
- }
+ value={getBuiltInValue ? getBuiltInValue(log) : customColumnValue(log, alias)}
width={totalWidth}
timestamp={log.timestamp}
/>
diff --git a/products/logs/frontend/components/VirtualizedLogsList/layoutUtils.ts b/products/logs/frontend/components/VirtualizedLogsList/layoutUtils.ts
index 8c7bf471fd7c..b7c0a416b379 100644
--- a/products/logs/frontend/components/VirtualizedLogsList/layoutUtils.ts
+++ b/products/logs/frontend/components/VirtualizedLogsList/layoutUtils.ts
@@ -15,6 +15,9 @@ export const SEVERITY_WIDTH = 8
export const CHECKBOX_WIDTH = 28
export const EXPAND_WIDTH = 28
export const TIMESTAMP_WIDTH = 180
+// A pattern is a whole message line with its variable parts masked, so it starts much wider
+// than an attribute value.
+export const PATTERN_WIDTH = 400
export const MESSAGE_MIN_WIDTH = 300
export const LOG_ROW_FAB_WIDTH = 150
export const ROW_GAP = 8
diff --git a/products/logs/frontend/generated/api.schemas.ts b/products/logs/frontend/generated/api.schemas.ts
index 34bf8b932f18..04491553f5fa 100644
--- a/products/logs/frontend/generated/api.schemas.ts
+++ b/products/logs/frontend/generated/api.schemas.ts
@@ -2444,6 +2444,7 @@ export interface _LogsValuesResponseApi {
* * `source` - source
* * `trace_id` - trace_id
* * `span_id` - span_id
+ * * `pattern` - pattern
* * `message` - message
* * `custom` - custom
*/
@@ -2455,6 +2456,7 @@ export const LogsViewColumnTypeEnumApi = {
Source: 'source',
TraceId: 'trace_id',
SpanId: 'span_id',
+ Pattern: 'pattern',
Message: 'message',
Custom: 'custom',
} as const
@@ -2462,13 +2464,14 @@ export const LogsViewColumnTypeEnumApi = {
export interface LogsViewColumnApi {
/** Client-generated stable identity for list operations (React keys, reorder). Never interpreted by the server. */
id: string
- /** Column type. Built-in types resolve client-side from log row fields; `custom` columns are computed server-side from `expression`.
+ /** Column type. Most built-in types resolve client-side from log row fields; `pattern` and `custom` columns are computed server-side, the latter from `expression`.
*
* * `timestamp` - timestamp
* * `level` - level
* * `source` - source
* * `trace_id` - trace_id
* * `span_id` - span_id
+ * * `pattern` - pattern
* * `message` - message
* * `custom` - custom */
type: LogsViewColumnTypeEnumApi
diff --git a/products/logs/frontend/generated/api.zod.ts b/products/logs/frontend/generated/api.zod.ts
index 68b8de29c44a..77db6333a258 100644
--- a/products/logs/frontend/generated/api.zod.ts
+++ b/products/logs/frontend/generated/api.zod.ts
@@ -1950,12 +1950,12 @@ export const LogsViewsCreateBody = /* @__PURE__ */ zod.object({
'Client-generated stable identity for list operations (React keys, reorder). Never interpreted by the server.'
),
type: zod
- .enum(['timestamp', 'level', 'source', 'trace_id', 'span_id', 'message', 'custom'])
+ .enum(['timestamp', 'level', 'source', 'trace_id', 'span_id', 'pattern', 'message', 'custom'])
.describe(
- '\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `message` - message\n\* `custom` - custom'
+ '\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `pattern` - pattern\n\* `message` - message\n\* `custom` - custom'
)
.describe(
- 'Column type. Built-in types resolve client-side from log row fields; `custom` columns are computed server-side from `expression`.\n\n\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `message` - message\n\* `custom` - custom'
+ 'Column type. Most built-in types resolve client-side from log row fields; `pattern` and `custom` columns are computed server-side, the latter from `expression`.\n\n\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `pattern` - pattern\n\* `message` - message\n\* `custom` - custom'
),
name: zod
.string()
@@ -2007,12 +2007,12 @@ export const LogsViewsUpdateBody = /* @__PURE__ */ zod.object({
'Client-generated stable identity for list operations (React keys, reorder). Never interpreted by the server.'
),
type: zod
- .enum(['timestamp', 'level', 'source', 'trace_id', 'span_id', 'message', 'custom'])
+ .enum(['timestamp', 'level', 'source', 'trace_id', 'span_id', 'pattern', 'message', 'custom'])
.describe(
- '\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `message` - message\n\* `custom` - custom'
+ '\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `pattern` - pattern\n\* `message` - message\n\* `custom` - custom'
)
.describe(
- 'Column type. Built-in types resolve client-side from log row fields; `custom` columns are computed server-side from `expression`.\n\n\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `message` - message\n\* `custom` - custom'
+ 'Column type. Most built-in types resolve client-side from log row fields; `pattern` and `custom` columns are computed server-side, the latter from `expression`.\n\n\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `pattern` - pattern\n\* `message` - message\n\* `custom` - custom'
),
name: zod
.string()
@@ -2064,12 +2064,12 @@ export const LogsViewsPartialUpdateBody = /* @__PURE__ */ zod.object({
'Client-generated stable identity for list operations (React keys, reorder). Never interpreted by the server.'
),
type: zod
- .enum(['timestamp', 'level', 'source', 'trace_id', 'span_id', 'message', 'custom'])
+ .enum(['timestamp', 'level', 'source', 'trace_id', 'span_id', 'pattern', 'message', 'custom'])
.describe(
- '\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `message` - message\n\* `custom` - custom'
+ '\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `pattern` - pattern\n\* `message` - message\n\* `custom` - custom'
)
.describe(
- 'Column type. Built-in types resolve client-side from log row fields; `custom` columns are computed server-side from `expression`.\n\n\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `message` - message\n\* `custom` - custom'
+ 'Column type. Most built-in types resolve client-side from log row fields; `pattern` and `custom` columns are computed server-side, the latter from `expression`.\n\n\* `timestamp` - timestamp\n\* `level` - level\n\* `source` - source\n\* `trace_id` - trace_id\n\* `span_id` - span_id\n\* `pattern` - pattern\n\* `message` - message\n\* `custom` - custom'
),
name: zod
.string()
diff --git a/products/posthog_ai/skills/querying-posthog-data/references/models-logs.md b/products/posthog_ai/skills/querying-posthog-data/references/models-logs.md
index 9a9a97c184a2..92f3a44608e1 100644
--- a/products/posthog_ai/skills/querying-posthog-data/references/models-logs.md
+++ b/products/posthog_ai/skills/querying-posthog-data/references/models-logs.md
@@ -26,6 +26,7 @@ OpenTelemetry log entries. One row per log line. Backed by ClickHouse `logs_dist
| `resource_fingerprint` | UInt64 | Hash of `resource_attributes` |
| `instrumentation_scope` | String | Instrumentation library |
| `event_name` | String | OTel event name (often empty) |
+| `pattern` | String | Mined message template with the variable parts masked; empty when no pattern was mined |
| `time_bucket` | DateTime | `toStartOfDay(timestamp)` |
| `timestamp` | DateTime64(9) | Log time |
| `observed_timestamp` | DateTime64(9) | Ingest time |
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index bd14df537a5c..40b1f00307a9 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -49054,6 +49054,7 @@ export namespace Schemas {
* * `source` - source
* * `trace_id` - trace_id
* * `span_id` - span_id
+ * * `pattern` - pattern
* * `message` - message
* * `custom` - custom
*/
@@ -49066,6 +49067,7 @@ export namespace Schemas {
Source: 'source',
TraceId: 'trace_id',
SpanId: 'span_id',
+ Pattern: 'pattern',
Message: 'message',
Custom: 'custom',
} as const;
@@ -49073,13 +49075,14 @@ export namespace Schemas {
export interface LogsViewColumn {
/** Client-generated stable identity for list operations (React keys, reorder). Never interpreted by the server. */
id: string;
- /** Column type. Built-in types resolve client-side from log row fields; `custom` columns are computed server-side from `expression`.
+ /** Column type. Most built-in types resolve client-side from log row fields; `pattern` and `custom` columns are computed server-side, the latter from `expression`.
*
* * `timestamp` - timestamp
* * `level` - level
* * `source` - source
* * `trace_id` - trace_id
* * `span_id` - span_id
+ * * `pattern` - pattern
* * `message` - message
* * `custom` - custom */
type: LogsViewColumnTypeEnum;