You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you specify `root_dir` in [system configuration](../deployment/system-config.md) and [@id](../configuration/plugin-common-parameters.md#id) of the plugin,
66
+
then you can omit this parameter.
67
+
68
+
```text
69
+
<system>
70
+
root_dir /var/log/fluentd
71
+
</system>
72
+
73
+
...
74
+
75
+
<match pattern>
76
+
@id test_id
77
+
...
78
+
<buffer>
79
+
@type file
80
+
</buffer>
81
+
</match>
82
+
```
83
+
84
+
This config outputs the buffer chunk files as follows. The directory `{root_dir}/worker{worker_id}/{@id}/buffer` is used for the path.
85
+
In this case, the `worker{worker_id}` directory is created even for a single worker.
Please make sure that you have **enough space in the path directory**. Running out of disk space is a problem frequently reported by users.
19
93
@@ -37,18 +111,47 @@ Changes the suffix of the buffer file.
37
111
38
112
This parameter is useful when `.log` is not fit for your environment. See also [this issue's comment](https://github.com/fluent/fluentd/issues/2236#issuecomment-514733974).
39
113
40
-
## Example
114
+
## Tips
115
+
116
+
### Customize a filename of the buffer chunk
117
+
118
+
You can customize the prefix of filename (`buffer` by default) by adding `.*` to the end of the `path` parameter.
41
119
42
120
```text
43
121
<match pattern>
122
+
...
44
123
<buffer>
45
124
@type file
46
-
path /var/log/fluent/myapp.*.buffer
125
+
path /var/log/fluent/buf/custom.*
47
126
</buffer>
48
127
</match>
49
128
```
50
129
51
-
## Tips
130
+
This config outputs the buffer chunk files as follows. The prefix `buffer` is changed to `custom`.
0 commit comments