Skip to content

Commit 656fde1

Browse files
authored
Merge pull request #1731 from fluent/lynettemiles/sc-136183/update-fluent-bit-docs-pipeline-inputs-kernel
2 parents e372b73 + 8d3ceb3 commit 656fde1

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

pipeline/inputs/kernel-logs.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
# Kernel Logs
1+
# Kernel logs
22

3-
The **kmsg** input plugin reads the Linux Kernel log buffer since the beginning, it gets every record and parse it field as priority, sequence, seconds, useconds, and message.
3+
The _kmsg_ input plugin reads the Linux Kernel log buffer from the beginning. It gets every record and parses fields as `priority`, `sequence`, `seconds`, `useconds`, and `message`.
44

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

77
| Key | Description | Default |
88
| :--- | :--- | :--- |
9-
| Prio_Level | The log level to filter. The kernel log is dropped if its priority is more than prio_level. Allowed values are 0-8. Default is 8. 8 means all logs are saved. | 8 |
10-
| Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
9+
| `Prio_Level` | The log level to filter. The kernel log is dropped if its priority is more than `prio_level`. Allowed values are `0`-`8`. `8` means all logs are saved. | `8` |
10+
| `Threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
1111

12-
## Getting Started
12+
## Get started
1313

14-
In order to start getting the Linux Kernel messages, you can run the plugin from the command line or through the configuration file:
14+
To start getting the Linux Kernel messages, you can run the plugin from the command line or through the configuration file:
1515

16-
### Command Line
16+
### Command line
1717

1818
```bash
19-
$ bin/fluent-bit -i kmsg -t kernel -o stdout -m '*'
19+
bin/fluent-bit -i kmsg -t kernel -o stdout -m '*'
20+
```
21+
22+
Which returns output similar to:
23+
24+
```text
2025
Fluent Bit v1.x.x
2126
* Copyright (C) 2019-2020 The Fluent Bit Authors
2227
* Copyright (C) 2015-2018 Treasure Data
@@ -30,14 +35,15 @@ Fluent Bit v1.x.x
3035
...
3136
```
3237

33-
As described above, the plugin processed all messages that the Linux Kernel reported, the output has been truncated for clarification.
38+
As described previously, the plugin processed all messages that the Linux Kernel reported. The output has been truncated for clarification.
3439

35-
### Configuration File
40+
### Configuration file
3641

37-
In your main configuration file append the following _Input_ & _Output_ sections:
42+
In your main configuration file append the following `Input` and `Output` sections:
3843

3944
{% tabs %}
4045
{% tab title="fluent-bit.conf" %}
46+
4147
```python
4248
[INPUT]
4349
Name kmsg
@@ -47,9 +53,11 @@ In your main configuration file append the following _Input_ & _Output_ sections
4753
Name stdout
4854
Match *
4955
```
56+
5057
{% endtab %}
5158

5259
{% tab title="fluent-bit.yaml" %}
60+
5361
```yaml
5462
pipeline:
5563
inputs:
@@ -59,5 +67,6 @@ pipeline:
5967
- name: stdout
6068
match: '*'
6169
```
70+
6271
{% endtab %}
6372
{% endtabs %}

0 commit comments

Comments
 (0)