-
Notifications
You must be signed in to change notification settings - Fork 541
Update the filter docs with YAML configuration examples, the first half of filters in list. Fixes #1872. #1873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
. Signed-off-by: Eric D. Schabell <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
. Signed-off-by: Eric D. Schabell <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
Signed-off-by: Eric D. Schabell <[email protected]>
#1872. Signed-off-by: Eric D. Schabell <[email protected]>
esmerel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ ./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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ ./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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ ./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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ ./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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ ./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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $ ./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 <[email protected]> * Adding YAML examples for ecs metadata filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for geoip2 filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for kubernetes filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for lua filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for record modifier filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for nightfall filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for standard output filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for throttle filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for tensorflow filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> * Adding YAML examples for multiline stacktrace filter doc. Part of issue fluent#1872. Signed-off-by: Eric D. Schabell <[email protected]> --------- Signed-off-by: Eric D. Schabell <[email protected]> Signed-off-by: Tom <[email protected]>
Update the filter docs with YAML configuration examples, the first half of filters in list. Fixes #1872.
Updated the following: