الانتقال إلى المحتوى الرئيسي
PUT
Error

التفويضات

Authorization
string
header
مطلوب

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

معلمات المسار

id
string
مطلوب

Source ID

الجسم

application/json
name
string
مطلوب

Display name for the source.

مثال:

"Logs"

kind
enum<string>
مطلوب

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

الخيارات المتاحة:
log
مثال:

"log"

connection
string
مطلوب

ID of the ClickHouse connection used by this source.

مثال:

"507f1f77bcf86cd799439012"

from
object
مطلوب

Database and table location of the source data.

defaultTableSelectExpression
string
مطلوب

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

مثال:

"Timestamp, ServiceName, SeverityText, Body"

timestampValueExpression
string
مطلوب

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

مثال:

"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
مثال:

"Billing"

disabled
boolean | null

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

مثال:

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.

مثال:

"ServiceName"

serviceVersionExpression
string | null

Expression identifying the running release of a service. Defaults to the OpenTelemetry service.version resource attribute when unset. Where services carry the release on different attributes, fall back across them with coalesce(nullIf(a, ''), nullIf(b, '')).

مثال:

"ResourceAttributes['service.version']"

severityTextExpression
string | null

Expression to extract the severity/log level text.

مثال:

"SeverityText"

severityNumberExpression
string | null

Expression for the numeric OpenTelemetry SeverityNumber (1-24).

مثال:

"SeverityNumber"

bodyExpression
string | null

Expression to extract the log message body.

مثال:

"Body"

eventNameExpression
string | null

Expression for the OpenTelemetry log EventName.

مثال:

"EventName"

eventAttributesExpression
string | null

Expression to extract event-level attributes.

مثال:

"LogAttributes"

resourceAttributesExpression
string | null

Expression to extract resource-level attributes.

مثال:

"ResourceAttributes"

displayedTimestampValueExpression
string | null

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

مثال:

"TimestampTime"

orderByExpression
string

Custom ORDER BY expression that overrides the default ordering. Leave empty to use the auto-detected default.

مثال:

"Timestamp DESC"

metricSourceId
string | null

HyperDX Source for metrics associated with logs. Optional

مثال:

"507f1f77bcf86cd799439013"

traceSourceId
string | null

HyperDX Source for traces associated with logs. Optional

مثال:

"507f1f77bcf86cd799439014"

traceIdExpression
string | null

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

مثال:

"TraceId"

spanIdExpression
string | null

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

مثال:

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

مثال:

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

مثال:

"Timestamp, Body, ServiceName"

rowKeyExpression
string | null

Comma-separated expressions that together identify one row, e.g. the partition key, primary key, _block_number and _block_offset. When set, row details are looked up by these columns only. Leave blank to detect keys from table metadata.

مثال:

"toDate(Timestamp), ServiceName, Timestamp, _block_number, _block_offset"

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.

الخيارات المتاحة:
auto,
enabled,
disabled
مثال:

"auto"

mapKeyIndexMaxParts
integer | null

How many data parts are read from text indexes to discover attribute keys and filter values, chosen by mapKeyIndexPartSelection. Raise it if keys or values are missing from filters; lower it if they load slowly. Defaults to 20.

النطاق المطلوب: x >= 1
مثال:

20

mapKeyIndexPartSelection
enum<string> | null

Which data parts, by row count, are read from text indexes to discover attribute keys and filter values. "median" (the default) balances coverage and cost, "smallest" reads the newest unmerged parts, "largest" reads the most merged data.

الخيارات المتاحة:
median,
smallest,
largest
مثال:

"median"

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.

الاستجابة

Successfully updated source

data
object

The source object.