Project: Logging Operator (Kube Logging) (Observability and Analysis / Observability)
File: buffer.md

title: Buffer weight: 200 generated_file: true The percentage of chunk size threshold for flushing. output plugin will flush the chunk when actual size reaches chunklimitsize chunk_full_threshold (== 8MB 0.95 in default) The max number of events that each chunks can store in it The max size of each chunks: events will be written into chunks until the size of chunks become this size If you set this option to gzip, you can get Fluentd to compress data records before writing to buffer chunks. The timeout seconds until output plugin decides that async write operation fails Instead of storing unrecoverable chunks in the backup directory, just discard them. This option is new in Fluentd v1.2.6. Disable buffer section (default: false) Default: false,hidden The value to specify to flush/write all buffer chunks at shutdown, or not Default: 60s Default: default (equals to lazy if time is specified as chunk key, interval otherwise) lazy: flush/write chunks once per timekey interval: flush/write chunks per specified time via flush_interval immediate: flush/write chunks immediately after events are appended into chunks The sleep interval seconds of threads between flushes when output plugin flushes waiting chunks next to next The number of threads of output plugins, which is used to write chunks in parallel The sleep interval seconds of threads to wait next flush trial (when no chunks are waiting) How output plugin behaves when its buffer queue is full throwexception: raise exception to show this error in log block: block processing of input plugin to emit events into that buffer dropoldest_chunk: drop/purge oldest chunk to accept newly incoming chunk The path where buffer chunks are stored. The '*' is replaced with random characters. It's highly recommended to leave this default. Default: operator generated The queue length limitation of this buffer plugin instance Limit the number of queued chunks. If you set smaller flush_interval, e.g. 1s, there are lots of small queued chunks in buffer. This is not good with file buffer because it consumes lots of fd resources when output destination has a problem. This parameter mitigates such situations. The base number of exponential backoff for retries If true, plugin will ignore retrytimeout and retrymax_times options and retry flushing forever Default: true The maximum interval seconds for exponential backoff between retries while failing The maximum number of times to retry to flush while failing If true, output plugin will retry after randomized interval not to do burst retries The ratio of retry_timeout to switch to use secondary while failing (Maximum valid value is 1.0) The maximum seconds to retry to flush while failing, until plugin discards buffer chunks exponentialbackoff: wait seconds will become large exponentially per failures periodic: output plugin will retry periodically with fixed intervals (configured via retrywait) Seconds to wait before next retry to flush, or constant factor of exponential backoff When tag is specified as buffer chunk key, output plugin writes events into chunks separately per tags. Default: tag,time Output plugin will flush chunks per specified time (enabled when time is specified in chunk keys) Default: 10m Output plugin decides to use UTC or not to format placeholders using timekey Output plugin writes chunks after timekey_wait seconds later after timekey expiration Default: 1m The timezone (-0700 or Asia/Tokyo) string for formatting timekey placeholders The size limitation of this buffer plugin instance. Once the total size of stored buffer reached this threshold, all append operations will fail with error (and data will be lost) Fluentd core bundles memory and file plugins. 3rd party plugins are also available when installed.