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
Copy file name to clipboardExpand all lines: installation/docker.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,3 +84,4 @@ Alpine Linux uses Musl C library instead of Glibc. Musl is not fully compatible
84
84
Our Docker containers images are deployed thousands of times per day, we take security and stability very seriously.
85
85
86
86
The _latest_ tag _most of the time_ points to the latest stable image. When we release a major update to Fluent Bit like for example from v1.3.x to v1.4.0, we don't move _latest_ tag until 2 weeks after the release. That give us extra time to verify with our community that everything works as expected.
Copy file name to clipboardExpand all lines: pipeline/inputs/tail.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,64 @@ In your main configuration file append the following _Input_ & _Output_ sections
79
79
Match *
80
80
```
81
81
82
+
### Multi-line example
83
+
84
+
When using multi-line configuration you need to first specify `Multiline On` in the configuration and use the `Parser_Firstline` and additional parser parameters `Parser_N` if needed. If we are trying to read the following Java Stacktrace as a single event
85
+
86
+
```text
87
+
Dec 14 06:41:08 Exception in thread "main" java.lang.RuntimeException: Something has gone wrong, aborting!
88
+
at com.myproject.module.MyProject.badMethod(MyProject.java:22)
89
+
at com.myproject.module.MyProject.oneMoreMethod(MyProject.java:18)
90
+
at com.myproject.module.MyProject.anotherMethod(MyProject.java:14)
91
+
at com.myproject.module.MyProject.someMethod(MyProject.java:10)
92
+
at com.myproject.module.MyProject.main(MyProject.java:6)
93
+
```
94
+
95
+
We need to specify a `Parser_Firstline` parameter that matches the first line of a multi-line event. Once a match is made Fluent Bit will read all future lines until another match with `Parser_Firstline` is made .
96
+
97
+
In the case above we can use the following parser, that extracts the Time as `time` and the remaining portion of the multiline as `log`
If we want to further parse the entire event we can add additional parsers with `Parser_N` where N is an integer. The final Fluent Bit configuration looks like the following:
109
+
110
+
```text
111
+
# Note this is generally added to parsers.conf and referenced in [SERVICE]
[0] tail.0: [1607928428.466041977, {"message"=>"Exception in thread "main" java.lang.RuntimeException: Something has gone wrong, aborting!
134
+
at com.myproject.module.MyProject.badMethod(MyProject.java:22)
135
+
at com.myproject.module.MyProject.oneMoreMethod(MyProject.java:18)
136
+
at com.myproject.module.MyProject.anotherMethod(MyProject.java:14)
137
+
at com.myproject.module.MyProject.someMethod(MyProject.java:10)", "message"=>"at com.myproject.module.MyProject.main(MyProject.java:6)"}]
138
+
```
139
+
82
140
## Tailing files keeping state <aid="keep_state"></a>
83
141
84
142
The _tail_ input plugin a feature to save the state of the tracked files, is strongly suggested you enabled this. For this purpose the **db** property is available, e.g:
0 commit comments