Generator

Configuration Options

Required Options

format(required)

The format of the randomly generated output.

TypeSyntaxDefaultExample
stringliteral["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.

TypeSyntaxDefaultExample
stringliteral["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.

TypeSyntaxDefaultExample
float[1,0.1,0.01]
count(optional)

The total number of lines to output. By default the source continuously prints logs (infinitely).

TypeSyntaxDefaultExample
uint
lines(optional)

The list of lines to output.

TypeSyntaxDefaultExample
arrayliteral["Line 1","Line 2"]
sequence(optional)

If true, each output line starts with an increasing sequence number, beginning with 0.

TypeSyntaxDefaultExample
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.