Joule
Search
K
Comment on page

File

The file transport provides the ability to stream processed events to a file. This transport is ideal for use case validation, testing, and legacy processing software. Various file formats are supported along with file sizes.

Example configuration

file:
filename: nasdaqAnalytic
path: /home/app/data/output/analytics
batchSize: 1024
timeout: 1000
formatter:
csvFormatter:
contentType: text/csv
encoding: UTF-8
delimiter: "|"
This basic example leverages the default setting resulting in events published as a CSV file to /home/app/data/output/analytics/nasdaqAnalytic.csv

Core Attributes

Available configuration parameters
Attribute
Description
Data Type
Required
filename
file name to use
String
path
Absolute path files will be written too
String
maxFilesize
Maximum file size before new file is created
Long
Default: 67108864 (64MB)
batchSize
Number of events to trigger a file write process
Integer
Default: 1024
formatter
Target format of event data
Last modified 1mo ago