Generator
Configuration Options
Required Options
format(required)
The format of the randomly generated output.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["shuffle","apache_common","apache_error","syslog","bsd_syslog","json"] |
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["generator"] |
Advanced Options
interval(optional)
The amount of time, in seconds, to pause between each batch of output lines. If not set, there is no delay.
Type | Syntax | Default | Example |
---|---|---|---|
float | [1,0.1,0.01] |
count(optional)
The total number of lines to output. By default the source continuously prints logs (infinitely).
Type | Syntax | Default | Example |
---|---|---|---|
uint |
lines(optional)
The list of lines to output.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["Line 1","Line 2"] |
sequence(optional)
If true
, each output line starts with an increasing sequence number, beginning with 0.
Type | Syntax | Default | Example |
---|---|---|---|
bool |
How it Works
State
This component is stateless, meaning its behavior is consistent across each input.
Context
By default, the generator
source augments events with helpful
context keys.