Hanzo
OpenapiO11y

Saves the given log parsing pipelines as the new config version for the…

Saves the given log parsing pipelines as the new config version for the caller's org and starts deploying it.

POST /v1/o11y/logs/pipelines

Addresshttps://api.hanzo.ai/v1/o11y/logs/pipelines
MethodPOST
Operationpost_o11y_logs_pipelines
AuthAuthorization: Bearer $HANZO_API_KEY

Saves the given log parsing pipelines as the new config version for the caller's org and starts deploying it. The set REPLACES the current one: a pipeline left out of the request is dropped from the new version, and an empty set drops them all.

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

Request

55 fields, body application/json (required).

FieldInTypeRequiredDescription
pipelinesbodyo11y.O11yLogPostablePipeline[]Pipelines are the pipelines the new version holds, in order.
pipelines[].aliasbodystringAlias is the pipeline's short name.
pipelines[].configbodyo11y.O11yLogPipelineOperator[]Config is the pipeline's processors, in order.
pipelines[].config[].defaultbodystringDefault is the id of the processor a router falls through to.
pipelines[].config[].enable_flatteningbodybooleanEnableFlattening flattens parsed JSON one level when true.
pipelines[].config[].enable_pathsbodybooleanEnablePaths keeps the JSON path in flattened keys when true.
pipelines[].config[].enabledbodybooleanEnabled turns the processor on.
pipelines[].config[].exprbodystringExpr is a router route's expression.
pipelines[].config[].fieldbodystringField is the field an add/remove processor works on.
pipelines[].config[].fieldsbodystring[]Fields are the fields a retain processor keeps.
pipelines[].config[].frombodystringFrom is the source field of a move or copy.
pipelines[].config[].idbodystringID is the processor's id, unique within the pipeline.
pipelines[].config[].ifbodystringIf gates the processor on an expression.
pipelines[].config[].layoutbodystringLayout is a time parser's layout.
pipelines[].config[].layout_typebodystringLayoutType is the layout's kind, e.g.
pipelines[].config[].mappingbodyobjectMapping maps severity levels (or flattened keys) to the values that mean them.
pipelines[].config[].mapping.*bodystring[]
pipelines[].config[].namebodystringName is the processor's display name.
pipelines[].config[].on_errorbodystringOnError says what to do when the processor fails, e.g.
pipelines[].config[].orderIdbodyintegerOrderID is the processor's 1-based position in the pipeline.
pipelines[].config[].outputbodystringOutput is the id of the processor that runs next.
pipelines[].config[].overwrite_textbodybooleanOverwriteSeverityText rewrites the severity text alongside the number when true.
pipelines[].config[].parse_frombodystringParseFrom is where a parser reads from.
pipelines[].config[].parse_tobodystringParseTo is where a parser writes its result.
pipelines[].config[].path_prefixbodystringPathPrefix prefixes flattened keys.
pipelines[].config[].patternbodystringPattern is a grok parser's pattern.
pipelines[].config[].regexbodystringRegex is a regex parser's expression.
pipelines[].config[].routesbodyo11y.O11yLogPipelineRoute[]Routes are a router processor's routes.
pipelines[].config[].routes[].exprbodystringExpr is the expression that selects the route.
pipelines[].config[].routes[].outputbodystringOutput is the id of the processor the route sends to.
pipelines[].config[].span_idbodyo11y.O11yLogParseFrom
pipelines[].config[].span_id.parse_frombodystringParseFrom is the field to read.
pipelines[].config[].tobodystringTo is the destination field of a move or copy.
pipelines[].config[].trace_flagsbodyo11y.O11yLogParseFrom
pipelines[].config[].trace_flags.parse_frombodystringParseFrom is the field to read.
pipelines[].config[].trace_idbodyo11y.O11yLogParseFrom
pipelines[].config[].trace_id.parse_frombodystringParseFrom is the field to read.
pipelines[].config[].typebodystringType is the processor type, e.g.
pipelines[].config[].valuebodystringValue is the value an add processor writes.
pipelines[].descriptionbodystringDescription says what the pipeline is for.
pipelines[].enabledbodybooleanEnabled turns the pipeline on.
pipelines[].filterbodyo11y.O11yLogFilter
pipelines[].filter.itemsbodyo11y.O11yLogFilterItem[]Items are the predicates.
pipelines[].filter.items[].keybodyo11y.O11yLogFilterKey
pipelines[].filter.items[].key.dataTypebodystringDataType is the field's data type, e.g.
pipelines[].filter.items[].key.isColumnbodybooleanIsColumn marks a field materialized as its own column.
pipelines[].filter.items[].key.isJSONbodybooleanIsJSON marks a path into the record's JSON body.
pipelines[].filter.items[].key.keybodystringKey is the field's name.
pipelines[].filter.items[].key.typebodystringType is where the field lives: tag or resource.
pipelines[].filter.items[].opbodystringOp is the comparison, e.g.
pipelines[].filter.items[].valuebodyanyValue is what it tests against, in the value's own JSON type.
pipelines[].filter.opbodystringOp combines the items: AND or OR.
pipelines[].idbodystringID is the pipeline's id.
pipelines[].namebodystringName is the pipeline's display name.
pipelines[].orderIdbodyintegerOrderID is the pipeline's 1-based position in the set.

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 create

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page