@@ -21,7 +21,7 @@ For all next steps we will run Fluent Bit from the command line, and for simplic
2121
2222``` bash
2323$ docker run -ti fluent/fluent-bit:1.4 /fluent-bit/bin/fluent-bit --version
24- Fluent Bit v1.4.0
24+ Fluent Bit v1.8.2
2525```
2626
2727### 2. Parse sample files
@@ -30,18 +30,19 @@ The samples file contains JSON records. On this command, we are appending the Pa
3030
3131``` bash
3232$ docker run -ti -v ` pwd` /sp-samples-1k.log:/sp-samples-1k.log \
33- fluent/fluent-bit:1.4 \
33+ fluent/fluent-bit:1.8.2 \
3434 /fluent-bit/bin/fluent-bit -R /fluent-bit/etc/parsers.conf \
3535 -i tail -p path=/sp-samples-1k.log \
3636 -p parser=json \
37+ -p read_from_head=true \
3738 -o stdout -f 1
3839```
3940
4041The command above will simply print the parsed content to the standard output interface. The content will print the _ Tag_ associated to each record and an array with two fields: record timestamp and record map:
4142
4243``` text
43- Fluent Bit v1.4.0
44- * Copyright (C) 2019-2020 The Fluent Bit Authors
44+ Fluent Bit v1.8.2
45+ * Copyright (C) 2019-2021 The Fluent Bit Authors
4546* Copyright (C) 2015-2018 Treasure Data
4647* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
4748* https://fluentbit.io
@@ -73,6 +74,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
7374 -i tail \
7475 -p path=/sp-samples-1k.log \
7576 -p parser=json \
77+ -p read_from_head=true \
7678 -T " SELECT word, num FROM STREAM:tail.0 WHERE country='Chile';" \
7779 -o null -f 1
7880```
@@ -93,7 +95,7 @@ The following query is similar to the one in the previous step, but this time we
9395
9496``` bash
9597$ docker run -ti -v ` pwd` /sp-samples-1k.log:/sp-samples-1k.log \
96- fluent/fluent-bit:1.2 \
98+ fluent/fluent-bit:1.8.2 \
9799 /fluent-bit/bin/fluent-bit \
98100 -R /fluent-bit/etc/parsers.conf \
99101 -i tail \
@@ -121,7 +123,7 @@ Grouping results aims to simplify data processing and when used in a defined win
121123
122124``` bash
123125$ docker run -ti -v ` pwd` /sp-samples-1k.log:/sp-samples-1k.log \
124- fluent/fluent-bit:1.2 \
126+ fluent/fluent-bit:1.8.2 \
125127 /fluent-bit/bin/fluent-bit \
126128 -R /fluent-bit/etc/parsers.conf \
127129 -i tail \
@@ -148,12 +150,13 @@ This can be done using the **CREATE STREAM** statement that will also tag result
148150
149151``` bash
150152$ docker run -ti -v ` pwd` /sp-samples-1k.log:/sp-samples-1k.log \
151- fluent/fluent-bit:1.2 \
153+ fluent/fluent-bit:1.8.2 \
152154 /fluent-bit/bin/fluent-bit \
153155 -R /fluent-bit/etc/parsers.conf \
154156 -i tail \
155157 -p path=/sp-samples-1k.log \
156158 -p parser=json \
159+ -p read_from_head=true \
157160 -T " CREATE STREAM results WITH (tag='sp-results') \
158161 AS \
159162 SELECT country, AVG(num) FROM STREAM:tail.0 \
@@ -177,12 +180,13 @@ Fluent Bit have the notion of streams, and every input plugin instance gets a de
177180
178181``` bash
179182$ docker run -ti -v ` pwd` /sp-samples-1k.log:/sp-samples-1k.log \
180- fluent/fluent-bit:1.4 \
183+ fluent/fluent-bit:1.8.2 \
181184 /fluent-bit/bin/fluent-bit \
182185 -R /fluent-bit/etc/parsers.conf \
183186 -i tail \
184187 -p path=/sp-samples-1k.log \
185188 -p parser=json \
189+ -p read_from_head=true \
186190 -p alias=samples \
187191 -T " CREATE STREAM results WITH (tag='sp-results') \
188192 AS \
0 commit comments