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
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:
193
209
210
+
{% tabs %}
211
+
{% tab title="fluent-bit.conf" %}
194
212
```text
195
213
# Note this is generally added to parsers.conf and referenced in [SERVICE]
196
214
[PARSER]
@@ -210,6 +228,31 @@ If we want to further parse the entire event we can add additional parsers with
@@ -262,12 +305,26 @@ Fluent Bit keep the state or checkpoint of each file through using a SQLite data
262
305
263
306
The SQLite journaling mode enabled is `Write Ahead Log` or `WAL`. This allows to improve performance of read and write operations to disk. When enabled, you will see in your file system additional files being created, consider the following configuration statement:
264
307
308
+
{% tabs %}
309
+
{% tab title="fluent-bit.conf" %}
265
310
```text
266
311
[INPUT]
267
312
name tail
268
313
path /var/log/containers/*.log
269
314
db test.db
270
315
```
316
+
{% endtab %}
317
+
318
+
{% tab title="fluent-bit.yaml" %}
319
+
```yaml
320
+
pipeline:
321
+
inputs:
322
+
- name: tail
323
+
path: /var/log/containers/*.log
324
+
db: test.db
325
+
```
326
+
{% endtab %}
327
+
{% endtabs %}
271
328
272
329
The above configuration enables a database file called `test.db` and in the same path for that file SQLite will create two additional files:
273
330
@@ -284,4 +341,4 @@ The `WAL` mechanism give us higher performance but also might increase the memor
284
341
285
342
File rotation is properly handled, including logrotate's _copytruncate_ mode.
286
343
287
-
Note that the `Path` patterns **cannot** match the rotated files. Otherwise, the rotated file would be read again and lead to duplicate records.
344
+
Note that the `Path` patterns **cannot** match the rotated files. Otherwise, the rotated file would be read again and lead to duplicate records.
0 commit comments