Hanzo
OpenapiO11y

Returns the caller's org's log parsing pipelines at one config version —…

Returns the caller's org's log parsing pipelines at one config version — "latest" for the newest — along with that version's deployment record and the…

GET /v1/o11y/logs/pipelines/{version}

Addresshttps://api.hanzo.ai/v1/o11y/logs/pipelines/{version}
MethodGET
Operationget_o11y_logs_pipelines_by_version
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller's org's log parsing pipelines at one config version — "latest" for the newest — along with that version's deployment record and the recent version history.

Callers need the viewer role; the runtime's own gate enforces it.

Request

1 field.

FieldInTypeRequiredDescription
versionpathstringyesVersion is the config version to read — a positive number, or "latest".

Response

StatusBodyMeaning
200o11y.O11yLogPipelinesOutok

200 body — 90 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yLogPipelines
data.configbodystringConfig is the rendered collector config the version deployed.
data.createdAtbodystring (date-time)CreatedAt is when the version was created.
data.createdBybodystringCreatedBy is the id of who created the version.
data.createdByNamebodystringCreatedByName is the display name of who created the version.
data.deployResultbodystringDeployResult is the deployment's outcome message.
data.deploySequencebodyintegerDeploySequence orders this deployment among the version's deployments.
data.deployStatusbodystringDeployStatus is where the deployment stands, e.g.
data.elementTypebodystringElementType is the config element this version carries — log_pipelines.
data.historybodyo11y.O11yLogConfigVersion[]History is the recent version history, newest first.
data.history[].configbodystringConfig is the rendered collector config the version deployed.
data.history[].createdAtbodystring (date-time)CreatedAt is when the version was created.
data.history[].createdBybodystringCreatedBy is the id of who created the version.
data.history[].createdByNamebodystringCreatedByName is the display name of who created the version.
data.history[].deployResultbodystringDeployResult is the deployment's outcome message.
data.history[].deploySequencebodyintegerDeploySequence orders this deployment among the version's deployments.
data.history[].deployStatusbodystringDeployStatus is where the deployment stands, e.g.
data.history[].elementTypebodystringElementType is the config element the version carries — log_pipelines.
data.history[].idbodystringID is the version record's id.
data.history[].lastHashbodystringLastHash is the deployed config's hash.
data.history[].orgIdbodystringOrgID is the org the version belongs to.
data.history[].updatedAtbodystring (date-time)UpdatedAt is when the version last changed.
data.history[].updatedBybodystringUpdatedBy is the id of who last changed it.
data.history[].versionbodyintegerVersion is the config version number.
data.idbodystringID is the version record's id.
data.lastHashbodystringLastHash is the deployed config's hash.
data.orgIdbodystringOrgID is the org the version belongs to.
data.pipelinesbodyo11y.O11yLogPipeline[]Pipelines are the version's pipelines, in order.
data.pipelines[].aliasbodystringAlias is the pipeline's short name.
data.pipelines[].configbodyo11y.O11yLogPipelineOperator[]Config is the pipeline's processors, in order.
data.pipelines[].config[].defaultbodystringDefault is the id of the processor a router falls through to.
data.pipelines[].config[].enable_flatteningbodybooleanEnableFlattening flattens parsed JSON one level when true.
data.pipelines[].config[].enable_pathsbodybooleanEnablePaths keeps the JSON path in flattened keys when true.
data.pipelines[].config[].enabledbodybooleanEnabled turns the processor on.
data.pipelines[].config[].exprbodystringExpr is a router route's expression.
data.pipelines[].config[].fieldbodystringField is the field an add/remove processor works on.
data.pipelines[].config[].fieldsbodystring[]Fields are the fields a retain processor keeps.
data.pipelines[].config[].frombodystringFrom is the source field of a move or copy.
data.pipelines[].config[].idbodystringID is the processor's id, unique within the pipeline.
data.pipelines[].config[].ifbodystringIf gates the processor on an expression.
data.pipelines[].config[].layoutbodystringLayout is a time parser's layout.
data.pipelines[].config[].layout_typebodystringLayoutType is the layout's kind, e.g.
data.pipelines[].config[].mappingbodyobjectMapping maps severity levels (or flattened keys) to the values that mean them.
data.pipelines[].config[].mapping.*bodystring[]
data.pipelines[].config[].namebodystringName is the processor's display name.
data.pipelines[].config[].on_errorbodystringOnError says what to do when the processor fails, e.g.
data.pipelines[].config[].orderIdbodyintegerOrderID is the processor's 1-based position in the pipeline.
data.pipelines[].config[].outputbodystringOutput is the id of the processor that runs next.
data.pipelines[].config[].overwrite_textbodybooleanOverwriteSeverityText rewrites the severity text alongside the number when true.
data.pipelines[].config[].parse_frombodystringParseFrom is where a parser reads from.
data.pipelines[].config[].parse_tobodystringParseTo is where a parser writes its result.
data.pipelines[].config[].path_prefixbodystringPathPrefix prefixes flattened keys.
data.pipelines[].config[].patternbodystringPattern is a grok parser's pattern.
data.pipelines[].config[].regexbodystringRegex is a regex parser's expression.
data.pipelines[].config[].routesbodyo11y.O11yLogPipelineRoute[]Routes are a router processor's routes.
data.pipelines[].config[].routes[].exprbodystringExpr is the expression that selects the route.
data.pipelines[].config[].routes[].outputbodystringOutput is the id of the processor the route sends to.
data.pipelines[].config[].span_idbodyo11y.O11yLogParseFrom
data.pipelines[].config[].span_id.parse_frombodystringParseFrom is the field to read.
data.pipelines[].config[].tobodystringTo is the destination field of a move or copy.
data.pipelines[].config[].trace_flagsbodyo11y.O11yLogParseFrom
data.pipelines[].config[].trace_flags.parse_frombodystringParseFrom is the field to read.
data.pipelines[].config[].trace_idbodyo11y.O11yLogParseFrom
data.pipelines[].config[].trace_id.parse_frombodystringParseFrom is the field to read.
data.pipelines[].config[].typebodystringType is the processor type, e.g.
data.pipelines[].config[].valuebodystringValue is the value an add processor writes.
data.pipelines[].createdAtbodystring (date-time)CreatedAt is when the pipeline was created.
data.pipelines[].createdBybodystringCreatedBy is the id of who created the pipeline.
data.pipelines[].descriptionbodystringDescription says what the pipeline is for.
data.pipelines[].enabledbodybooleanEnabled says whether the pipeline is on.
data.pipelines[].filterbodyo11y.O11yLogFilter
data.pipelines[].filter.itemsbodyo11y.O11yLogFilterItem[]Items are the predicates.
data.pipelines[].filter.items[].keybodyo11y.O11yLogFilterKey
data.pipelines[].filter.items[].key.dataTypebodystringDataType is the field's data type, e.g.
data.pipelines[].filter.items[].key.isColumnbodybooleanIsColumn marks a field materialized as its own column.
data.pipelines[].filter.items[].key.isJSONbodybooleanIsJSON marks a path into the record's JSON body.
data.pipelines[].filter.items[].key.keybodystringKey is the field's name.
data.pipelines[].filter.items[].key.typebodystringType is where the field lives: tag or resource.
data.pipelines[].filter.items[].opbodystringOp is the comparison, e.g.
data.pipelines[].filter.items[].valuebodyanyValue is what it tests against, in the value's own JSON type.
data.pipelines[].filter.opbodystringOp combines the items: AND or OR.
data.pipelines[].idbodystringID is the pipeline's id.
data.pipelines[].namebodystringName is the pipeline's display name.
data.pipelines[].orderIdbodyintegerOrderID is the pipeline's 1-based position in the set.
data.pipelines[].updatedAtbodystring (date-time)UpdatedAt is when the pipeline last changed.
data.pipelines[].updatedBybodystringUpdatedBy is the id of who last changed it.
data.updatedAtbodystring (date-time)UpdatedAt is when the version last changed.
data.updatedBybodystringUpdatedBy is the id of who last changed it.
data.versionbodyintegerVersion is the config version number.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y logs pipelines get <version>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page