Update the filter docs with YAML configuration examples, the first half of filters in list. Fixes #1872. - #1873
Conversation
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
Signed-off-by: Eric D. Schabell <eric@schabell.org>
#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org>
esmerel
left a comment
There was a problem hiding this comment.
Stylistic suggestions mostly but otherwise this covers a lot of good updates.
|
|
||
| ```shell | ||
| bin/fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf | ||
| $ ./fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf |
There was a problem hiding this comment.
| $ ./fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf | |
| fluent-bit -c /PATH_TO_CONF_FILE/fluent-bit.conf |
We don't put the prompt in commands - it prevents a direct copy & paste, and markdownlint errors.
| Below configurations assume a properly configured parsers file and 'storage.path' variable defined in the services | ||
| section of the fluent bit configuration (not shown below). |
There was a problem hiding this comment.
| Below configurations assume a properly configured parsers file and 'storage.path' variable defined in the services | |
| section of the fluent bit configuration (not shown below). | |
| The following configurations assume a properly configured parsers file and `storage.path` variable defined in the services section of the Fluent Bit configuration (not shown). |
We try not to use positional language, and we can't use line wraps because gitbook renders them and it makes the pages look bad.
| #### Example 3: Attach cluster metadata to non-container logs | ||
|
|
||
| This examples shows a use case for the `Cluster_Metadata_Only` option- attaching cluster metadata to ECS Agent logs. | ||
| This examples shows a use case for the `Cluster_Metadata_Only` option attaching cluster metadata to ECS Agent logs. |
There was a problem hiding this comment.
| This examples shows a use case for the `Cluster_Metadata_Only` option attaching cluster metadata to ECS Agent logs. | |
| This example shows a use case for the `Cluster_Metadata_Only` option attaching cluster metadata to ECS Agent logs. |
| 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 '*' |
There was a problem hiding this comment.
| $ ./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 '*' |
| 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 '*' |
There was a problem hiding this comment.
| $ ./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 '*' |
| ```shell copy | ||
| 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 '*' | ||
| ```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 '*' |
There was a problem hiding this comment.
| $ ./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 script creates the shared library | ||
| `bazel-bin/tensorflow/lite/c/libtensorflowlite_c.so`. | ||
| 1. Copy the library to a location such as `/usr/lib` that can be used by Fluent Bit. | ||
| 4. Copy the library to a location such as `/usr/lib` that can be used by Fluent Bit. |
There was a problem hiding this comment.
| 4. Copy the library to a location such as `/usr/lib` that can be used by Fluent Bit. | |
| 1. Copy the library to a location such as `/usr/lib` that can be used by Fluent Bit. |
Markdown increments numbers on its own. We do not increment numbers.
| ```bash | ||
| cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ... | ||
| ```shell | ||
| $ ./cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ... |
There was a problem hiding this comment.
| $ ./cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ... | |
| cmake -DFLB_FILTER_TENSORFLOW=On -DTensorflow_DIR=<AddressOfTensorflowSourceCode> ... |
| ```bash | ||
| bin/fluent-bit -i mqtt -p 'tag=mqtt.data' -F tensorflow -m '*' -p 'input_field=image' -p 'model_file=/home/user/model.tflite' -p | ||
| ```shell | ||
| $ ./fluent-bit -i mqtt -p 'tag=mqtt.data' -F tensorflow -m '*' -p 'input_field=image' -p 'model_file=/home/user/model.tflite' -p |
There was a problem hiding this comment.
| $ ./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 |
…lf of filters in list. Fixes fluent#1872. (fluent#1873) * Adding YAML examples for aws metadata filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for ecs metadata filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for geoip2 filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for kubernetes filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for lua filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for record modifier filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for nightfall filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for standard output filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for throttle filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for tensorflow filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> * Adding YAML examples for multiline stacktrace filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <eric@schabell.org> --------- Signed-off-by: Eric D. Schabell <eric@schabell.org> Signed-off-by: Tom <yao.lin@siemens.com>
Update the filter docs with YAML configuration examples, the first half of filters in list. Fixes #1872.
Updated the following: