|
1 | 1 | # Random
|
2 | 2 |
|
3 |
| -_Random_ input plugin generate very simple random value samples using the device interface _/dev/urandom_, if not available it will use a unix timestamp as value. |
| 3 | +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. |
4 | 4 |
|
5 |
| -## Configuration Parameters |
| 5 | +## Configuration parameters |
6 | 6 |
|
7 | 7 | The plugin supports the following configuration parameters:
|
8 | 8 |
|
9 |
| -| Key | Description | |
10 |
| -| :--- | :--- | |
11 |
| -| Samples | If set, it will only generate a specific number of samples. By default this value is set to _-1_, which will generate unlimited samples. | |
12 |
| -| Interval\_Sec | Interval in seconds between samples generation. Default value is _1_. | |
13 |
| -| Interval\_Nsec | Specify a nanoseconds interval for samples generation, it works in conjunction with the Interval\_Sec configuration key. Default value is _0_. | |
14 |
| -| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). Default: `false`. | |
| 9 | +| Key | Description | Default | |
| 10 | +| --- | ----------- | ------- | |
| 11 | +| `Samples` | Specifies the number of samples to generate. The default value of `-1` generates unlimited samples. | `-1` | |
| 12 | +| `Interval_Sec` | Specifies the interval between generated samples, in seconds. | `1` | |
| 13 | +| `Interval_Nsec` | Specifies the interval between generated samples, in nanoseconds. This works in conjunction with `Interval_Sec`. | `0` | |
| 14 | +| `Threaded` | Specifies whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` | |
15 | 15 |
|
16 |
| -## Getting Started |
| 16 | +## Get started |
17 | 17 |
|
18 |
| -In order to start generating random samples, you can run the plugin from the command line or through the configuration file: |
| 18 | +To start generating random samples, you can either run the plugin from the command line or through a configuration file. |
19 | 19 |
|
20 |
| -### Command Line |
| 20 | +### Command line |
21 | 21 |
|
22 |
| -From the command line you can let Fluent Bit generate the samples with the following options: |
| 22 | +Use the following command line options to generate samples. |
23 | 23 |
|
24 | 24 | ```shell
|
25 | 25 | $ fluent-bit -i random -o stdout
|
26 | 26 | ```
|
27 | 27 |
|
28 |
| -### Configuration File |
| 28 | +### Configuration file |
29 | 29 |
|
30 |
| -In your main configuration file append the following: |
| 30 | +The following examples are sample configuration files for this input plugin: |
31 | 31 |
|
32 | 32 | {% tabs %}
|
33 | 33 | {% tab title="fluent-bit.yaml" %}
|
@@ -65,7 +65,7 @@ pipeline:
|
65 | 65 |
|
66 | 66 | ## Testing
|
67 | 67 |
|
68 |
| -Once Fluent Bit is running, you will see the reports in the output interface similar to this: |
| 68 | +After Fluent Bit starts running, it generates reports in the output interface: |
69 | 69 |
|
70 | 70 | ```shell
|
71 | 71 | $ fluent-bit -i random -o stdout
|
@@ -98,4 +98,4 @@ ______ _ _ ______ _ _ ___ _____
|
98 | 98 | [2] random.0: [1475893656, {"rand_value"=>7580417447354808203}]
|
99 | 99 | [3] random.0: [1475893657, {"rand_value"=>1501010137543905482}]
|
100 | 100 | [4] random.0: [1475893658, {"rand_value"=>16238242822364375212}]
|
101 |
| -``` |
| 101 | +``` |
0 commit comments