1
1
# Sysinfo
2
2
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.
4
4
5
- ## Configuration Prameters
5
+ ## Configuration parameters
6
6
7
7
The plugin supports the following configuration parameters:
8
8
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 |
16
16
17
- Some properties are supported by specific platform .
17
+ Some properties are supported by specific platforms .
18
18
19
- ## Getting Started
19
+ ## Get started
20
20
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.
22
22
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.
24
24
25
25
{% tabs %}
26
26
{% tab title="fluent-bit.conf" %}
27
- ```
27
+
28
+ ``` python
28
29
[INPUT ]
29
30
Name dummy
30
31
Tag test
@@ -39,9 +40,11 @@ The following configuration file is to append fluent-bit version and OS name.
39
40
name stdout
40
41
match *
41
42
```
43
+
42
44
{% endtab %}
43
45
44
46
{% tab title="fluent-bit.yaml" %}
47
+
45
48
``` yaml
46
49
pipeline :
47
50
inputs :
@@ -56,17 +59,18 @@ pipeline:
56
59
- name : stdout
57
60
match : ' *'
58
61
` ` `
62
+
59
63
{% endtab %}
60
64
{% endtabs %}
61
65
62
-
63
66
You can also run the filter from command line.
64
67
65
- ` ` `
68
+ ` ` ` shell
66
69
fluent-bit -i dummy -o stdout -F sysinfo -m '*' -p fluentbit_version_key=flb_ver -p os_name_key=os_name
67
70
```
68
71
69
- The output will be
70
- ```
72
+ The output will be something like the following:
73
+
74
+ ``` text
71
75
[0] dummy.0: [[1699172858.989654355, {}], {"message"=>"dummy", "flb_ver"=>"2.2.0", "os_name"=>"linux"}]
72
- ```
76
+ ```
0 commit comments