Comment on page
Dummy
The dummy input plugin, generates dummy events. It is useful for testing, debugging, benchmarking and getting started with Calyptia Fluent Bit.
The plugin supports the following configuration parameters:
Key | Description |
---|---|
Dummy | Dummy JSON record. Default: {"message":"dummy"} |
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 |
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:
$ calyptia-fluent-bit -i dummy -o stdout
Calyptia Fluent Bit 20.10.03
[2017/07/06 21:55:29] [ info] [engine] started
[0] dummy.0: [1499345730.015265366, {"message"=>"dummy"}]
[1] dummy.0: [1499345731.002371371, {"message"=>"dummy"}]
[2] dummy.0: [1499345732.000267932, {"message"=>"dummy"}]
[3] dummy.0: [1499345733.000757746, {"message"=>"dummy"}]
In your main configuration file append the following Input & Output sections:
[INPUT]
Name dummy
Tag dummy.log
[OUTPUT]
Name stdout
Match *
Last modified 5mo ago