github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/decompress.md (about) 1 --- 2 title: decompress 3 type: processor 4 status: stable 5 categories: ["Parsing"] 6 --- 7 8 <!-- 9 THIS FILE IS AUTOGENERATED! 10 11 To make changes please edit the contents of: 12 lib/processor/decompress.go 13 --> 14 15 import Tabs from '@theme/Tabs'; 16 import TabItem from '@theme/TabItem'; 17 18 19 Decompresses messages according to the selected algorithm. Supported 20 decompression types are: gzip, zlib, bzip2, flate, snappy, lz4. 21 22 23 <Tabs defaultValue="common" values={[ 24 { label: 'Common', value: 'common', }, 25 { label: 'Advanced', value: 'advanced', }, 26 ]}> 27 28 <TabItem value="common"> 29 30 ```yaml 31 # Common config fields, showing default values 32 label: "" 33 decompress: 34 algorithm: gzip 35 ``` 36 37 </TabItem> 38 <TabItem value="advanced"> 39 40 ```yaml 41 # All config fields, showing default values 42 label: "" 43 decompress: 44 algorithm: gzip 45 parts: [] 46 ``` 47 48 </TabItem> 49 </Tabs> 50 51 ## Fields 52 53 ### `algorithm` 54 55 The decompression algorithm to use. 56 57 58 Type: `string` 59 Default: `"gzip"` 60 Options: `gzip`, `zlib`, `bzip2`, `flate`, `snappy`, `lz4`. 61 62 ### `parts` 63 64 An optional array of message indexes of a batch that the processor should apply to. 65 If left empty all messages are processed. This field is only applicable when 66 batching messages [at the input level](/docs/configuration/batching). 67 68 Indexes can be negative, and if so the part will be selected from the end 69 counting backwards starting from -1. 70 71 72 Type: `array` 73 Default: `[]` 74 75