Random
The Random input plugin generates random value samples using the device interface /dev/urandom. If that interface is unavailable, it uses a Unix timestamp as a value.
Configuration parameters
The plugin supports the following configuration parameters:
interval_nsec
Set the interval between generated samples, in nanoseconds. This works in conjunction with interval_sec.
0
interval_sec
Set the interval between generated samples, in seconds.
1
samples
Set the number of samples to generate. -1 generates unlimited samples.
-1
Get started
To start generating random samples, you can either run the plugin from the command line or through a configuration file.
Command line
Use the following command line options to generate samples.
fluent-bit -i random -o stdoutConfiguration file
The following examples are sample configuration files for this input plugin:
Testing
After Fluent Bit starts running, it generates reports in the output interface:
Last updated
Was this helpful?