Parses CEF (Common Event Format) events, returning each row as a record. This reader allows for inferring a schema based on the first event in the FlowFile or providing an explicit schema for interpreting the values.
cef, record, reader, parser
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
| Display Name | API Name | Default Value | Allowable Values | Description |
|---|---|---|---|---|
| Schema Access Strategy | schema-access-strategy | Infer Schema |
| Specifies how to obtain the schema that is to be used for interpreting the data. |
| Schema Registry | schema-registry | Controller Service API: SchemaRegistry Implementations: DatabaseTableSchemaRegistry HortonworksSchemaRegistry ConfluentSchemaRegistry AvroSchemaRegistry AmazonGlueSchemaRegistry | Specifies the Controller Service to use for the Schema Registry This Property is only considered if the [Schema Access Strategy] Property is set to one of the following values: [Confluent Content-Encoded Schema Reference], [Use 'Schema Name' Property], [HWX Schema Reference Attributes], [HWX Content-Encoded Schema Reference] | |
| Schema Name | schema-name | ${schema.name} | Specifies the name of the schema to lookup in the Schema Registry property Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [Schema Access Strategy] Property has a value of "Use 'Schema Name' Property". | |
| Schema Version | schema-version | Specifies the version of the schema to lookup in the Schema Registry. If not specified then the latest version of the schema will be retrieved. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [Schema Access Strategy] Property has a value of "Use 'Schema Name' Property". | ||
| Schema Branch | schema-branch | Specifies the name of the branch to use when looking up the schema in the Schema Registry property. If the chosen Schema Registry does not support branching, this value will be ignored. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [Schema Access Strategy] Property has a value of "Use 'Schema Name' Property". | ||
| Schema Text | schema-text | ${avro.schema} | The text of an Avro-formatted Schema Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [Schema Access Strategy] Property has a value of "Use 'Schema Text' Property". | |
| Raw Message Field | raw-message-field | If set the raw message will be added to the record using the property value as field name. This is not the same as the "rawEvent" extension field! Supports Expression Language: true (will be evaluated using variable registry only) | ||
| Invalid Field | invalid-message-field | Used when a line in the FlowFile cannot be parsed by the CEF parser. If set, instead of failing to process the FlowFile, a record is being added with one field. This record contains one field with the name specified by the property and the raw message as value. Supports Expression Language: true (will be evaluated using variable registry only) | ||
| DateTime Locale | datetime-representation | en-US | The IETF BCP 47 representation of the Locale to be used when parsing date fields with long or short month names (e.g. may <en-US> vs. mai. <fr-FR>. The defaultvalue is generally safe. Only change if having issues parsing CEF messages Supports Expression Language: true (will be evaluated using variable registry only) | |
| Inference Strategy | inference-strategy | With custom extensions inferred |
| Defines the set of fields should be included in the schema and the way the fields are being interpreted. This Property is only considered if the [Schema Access Strategy] Property has a value of "Infer Schema". |
| Schema Inference Cache | schema-inference-cache | Controller Service API: RecordSchemaCacheService Implementation: VolatileSchemaCache | Specifies a Schema Cache to use when inferring the schema. If not populated, the schema will be inferred each time. However, if a cache is specified, the cache will first be consulted and if the applicable schema can be found, it will be used instead of inferring the schema. This Property is only considered if the [Schema Access Strategy] Property has a value of "Infer Schema". | |
| Accept empty extensions | accept-empty-extensions | false |
| If set to true, empty extensions will be accepted and will be associated to a null value. |