From 5c07b3a42ed81ee759adb6bb12ca6ef5370f593f Mon Sep 17 00:00:00 2001 From: Richard Treu Date: Thu, 25 Jan 2024 16:08:43 +0100 Subject: [PATCH] in_tail: Add option file_cache_advise https://github.com/fluent/fluent-bit/pull/8422 Signed-off-by: Richard Treu --- pipeline/inputs/tail.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/tail.md b/pipeline/inputs/tail.md index fec3c2b47..16c00ede9 100644 --- a/pipeline/inputs/tail.md +++ b/pipeline/inputs/tail.md @@ -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...`. 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. `(?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?[^_]+)_(?.+)-` | | | 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_DONTNEED mode. This will reduce the usage of the kernel file cache. This option is ignored if not running on Linux. | On | 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.