You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Input plugins listing that all need YAML examples and standard layout cleanup. Fixes#1859. (#1860)
* Adding YAML examples and standardizing shell usage, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for splunk input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Standard Input input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Statsd input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Syslog input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Systemd input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Tail input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for TCP input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Thermal input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for UDP input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Windows Event Log input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Windows Event Log (winevtlog) input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
* Adding YAML examples and standardizing shell usage for Windows Exporter Metrics input plugin, part of issue #1859.
Signed-off-by: Eric D. Schabell <[email protected]>
---------
Signed-off-by: Eric D. Schabell <[email protected]>
Copy file name to clipboardExpand all lines: pipeline/inputs/serial-interface.md
+92-32Lines changed: 92 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,31 +24,47 @@ To retrieve messages by using the Serial interface, you can run the plugin from
24
24
The following example loads the input serial plugin where it set a `Bitrate` of `9600`, listens from the `/dev/tnt0` interface, and uses the custom tag `data` to route the message.
25
25
26
26
```shell
27
-
fluent-bit -i serial -t data -p File=/dev/tnt0 -p BitRate=9600 -o stdout -m '*'
27
+
$ fluent-bit -i serial -t data -p File=/dev/tnt0 -p BitRate=9600 -o stdout -m '*'
28
28
```
29
29
30
30
The interface (`/dev/tnt0`) is an emulation of the serial interface. Further examples will write some message to the other end of the interface. For example, `/dev/tnt1`.
31
31
32
32
```shell
33
-
echo'this is some message'> /dev/tnt1
33
+
$ echo'this is some message'> /dev/tnt1
34
34
```
35
35
36
36
In Fluent Bit you can run the command:
37
37
38
-
```bash
39
-
fluent-bit -i serial -t data -p File=/dev/tnt0 -p BitRate=9600 -o stdout -m '*'
38
+
```shell
39
+
$ fluent-bit -i serial -t data -p File=/dev/tnt0 -p BitRate=9600 -o stdout -m '*'
40
40
```
41
41
42
42
Which should produce output like:
43
43
44
44
```text
45
-
Fluent Bit v1.x.x
46
-
* Copyright (C) 2019-2020 The Fluent Bit Authors
47
-
* Copyright (C) 2015-2018 Treasure Data
45
+
Fluent Bit v4.0.3
46
+
* Copyright (C) 2015-2025 The Fluent Bit Authors
48
47
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
[2025/07/01 14:44:47] [ info] [output:stdout:stdout.0] worker #0 started
76
111
[0] data: [1463781902, {"msg"=>"aa"}]
77
112
[1] data: [1463781902, {"msg"=>"bb"}]
78
113
[2] data: [1463781902, {"msg"=>"cc"}]
@@ -83,7 +118,27 @@ Copyright (C) Treasure Data
83
118
84
119
In your main configuration file append the following sections:
85
120
86
-
```python
121
+
{% tabs %}
122
+
{% tab title="fluent-bit.yaml" %}
123
+
124
+
```yaml
125
+
pipeline:
126
+
inputs:
127
+
- name: serial
128
+
tag: data
129
+
file: /dev/tnt0
130
+
bitrate: 9600
131
+
separator: X
132
+
133
+
outputs:
134
+
- name: stdout
135
+
match: '*'
136
+
```
137
+
138
+
{% endtab %}
139
+
{% tab title="fluent-bit.conf" %}
140
+
141
+
```text
87
142
[INPUT]
88
143
Name serial
89
144
Tag data
@@ -96,6 +151,9 @@ In your main configuration file append the following sections:
96
151
Match *
97
152
```
98
153
154
+
{% endtab %}
155
+
{% endtabs %}
156
+
99
157
## Emulating a serial interface on Linux
100
158
101
159
You can emulate a serial interface on your Linux system and test the serial input plugin locally when you don't have an interface in your computer. The following procedure has been tested on Ubuntu 15.04 running Linux Kernel 4.0.
@@ -104,43 +162,45 @@ You can emulate a serial interface on your Linux system and test the serial inpu
104
162
105
163
1. Download the sources:
106
164
107
-
```bash
108
-
git clone https://github.com/freemed/tty0tty
165
+
```shell
166
+
$ git clone https://github.com/freemed/tty0tty
109
167
```
110
168
111
-
1. Unpack and compile:
169
+
2. Unpack and compile:
112
170
113
-
```bash
114
-
cd tty0tty/module
115
-
make
171
+
```shell
172
+
$ cd tty0tty/module
173
+
174
+
$ make
116
175
```
117
176
118
-
1. Copy the new kernel module into the kernel modules directory:
177
+
3. Copy the new kernel module into the kernel modules directory:
0 commit comments