diff --git a/README.md b/README.md index b4dd311..651f31a 100644 --- a/README.md +++ b/README.md @@ -124,40 +124,6 @@ Specify first line of multiline by regular expression. ``` -You can handle timeout events and remaining buffers on shutdown this plugin. - -```aconf - -``` - -Handle timeout log lines the same as normal logs. - -```aconf - - @type concat - key message - multiline_start_regexp /^Start/ - flush_interval 5 - timeout_label @NORMAL - - - - @type relabel - @label @NORMAL - - - -``` - Handle single line JSON from Docker containers. ```aconf @@ -252,6 +218,40 @@ Handle containerd/cri in Kubernetes. ``` +### Timeout Handling and Preventing Log Loss + +When a multiline log is incomplete and reaches the `flush_interval`, the plugin flushes the remaining buffer. **These timeout events are routed to the `@ERROR` label by default**. + +**If you do not explicitly handle these timeout events, your last log lines will be silently dropped.** + +To prevent data loss and handle timeout logs the same as normal logs, you **must** configure `timeout_label` and set up a corresponding `