- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#SCHEMA_REPRESENTATION)
- [FieldExtractor](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#FieldExtractor)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#FieldExtractor.SCHEMA_REPRESENTATION)
- [ComparisonOperator](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#ComparisonOperator)
- [LogFormat](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#LogFormat)
- [PreProcessConfig](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#PreProcessConfig)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#PreProcessConfig.SCHEMA_REPRESENTATION)

A representation of a parser extension as a set of field extractors.

| JSON representation |
|---|
| ``` { "extractors": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#FieldExtractor`) } ], "transformedCbnSnippet": string, "logFormat": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#LogFormat`), "appendRepeatedFields": boolean, "preprocessConfig": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#PreProcessConfig`) } } ``` |

| Fields ||
|---|---|
| `extractors[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#FieldExtractor`)`` List of FieldExtractors. |
| `transformedCbnSnippet` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. CBN snippet generated from field extractors. A base64-encoded string. |
| `logFormat` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#LogFormat`)`` Format of the log. Ex. CSV,JSON,XML. |
| `appendRepeatedFields (deprecated)` | `boolean` > [!WARNING] > This item is deprecated! Deprecated: Use ParserExtension.repeated_field_merge_strategy instead. Whether to append repeated fields or not. When false, repeated fields will be replaced. |
| `preprocessConfig` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#PreProcessConfig`)`` Pre-process configuration. |

## FieldExtractor

An extractor for a single log field.

| JSON representation |
|---|
| ``` { "preconditionPath": string, "preconditionValue": string, "preconditionOp": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#ComparisonOperator`), "fieldPath": string, "destinationPath": string, "value": string } ``` |

| Fields ||
|---|---|
| `preconditionPath` | `string` Precondition path could be a json path, xml path or csv column name depending on log format. It refers to a section or substring in raw log. |
| `preconditionValue` | `string` Precondition value. |
| `preconditionOp` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1beta/FieldExtractors#ComparisonOperator`)`` Operator used for precondition. |
| `fieldPath` | `string` Field path could be a json path, xml path or csv column name depending on log format. It refers to a section or substring in raw log. This is required if the FieldExtractor is used to specify the parser extension. |
| `destinationPath` | `string` Path in generated event which is to be populated. This is required if the FieldExtractor is used to specify the parser extension. |
| `value` | `string` Value to be mapped to the destination path directly. |

## ComparisonOperator

Comparison operator used in precondition field.

| Enums ||
|---|---|
| `COMPARISON_OPERATOR_UNSPECIFIED` | Comparison operator was unspecified. |
| `EQUALS` | Comparison operator is equals "==". |
| `NOT_EQUALS` | Comparison operator is not equals. |

## LogFormat

Log format of the raw log. valid log formats are JSON, XML and CSV.

| Enums ||
|---|---|
| `LOG_FORMAT_UNSPECIFIED` | Log format was unspecified. |
| `JSON` | Log format was JSON. |
| `CSV` | Log format was CSV. |
| `XML` | Log format was XML. |

## PreProcessConfig

PreProcessConfig holds the GROK expression to extract the syslog header.

| JSON representation |
|---|
| ``` { "grokRegex": string, "target": string } ``` |

| Fields ||
|---|---|
| `grokRegex` | `string` GROK Regex to extract the structured part of the log. syntax documentation: www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html |
| `target` | `string` Target field name for the structured part of the log. This should match a SEMANTIC identifier from the grok expression. |