GenerateFlowFile 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

This processor creates FlowFiles with random data or custom content. GenerateFlowFile is useful for load testing, configuration, and simulation. Also see DuplicateFlowFile for additional load testing.

Tags

generate, load, random, test

Input Requirement

FORBIDDEN

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Batch SizeThe number of FlowFiles to be transferred in each invocation
Data FormatSpecifies whether the data should be Text or Binary
File SizeThe size of the file that will be used
Unique FlowFilesIf true, each FlowFile that is generated will be unique. If false, a random value will be generated and all FlowFiles will get the same content but this offers much higher throughput
character-setSpecifies the character set to use when writing the bytes of Custom Text to a flow file.
generate-ff-custom-textIf Data Format is text and if Unique FlowFiles is false, then this custom text will be used as content of the generated FlowFiles and the File Size will be ignored. Finally, if Expression Language is used, evaluation will be performed only once per batch of generated FlowFiles
mime-typeSpecifies the value to set for the “mime.type” attribute.

Relationships

NameDescription
success

Writes attributes

NameDescription
mime.typeSets the MIME type of the output if the ‘Mime Type’ property is set