- [Resource: ParserExtension](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#ParserExtension)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#ParserExtension.SCHEMA_REPRESENTATION)
- [DynamicParsingConfig](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#DynamicParsingConfig)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#DynamicParsingConfig.SCHEMA_REPRESENTATION)
- [LogField](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#LogField)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#LogField.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#State)
- [RepeatedFieldMergeStrategy](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#RepeatedFieldMergeStrategy)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#METHODS_SUMMARY)

## Resource: ParserExtension

ParserExtension provides extensibility semantics for a log parser.

| JSON representation |
|---|
| ``` { "name": string, "state": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#State`), "createTime": string, "log": string, "extensionValidationReport": string, "validationReport": string, "stateLastChangedTime": string, "lastLiveTime": string, "validationSkipped": boolean, "parserEngineType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/ParserEngineType`), "repeatedFieldMergeStrategy": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#RepeatedFieldMergeStrategy`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "cbnSnippet": string, "fieldExtractors": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors`) }, "dynamicParsing": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#DynamicParsingConfig`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Format: projects/{project}/locations/{location}/instances/{instance}/logTypes/{logtype}/parserExtensions/{parserExtension} |
| `state` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#State`)`` Output only. The state of the parser extension |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time the parser extension was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `log` | `string (https://developers.google.com/discovery/v1/type-format format)` Raw log used to assist the user in creation of augmentation. A base64-encoded string. |
| `extensionValidationReport` | `string` The latest extension validation report for this extension. |
| `validationReport` | `string` Output only. The validation report generated during extension validation. |
| `stateLastChangedTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time the config state was last changed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `lastLiveTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time the config was last serving live traffic. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `validationSkipped` | `boolean` Optional. Flag to bypass parser extension validation. If enabled, the parser extension won't be rejected during the validation phase and validation will be skipped. |
| `parserEngineType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/ParserEngineType`)`` Output only. Type of the parser engine (GOSTASH vs JS). |
| `repeatedFieldMergeStrategy` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#RepeatedFieldMergeStrategy`)`` Optional. Defines how repeated fields in the extension are combined with the base parser output. |
| One of parser config-based normalizer (CBN) snippet or field extractors. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `cbnSnippet` | `string (https://developers.google.com/discovery/v1/type-format format)` Parser config could be a cbn snippet. A base64-encoded string. |
| `fieldExtractors` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors`)`` Parser config could be a field extractor. |
| `dynamicParsing` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#DynamicParsingConfig`)`` Parser config could be a dynamic parsing config. |
| End of mutually exclusive fields. ||

## DynamicParsingConfig

A representation of a parser extension as dynamic parsing config.

| JSON representation |
|---|
| ``` { "optedFields": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#LogField`) } ] } ``` |

| Fields ||
|---|---|
| `optedFields[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions#LogField`)`` Optional. List of fields to be parsed. |

## LogField

A representation of a log field.

| JSON representation |
|---|
| ``` { "path": string, "sampleValue": string } ``` |

| Fields ||
|---|---|
| `path` | `string` Optional. Path of the log field. |
| `sampleValue` | `string` Optional. Sample value of the log field. |

## State

State of parser extension.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The state for this parser extension was not specified. |
| `NEW` | The parser extension has been newly submitted and is waiting to be validated. |
| `VALIDATING` | The parser extension is currently going through the validation pipeline. |
| `LIVE` | The parser extension is live in production. Only configs that have successfully passed the validation stage will be set to LIVE. |
| `REJECTED` | Validation completed, but the parser extension was rejected with errors. |
| `INTERNAL_ERROR` | An error occurred when processing this parser extension. |
| `VALIDATED` | Extension is validated. |
| `ARCHIVED` | Extension is archived and is no more being used. |
| `VALIDATION_SKIPPED` | Extension validation was skipped. |

## RepeatedFieldMergeStrategy

Strategy for merging repeated fields (lists).

| Enums ||
|---|---|
| `REPEATED_FIELD_MERGE_STRATEGY_UNSPECIFIED` | Strategy is unspecified. |
| `REPLACE` | The extension list completely replaces the base list. |
| `APPEND` | Concatenate extension items to the end of the base list. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions/activate` | ActivateParserExtension switches the customer to use requested parser extension, This will set the extension state to ACTIVE. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions/create` | Create a parser extension. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions/delete` | Delete a parser extension. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions/get` | Get a parser extension. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/projects.locations.instances.logTypes.parserExtensions/list` | List all parser extensions. |