Skip to main content
Version: Next

Generate

The Generate input produces synthetic text messages at a fixed interval, primarily for testing, demos, and benchmarking. Each read returns batch_size copies of the same context string.

Configuration

FieldTypeRequiredDefaultDescription
typestringyesConstant value "generate"
contextstringyesPayload text for each message
intervaldurationyesInterval between reads, e.g. 1ms, 1s, 1m (the first read is immediate)
countintegernoTotal number of messages; returns EOF once reached. Unset means unlimited
batch_sizeintegerno1Number of messages returned per read

Examples

input:
type: "generate"
context: '{ "timestamp": 1625000000000, "value": 10, "sensor": "temp_1" }'
interval: 1ms
batch_size: 1000
count: 10000