Skip to content

Commit 4389cf2

Browse files
committed
Add mem_buf_limit example
Signed-off-by: Wesley Pettit <[email protected]>
1 parent e227d20 commit 4389cf2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

administration/buffering-and-storage.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ The workaround of `mem_buf_limit` is good for certain scenarios and environments
2626

2727
For full data safety guarantee, use filesystem buffering.
2828

29+
Here is an example input definition:
30+
31+
```
32+
[INPUT]
33+
Name tcp
34+
Listen 0.0.0.0
35+
Port 5170
36+
Format none
37+
Tag tcp-logs
38+
Mem_Buf_Limit 50MB
39+
```
40+
41+
If this input uses more than 50MB memory to buffer logs, you will get a warning like this in the Fluent Bit logs:
42+
```
43+
[input] tcp.1 paused (mem buf overlimit)
44+
```
45+
2946
#### Filesystem buffering to the rescue
3047

3148
Filesystem buffering enabled helps with backpressure and overall memory control.

0 commit comments

Comments
 (0)