Skip to content

Commit 58221a1

Browse files
committed
system-config: add option forced_stacktrace_level
fluent/fluentd#5008 Signed-off-by: Daijiro Fukuda <[email protected]>
1 parent 4be174c commit 58221a1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

deployment/system-config.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,37 @@ NOTE: When enabling log rotation on Windows, log files are separated into `log-s
242242

243243
Please see also [Log Rotation Setting](logging.md#log-rotation-setting).
244244

245+
#### `forced_stacktrace_level`
246+
247+
| type | default | version |
248+
| :--- | :--- | :--- |
249+
| enum | "none" | 1.19.0 |
250+
251+
Specifies `none` or the log level e.g. `trace`, `debug`, `info`, `warn`, `error`, or `fatal`.
252+
253+
If you set a log level, log levels of stacktraces are forced to that level.
254+
255+
Example:
256+
257+
```
258+
<system>
259+
log_level info # This is the default. You can omit this.
260+
<log>
261+
forced_stacktrace_level info
262+
</log>
263+
</system>
264+
```
265+
266+
This setting results in the following behavior:
267+
268+
* All stacktraces initially with `info` level (`log_level`) or higher will be forcibly logged with `info` level (`forced_stacktrace_level`).
269+
270+
Note that stacktraces that do not meet `log_level` are discarded in advance.
271+
Thanks to this, there's no concern that `trace` or `debug`-level stacktraces being excessively output as `info`-level logs.
272+
273+
You can use this option to exclude all stacktraces from an alerting system if monitoring Fluentd's log files directly.
274+
(You don't need this feature if using [@FLUENT_LOG](logging.md#capture-fluentd-logs) because stacktraces are not routed into the `@FLUENT_LOG` label.)
275+
245276
#### `enable_input_metrics`
246277

247278
| type | default | version |

0 commit comments

Comments
 (0)