decompress
The decompress processor decompresses any Base64-encoded compressed fields inside of an event.
Configuration
| Option | Required | Type | Description | 
|---|---|---|---|
| keys | Yes | List | The fields in the event that will be decompressed. | 
| type | Yes | Enum | The type of decompression to use for the keysin the event. Onlygzipis supported. | 
| decompress_when | No | String | A Data Prepper conditional expression that determines when the decompressprocessor will run on certain events. | 
| tags_on_failure | No | List | A list of strings with which to tag events when the processor fails to decompress the keysinside an event. Defaults to_decompression_failure. | 
Usage
The following example shows the decompress processor used in pipelines.yaml:
processor:
  - decompress:
      decompress_when: '/some_key == null'
      keys: [ "base_64_gzip_key" ]
      type: gzip
Metrics
The following table describes common abstract processor metrics.
| Metric name | Type | Description | 
|---|---|---|
| recordsIn | Counter | The ingress of records to a pipeline component. | 
| recordsOut | Counter | The egress of records from a pipeline component. | 
| timeElapsed | Timer | The time elapsed during execution of a pipeline component. | 
Counter
The decompress processor accounts for the following metrics:
- processingErrors: The number of processing errors that have occurred in the- decompressprocessor.