github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/outputs/files.md (about) 1 --- 2 title: files 3 type: output 4 status: deprecated 5 categories: ["Local"] 6 --- 7 8 <!-- 9 THIS FILE IS AUTOGENERATED! 10 11 To make changes please edit the contents of: 12 lib/output/files.go 13 --> 14 15 import Tabs from '@theme/Tabs'; 16 import TabItem from '@theme/TabItem'; 17 18 :::warning DEPRECATED 19 This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives). 20 ::: 21 22 Writes each individual message to a new file. 23 24 ```yaml 25 # Config fields, showing default values 26 output: 27 label: "" 28 files: 29 path: ${!count("files")}-${!timestamp_unix_nano()}.txt 30 ``` 31 32 ## Alternatives 33 34 The functionality of this output is now supported by the [`file`](/docs/components/outputs/file) output. 35 36 In order for each message to create a new file the path must use function 37 interpolations as described [here](/docs/configuration/interpolation#bloblang-queries). 38 39 ## Fields 40 41 ### `path` 42 43 The file to write to, if the file does not yet exist it will be created. 44 This field supports [interpolation functions](/docs/configuration/interpolation#bloblang-queries). 45 46 47 Type: `string` 48 Default: `"${!count(\"files\")}-${!timestamp_unix_nano()}.txt"` 49 50