Skip to content

Commit af34978

Browse files
authored
Standardizing shell commands for several filter docs, part of issue #1872. (#1881)
* Standardizing shell commands, part of issue #1872. Signed-off-by: Eric D. Schabell <[email protected]> * Standardizing shell commands, fixed tabs layout for lua filter doc, part of issue #1872. Signed-off-by: Eric D. Schabell <[email protected]> * Standardizing shell commands for record modifier filter doc, part of issue #1872. Signed-off-by: Eric D. Schabell <[email protected]> * Standardizing shell commands for throttle filter doc, part of issue #1872. Signed-off-by: Eric D. Schabell <[email protected]> * Standardizing shell commands for tensor filter doc, part of issue #1872. Signed-off-by: Eric D. Schabell <[email protected]> --------- Signed-off-by: Eric D. Schabell <[email protected]>
1 parent bfcfbb2 commit af34978

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

pipeline/filters/aws-metadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you run Fluent Bit in a container, you might need to use instance metadata v1
2929
Run Fluent Bit from the command line:
3030

3131
```shell
32-
fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf
32+
$ ./fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf
3333
```
3434

3535
You should see results like this:
@@ -188,4 +188,4 @@ The resulting logs might look like this:
188188

189189
```text
190190
{"log"=>"aws is awesome", "az"=>"us-east-1a", "ec2_instance_id"=>"i-0e66fc7f9809d7168", "Name"=>"fluent-bit-docs-example", "project"=>"fluentbit"}
191-
```
191+
```

pipeline/filters/lua.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pipeline:
5858
match: '*'
5959
```
6060
61-
{% tabs %}
61+
{% endtab %}
6262
{% tab title="fluent-bit.conf" %}
6363
6464
```text
@@ -157,7 +157,7 @@ pipeline:
157157
{% endtab %}
158158
{% tab title="fluent-bit.conf" %}
159159
160-
```
160+
```text
161161
[SERVICE]
162162
flush 1
163163
daemon off

pipeline/filters/record-modifier.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pipeline:
7676
You can run the filter from command line:
7777

7878
```shell
79-
fluent-bit -i mem -o stdout -F record_modifier -p 'Record=hostname ${HOSTNAME}' -p 'Record=product Awesome_Tool' -m '*'
79+
$ ./fluent-bit -i mem -o stdout -F record_modifier -p 'Record=hostname ${HOSTNAME}' -p 'Record=product Awesome_Tool' -m '*'
8080
```
8181

8282
The output looks something like:
@@ -137,7 +137,7 @@ pipeline:
137137
You can also run the filter from command line.
138138

139139
```shell
140-
fluent-bit -i mem -o stdout -F record_modifier -p 'Remove_key=Swap.total' -p 'Remove_key=Swap.free' -p 'Remove_key=Swap.used' -m '*'
140+
$ ./fluent-bit -i mem -o stdout -F record_modifier -p 'Remove_key=Swap.total' -p 'Remove_key=Swap.free' -p 'Remove_key=Swap.used' -m '*'
141141
```
142142

143143
The output looks something like:
@@ -198,11 +198,11 @@ pipeline:
198198
You can also run the filter from command line:
199199

200200
```shell
201-
fluent-bit -i mem -o stdout -F record_modifier -p 'Allowlist_key=Mem.total' -p 'Allowlist_key=Mem.free' -p 'Allowlist_key=Mem.used' -m '*'
201+
$ ./fluent-bit -i mem -o stdout -F record_modifier -p 'Allowlist_key=Mem.total' -p 'Allowlist_key=Mem.free' -p 'Allowlist_key=Mem.used' -m '*'
202202
```
203203

204204
The output looks something like:
205205

206206
```text
207207
[0] mem.local: [1492436998.000000000, {"Mem.total"=>1016024, "Mem.used"=>716672, "Mem.free"=>295332}]
208-
```
208+
```

pipeline/filters/tensorflow.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create a Tensorflow Lite shared library:
2929
1. Run the following command to create the shared library:
3030

3131
```shell
32-
bazel build -c opt //tensorflow/lite/c:tensorflowlite_c # see https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/c
32+
$ ./bazel build -c opt //tensorflow/lite/c:tensorflowlite_c # see https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/c
3333
```
3434

3535
The script creates the shared library
@@ -41,7 +41,7 @@ To create a Tensorflow Lite shared library:
4141
The Tensorflow filter plugin is disabled by default. You must build Fluent Bit with the Tensorflow plugin enabled. In addition, it requires access to Tensorflow Lite header files to compile. Therefore, you must pass the address of the Tensorflow source code on your machine to the [build script](https://github.com/fluent/fluent-bit#build-from-scratch):
4242

4343
```shell
44-
cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ...
44+
$ ./cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ...
4545
```
4646

4747
### Command line
@@ -51,7 +51,7 @@ If the Tensorflow plugin initializes correctly, it reports successful creation o
5151
The command:
5252

5353
```shell
54-
fluent-bit -i mqtt -p 'tag=mqtt.data' -F tensorflow -m '*' -p 'input_field=image' -p 'model_file=/home/user/model.tflite' -p
54+
$ ./fluent-bit -i mqtt -p 'tag=mqtt.data' -F tensorflow -m '*' -p 'input_field=image' -p 'model_file=/home/user/model.tflite' -p
5555
```
5656

5757
produces an output like:
@@ -121,4 +121,4 @@ pipeline:
121121
```
122122

123123
{% endtab %}
124-
{% endtabs %}
124+
{% endtabs %}

pipeline/filters/throttle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ It's suggested to use a configuration file.
112112
The following command will load the Tail plugin and read the content of the `lines.txt` file. Then, the Throttle filter will apply a rate limit and only pass the records which are read below the `rate`:
113113

114114
```shell
115-
bin/fluent-bit -i tail -p 'path=lines.txt' -F throttle -p 'rate=1' -m '*' -o stdout
115+
$ ./fluent-bit -i tail -p 'path=lines.txt' -F throttle -p 'rate=1' -m '*' -o stdout
116116
```
117117

118118
### Configuration File

0 commit comments

Comments
 (0)