Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pipeline/filters/aws-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ If you run Fluent Bit in a container, you might need to use instance metadata v1
Run Fluent Bit from the command line:

```shell
fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf
$ ./fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf
```

You should see results like this:
Expand Down Expand Up @@ -188,4 +188,4 @@ The resulting logs might look like this:

```text
{"log"=>"aws is awesome", "az"=>"us-east-1a", "ec2_instance_id"=>"i-0e66fc7f9809d7168", "Name"=>"fluent-bit-docs-example", "project"=>"fluentbit"}
```
```
4 changes: 2 additions & 2 deletions pipeline/filters/lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pipeline:
match: '*'
```

{% tabs %}
{% endtab %}
{% tab title="fluent-bit.conf" %}

```text
Expand Down Expand Up @@ -157,7 +157,7 @@ pipeline:
{% endtab %}
{% tab title="fluent-bit.conf" %}

```
```text
[SERVICE]
flush 1
daemon off
Expand Down
8 changes: 4 additions & 4 deletions pipeline/filters/record-modifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pipeline:
You can run the filter from command line:

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

The output looks something like:
Expand Down Expand Up @@ -137,7 +137,7 @@ pipeline:
You can also run the filter from command line.

```shell
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 '*'
$ ./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 '*'
```

The output looks something like:
Expand Down Expand Up @@ -198,11 +198,11 @@ pipeline:
You can also run the filter from command line:

```shell
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 '*'
$ ./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 '*'
```

The output looks something like:

```text
[0] mem.local: [1492436998.000000000, {"Mem.total"=>1016024, "Mem.used"=>716672, "Mem.free"=>295332}]
```
```
8 changes: 4 additions & 4 deletions pipeline/filters/tensorflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To create a Tensorflow Lite shared library:
1. Run the following command to create the shared library:

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

The script creates the shared library
Expand All @@ -41,7 +41,7 @@ To create a Tensorflow Lite shared library:
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):

```shell
cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ...
$ ./cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ...
```

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

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

produces an output like:
Expand Down Expand Up @@ -121,4 +121,4 @@ pipeline:
```

{% endtab %}
{% endtabs %}
{% endtabs %}
2 changes: 1 addition & 1 deletion pipeline/filters/throttle.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ It's suggested to use a configuration file.
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`:

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

### Configuration File
Expand Down