Comment on page
Dummy
The dummy input plugin, generates dummy events. It is useful for testing, debugging, benchmarking and getting started with Fluent Bit.
The plugin supports the following configuration parameters:
Key | Description |
---|---|
Dummy | Dummy JSON record. Default: {"message":"dummy"} |
Metadata | Dummy JSON metadata. Default: {} |
Start_time_sec | Dummy base timestamp in seconds. Default: 0 |
Start_time_nsec | Dummy base timestamp in nanoseconds. Default: 0 |
Rate | Rate at which messages are generated expressed in how many times per second. Default: 1 |
Interval_sec | Set seconds of time interval at which every message is generated. If set, Rate configuration will be ignored. Default: 0 |
Interval_nsec | Set nanoseconds of time interval at which every message is generated. If set, Rate configuration will be ignored. Default: 0 |
Samples | If set, the events number will be limited. e.g. If Samples=3, the plugin only generates three events and stops. |
Copies | Number of messages to generate each time they are generated. Defaults to 1. |
You can run the plugin from the command line or through the configuration file:
$ fluent-bit -i dummy -o stdout
Fluent Bit v2.x.x
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
[0] dummy.0: [[1686451466.659962491, {}], {"message"=>"dummy"}]
[0] dummy.0: [[1686451467.659679509, {}], {"message"=>"dummy"}]
In your main configuration file append the following Input & Output sections:
fluent-bit.conf
fluent-bit.yaml
[INPUT]
Name dummy
Dummy {"message": "custom dummy"}
[OUTPUT]
Name stdout
Match *
pipeline:
inputs:
- name: dummy
dummy: '{"message": "custom dummy"}'
outputs:
- name: stdout
match: '*'
Last modified 7d ago