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
77The 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
4649pipeline :
4750 inputs :
@@ -56,17 +59,18 @@ pipeline:
5659 - name : stdout
5760 match : ' *'
5861` ` `
62+
5963{% endtab %}
6064{% endtabs %}
6165
62-
6366You can also run the filter from command line.
6467
65- ` ` `
68+ ` ` ` shell
6669fluent-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+ ```
0 commit comments