Skip to content

Commit

Permalink
in_tail: Add option file_cache_advise
Browse files Browse the repository at this point in the history
fluent/fluent-bit#8422

Signed-off-by: Richard Treu <[email protected]>
  • Loading branch information
drbugfinder-work authored Jan 25, 2024
1 parent fe31303 commit d6eecce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/inputs/tail.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The plugin supports the following configuration parameters:
| Tag | Set a tag \(with regex-extract fields\) that will be placed on lines read. E.g. `kube.<namespace_name>.<pod_name>.<container_name>`. Note that "tag expansion" is supported: if the tag includes an asterisk \(\*\), that asterisk will be replaced with the absolute path of the monitored file \(also see [Workflow of Tail + Kubernetes Filter](../filters/kubernetes.md#workflow-of-tail-kubernetes-filter)\). | |
| Tag\_Regex | Set a regex to extract fields from the file name. E.g. `(?<pod_name>[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace_name>[^_]+)_(?<container_name>.+)-` | |
| Static\_Batch\_Size | Set the maximum number of bytes to process per iteration for the monitored static files (files that already exists upon Fluent Bit start). | 50M |

| File\_Cache\_Advise | Set the posix_fadvise in POSIX_FADV_NOREUSE mode. This will reduce the usage of the kernel file cache. | Off |

Note that if the database parameter `DB` is **not** specified, by default the plugin will start reading each target file from the beginning. This also might cause some unwanted behavior, for example when a line is bigger that `Buffer_Chunk_Size` and `Skip_Long_Lines` is not turned on, the file will be read from the beginning of each `Refresh_Interval` until the file is rotated.

Expand Down

0 comments on commit d6eecce

Please sign in to comment.