Skip to main content
PUT
Error

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de ruta

id
string
requerido

Source ID

Cuerpo

application/json
name
string
requerido

Display name for the source.

Ejemplo:

"Logs"

kind
enum<string>
requerido

Source kind discriminator. Must be "log" for log sources.

Opciones disponibles:
log
Ejemplo:

"log"

connection
string
requerido

ID of the ClickHouse connection used by this source.

Ejemplo:

"507f1f77bcf86cd799439012"

from
object
requerido

Database and table location of the source data.

defaultTableSelectExpression
string
requerido

Default columns selected in search results (this can be customized per search later)

Ejemplo:

"Timestamp, ServiceName, SeverityText, Body"

timestampValueExpression
string
requerido

DateTime column or expression that is part of your table's primary key.

Ejemplo:

"Timestamp"

section
string

Optional grouping label used to organize sources in the source selector. Sources that share a section value are displayed together.

Maximum string length: 256
Ejemplo:

"Billing"

disabled
boolean | null

When true, the source is hidden from source selectors in the UI. Defaults to false.

Ejemplo:

false

querySettings
object[] | null

Optional ClickHouse query settings applied when querying this source.

serviceNameExpression
string | null

Expression to extract the service name from log rows.

Ejemplo:

"ServiceName"

severityTextExpression
string | null

Expression to extract the severity/log level text.

Ejemplo:

"SeverityText"

bodyExpression
string | null

Expression to extract the log message body.

Ejemplo:

"Body"

eventAttributesExpression
string | null

Expression to extract event-level attributes.

Ejemplo:

"LogAttributes"

resourceAttributesExpression
string | null

Expression to extract resource-level attributes.

Ejemplo:

"ResourceAttributes"

displayedTimestampValueExpression
string | null

This DateTime column is used to display and order search results.

Ejemplo:

"TimestampTime"

metricSourceId
string | null

HyperDX Source for metrics associated with logs. Optional

Ejemplo:

"507f1f77bcf86cd799439013"

traceSourceId
string | null

HyperDX Source for traces associated with logs. Optional

Ejemplo:

"507f1f77bcf86cd799439014"

traceIdExpression
string | null

Expression to extract the trace ID for correlating logs with traces.

Ejemplo:

"TraceId"

spanIdExpression
string | null

Expression to extract the span ID for correlating logs with traces.

Ejemplo:

"SpanId"

implicitColumnExpression
string | null

Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.

Ejemplo:

"Body"

knownColumnsListExpression
string | null

For Distributed table sources whose target tables have non-matching column sets. A list of columns supported across all target tables, used instead of SELECT * when fetching full row data. Leave blank to select all columns.

Ejemplo:

"Timestamp, Body, ServiceName"

useTextIndexForImplicitColumn
enum<string> | null

Controls whether lucene rendering uses ClickHouse text indices via hasAllTokens() against the implicit column. "auto" detects a covering index at query time, "enabled" forces text index usage, "disabled" forces a LIKE/hasToken fallback.

Opciones disponibles:
auto,
enabled,
disabled
Ejemplo:

"auto"

highlightedTraceAttributeExpressions
object[] | null

Expressions defining trace-level attributes which are displayed in the trace view for the selected trace.

highlightedRowAttributeExpressions
object[] | null

Expressions defining row-level attributes which are displayed in the row side panel for the selected row.

materializedViews
object[] | null

Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries.

metadataMaterializedViews
object | null

Configure materialized views for fast field discovery and value autocomplete.

Respuesta

Successfully updated source

data
object

The source object.

Última modificación el 15 de julio de 2026