Skip to main content

Parser

View as Markdown

A customer-authored, versioned contract describing the fields of an ingested log source.

The parser is a container: it carries the identity and a pointer to the newest version. Specs live on the immutable ParserVersion children, so one parser can be attached to many data sources and each attachment pins a version.

Parser object​

A customer-authored, versioned contract describing the fields of an ingested log source.

The parser is a container: it carries the identity and a pointer to the newest version. Specs live on the immutable ParserVersion children, so one parser can be attached to many data sources and each attachment pins a version.

namestringBetaIDImmutable

Resource name. Format: parsers/{parser_id}, where the leaf is the immutable server-assigned UUID. Create-time placement names are stored separately and do not affect the resource name.

Example: parsers/550e8400-e29b-41d4-a716-446655440000

parser_idstringBetaOutput only

The parser's server-assigned UUID. It is not currently a UC securable ID, is immutable for the life of the resource, is the leaf of name, and is returned by CreateParser.

catalog_namestringBetaImmutable

Name of the parent UC catalog, set on create. Reads return the value as supplied; the current UC catalog name is reported in effective_catalog_name.

schema_namestringBetaImmutable

Name of the parent UC schema, set on create. Reads return the value as supplied; the current UC schema name is reported in effective_schema_name.

parser_namestringBetaImmutable

Client-supplied parser name, stored as supplied and fixed at create time. Must be a valid UC identifier. A custom parser is not currently a UC securable and this field has no rename path.

latest_versionint64BetaOutput only

Newest version of this parser. Read its spec by passing this to GetParserVersion, or by using the latest alias. Absent when every version has been deleted.

create_timestringBetaOutput only

When the parser was created.

created_byobjectBetaOutput only

The principal that created this parser. Each version records its own created_by.

Show child attributesHide child attributes
idstringBeta

User / service-principal ID.

principal_typestringBeta

Whether this principal is a regular user, service principal, or system principal.

Values:

  • REGULAR_USER
  • SERVICE_PRINCIPAL
  • SYSTEM_USER
emailstringBeta

Email (regular users only).

display_namestringBeta

Display name (user or SP name).

ownerobjectBetaOutput only

The principal that owns this parser. Server-set from the authenticated creator, never supplied by the client. Beta reads by UUID perform no authorization. Owner-gated write RPCs are outside this API's current implementation scope.

Show child attributesHide child attributes
idstringBeta

User / service-principal ID.

principal_typestringBeta

Whether this principal is a regular user, service principal, or system principal.

Values:

  • REGULAR_USER
  • SERVICE_PRINCIPAL
  • SYSTEM_USER
emailstringBeta

Email (regular users only).

display_namestringBeta

Display name (user or SP name).

effective_catalog_namestringBetaOutput only

The current name of the parser's UC catalog. Tracks UC renames; when the current name cannot be looked up, the name as of the parser's last write.

effective_schema_namestringBetaOutput only

The current name of the parser's UC schema. Tracks UC renames; when the current name cannot be looked up, the name as of the parser's last write.

specstringBetaInput onlyImmutable

Spec of version 1, as a YAML document. Accepted only by CreateParser; read a version's spec with GetParserVersion.

descriptionstringBetaInput onlyImmutable

Description of version 1. Accepted only by CreateParser; read a version's description with GetParserVersion.

Get a parser Beta​

GET /api/2.0/lakewatch/{name=parsers/*}

Returns a parser's identity and latest-version pointer. Does not return the spec; read a spec with GetParserVersion.

API scopes: lakewatch

Parameters​

namestringRequiredpath

Resource name of the parser. Format: parsers/{parser_id}.

Response​

Returns the Parser object.

List parsers Beta​

GET /api/2.0/lakewatch/parsers

Lists parsers in a catalog, without their specs.

API scopes: lakewatch

Parameters​

page_sizeint32query

Maximum number of results to return in one page. This is a best-effort upper bound, not a guarantee: the server may return fewer items than requested (even zero) while more results still exist. If unset or 0, the server picks a default.

page_tokenstringquery

Page token from a previous ListParsers response, used to fetch the next page of results. Send the other request fields unchanged when requesting later pages; a token from a request with different fields is rejected.

filterstringquery

AIP-160 filter expression. Parsers are filterable by parser_name.

catalog_namestringRequiredquery

Name of the parent UC catalog to list parsers from. Required: List is scoped to a single catalog, mirroring the Unity Catalog tables/functions APIs, which take catalog_name as a request field (bound to a query parameter) rather than a catalog path segment.

schema_namestringquery

Name of the parent UC schema. Optional: when set, results are narrowed to this schema; when omitted, parsers across all schemas in catalog_name are returned.

Response​

Returns a list of Parser objects.

Create a parser Beta​

POST /api/2.0/lakewatch/parsers

Creates a parser and its first version in one call.

API scopes: lakewatch

Request body​

The parser to create. spec and description become version 1.

namestringIDImmutable

Resource name. Format: parsers/{parser_id}, where the leaf is the immutable server-assigned UUID. Create-time placement names are stored separately and do not affect the resource name.

Example: parsers/550e8400-e29b-41d4-a716-446655440000

catalog_namestringRequiredImmutable

Name of the parent UC catalog, set on create. Reads return the value as supplied; the current UC catalog name is reported in effective_catalog_name.

schema_namestringRequiredImmutable

Name of the parent UC schema, set on create. Reads return the value as supplied; the current UC schema name is reported in effective_schema_name.

parser_namestringRequiredImmutable

Client-supplied parser name, stored as supplied and fixed at create time. Must be a valid UC identifier. A custom parser is not currently a UC securable and this field has no rename path.

specstringRequiredInput onlyImmutable

Spec of version 1, as a YAML document. Accepted only by CreateParser; read a version's spec with GetParserVersion.

descriptionstringInput onlyImmutable

Description of version 1. Accepted only by CreateParser; read a version's description with GetParserVersion.

Response​

Returns the Parser object.

Delete a parser Beta​

DELETE /api/2.0/lakewatch/{name=parsers/*}

Deletes a parser and all of its versions. Refused while any data source references it.

API scopes: lakewatch

Parameters​

namestringRequiredpath

Resource name of the parser. Format: parsers/{parser_id}.