Skip to content

Commit a4287a2

Browse files
pipeline: inputs: random: general cleanup
Signed-off-by: Alexa Kreizinger <[email protected]>
1 parent 4df0663 commit a4287a2

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

pipeline/inputs/random.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Random
22

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

5-
## Configuration Parameters
5+
## Configuration parameters
66

77
The plugin supports the following configuration parameters:
88

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` |
1515

16-
## Getting Started
16+
## Get started
1717

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

20-
### Command Line
20+
### Command line
2121

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

2424
```shell
2525
$ fluent-bit -i random -o stdout
2626
```
2727

28-
### Configuration File
28+
### Configuration file
2929

30-
In your main configuration file append the following:
30+
The following examples are sample configuration files for this input plugin:
3131

3232
{% tabs %}
3333
{% tab title="fluent-bit.yaml" %}
@@ -65,7 +65,7 @@ pipeline:
6565

6666
## Testing
6767

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:
6969

7070
```shell
7171
$ fluent-bit -i random -o stdout
@@ -98,4 +98,4 @@ ______ _ _ ______ _ _ ___ _____
9898
[2] random.0: [1475893656, {"rand_value"=>7580417447354808203}]
9999
[3] random.0: [1475893657, {"rand_value"=>1501010137543905482}]
100100
[4] random.0: [1475893658, {"rand_value"=>16238242822364375212}]
101-
```
101+
```

0 commit comments

Comments
 (0)