Skip to content

Commit 012ea74

Browse files
authored
Merge pull request #1699 from fluent/lynettemiles/sc-136161/update-fluent-bit-docs-pipeline-filters-sysinfo
2 parents 73164be + d3fc60c commit 012ea74

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

pipeline/filters/sysinfo.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
# Sysinfo
22

3-
The _Sysinfo Filter_ plugin allows to append system information like fluent-bit version or hostname.
3+
The _Sysinfo_ filter lets you append system information like the Fluent Bit version or hostname.
44

5-
## Configuration Prameters
5+
## Configuration parameters
66

77
The plugin supports the following configuration parameters:
88

9-
|Key|Description|Supported platform|
10-
|---|---|---|
11-
|fluentbit_version_key|Specify the key name for fluent-bit version.| All |
12-
|os_name_key|Specify the key name for os name. e.g. linux, win64 or macos.| All |
13-
|hostname_key|Specify the key name for hostname.| All|
14-
|os_version_key|Specify the key name for os version. It is not supported on some platforms. | Linux |
15-
|kernel_version_key|Specify the key name for kernel version. It is not supported on some platforms.| Linux |
9+
| Key | Description | Supported platform |
10+
| --- | --- | --- |
11+
| `fluentbit_version_key` | Specify the key name for the Fluent Bit version.| All |
12+
| `os_name_key` | Specify the key name for operating system name. For example, `Linux`, `win64` or `macos`.| All |
13+
| `hostname_key`| Specify the key name for hostname. | All |
14+
| `os_version_key` | Specify the key name for the operating system version. Not supported on some platforms. | Linux |
15+
| `kernel_version_key` | Specify the key name for kernel version. Not supported on some platforms.| Linux |
1616

17-
Some properties are supported by specific platform.
17+
Some properties are supported by specific platforms.
1818

19-
## Getting Started
19+
## Get started
2020

21-
In order to start filtering records, you can run the filter from the command line or through the configuration file.
21+
To start filtering records, you can run the filter from the command line or through the configuration file.
2222

23-
The following configuration file is to append fluent-bit version and OS name.
23+
The following configuration file is to append the Fluent Bit version and operating system name.
2424

2525
{% tabs %}
2626
{% tab title="fluent-bit.conf" %}
27-
```
27+
28+
```python
2829
[INPUT]
2930
Name dummy
3031
Tag test
@@ -39,9 +40,11 @@ The following configuration file is to append fluent-bit version and OS name.
3940
name stdout
4041
match *
4142
```
43+
4244
{% endtab %}
4345

4446
{% tab title="fluent-bit.yaml" %}
47+
4548
```yaml
4649
pipeline:
4750
inputs:
@@ -56,17 +59,18 @@ pipeline:
5659
- name: stdout
5760
match: '*'
5861
```
62+
5963
{% endtab %}
6064
{% endtabs %}
6165
62-
6366
You can also run the filter from command line.
6467
65-
```
68+
```shell
6669
fluent-bit -i dummy -o stdout -F sysinfo -m '*' -p fluentbit_version_key=flb_ver -p os_name_key=os_name
6770
```
6871

69-
The output will be
70-
```
72+
The output will be something like the following:
73+
74+
```text
7175
[0] dummy.0: [[1699172858.989654355, {}], {"message"=>"dummy", "flb_ver"=>"2.2.0", "os_name"=>"linux"}]
72-
```
76+
```

vale-styles/FluentBit/Spelling-exceptions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ subcommands
169169
subquery
170170
subrecord
171171
substring
172+
sysinfo
172173
syslog
173174
systemctl
174175
systemd

0 commit comments

Comments
 (0)