- API Reference
- endpoint
- beta
- observability
Beta Observability Logs
Beta Observability Logs
(beta) Observability API - logs.
POST /v1/observability/logs/search
Search logs
Search logs
Parameters
from
date-time | nullqueryto
date-time | nullquerypage_size
integerquerycursor
string | nullqueryRequest Example
{}
Request Body
order
"asc" | "desc"Default Value: "desc"
search_expression
string | nullResponses
Successful Response
FeedResultGetLog
cursor
string | nullnext
string | nullresults
array<GetLog>GetLog
body
string* requiredcustomer_id
string* requiredevent_name
string* requiredlog_attributes
map<string>* requiredorganization_id
string* requiredresource_attributes
map<string>* requiredresource_schema_url
string* requiredscope_attributes
map<string>* requiredscope_name
string* requiredscope_schema_url
string* requiredscope_version
string* requiredservice_account_id
stringDefault Value: ""
service_name
string* requiredseverity_number
integer* requiredseverity_text
string* requiredspan_id
string* requiredtimestamp
date-time* requiredtrace_flags
integer* requiredtrace_id
string* requireduser_id
string* requiredworkspace_id
string* requiredGET /v1/observability/logs/fields
Get log field definitions
Get log field definitions
Responses
Successful Response
OtelFieldDefinition
group
string | nulllabel
string* requiredname
string* requiredsource_attribute_key
string | nullRaw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. gen_ai.request.model for request_model) or a resource attribute (e.g. service.name for service_name). None when the field is a native OTLP field (like span_name or trace_id) or a nested attribute map (like span_attributes).
supported_aggregations
array<"count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "p50" | "p90" | "p95" | "p99">* requiredsupported_operators
array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "like" | "ilike" | "not_like" | "not_ilike" | "between" | "not_between" | "in" | "not_in" | "exists" | "not_exists" | "regexp" | "not_regexp" | "contains" | "not_contains" | "has" | "hasAny" | "hasAll" | "hasToken">* requiredtype
"ENUM" | "TEXT" | "INT" | "FLOAT" | "BOOL" | "TIMESTAMP" | "ARRAY" | "MAP"* requiredGET /v1/observability/logs/fields/{field_name}/options
Get options for a log field
Get options for a log field