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
@@ -53,6 +54,7 @@ The fluent-bit source repository contains a full example of using fluent-bit to
53
54
brokers kafka-broker:9092
54
55
topics fb-source
55
56
poll_ms 100
57
+
format json
56
58
57
59
[FILTER]
58
60
Name lua
@@ -68,6 +70,8 @@ The fluent-bit source repository contains a full example of using fluent-bit to
68
70
69
71
The above will connect to the broker listening on `kafka-broker:9092` and subscribe to the `fb-source` topic, polling for new messages every 100 milliseconds.
70
72
73
+
Since the payload will be in json format, we ask the plugin to automatically parse the payload with `format json`.
74
+
71
75
Every message received is then processed with `kafka.lua` and sent back to the `fb-sink` topic of the same broker.
72
76
73
77
The example can be executed locally with `make start` in the `examples/kafka_filter` directory (docker/compose is used).
0 commit comments