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
Exclude integration error logs by default. (#1816)
* Exclude integration error logs by default (Except the one causing to exit with status > 1) but allow including them using filters.
* Add Error and Fatal Logs inclussion on log_configuration.md
Copy file name to clipboardExpand all lines: docs/log_configuration.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ strongly recommend using the new configuration.
41
41
The new log configuration has added two new options to filter logs based on key-values (fields). They can be used in
42
42
order to remove logging noise in a troubleshooting scenario.
43
43
44
-
By default, all entries will be included* in the logs (`include_filters`). To exclude some entries, we must define the
44
+
By default, all entries will be included* in the logs (`include_filters`) except the integration execution errors. To exclude some entries, we must define the
45
45
key-values to remove using the `exclude_filters` option. The following text is a usual agent's log line:
46
46
47
47
`time="2022-06-10T15:46:38Z" level=debug msg="Integration instances finished their execution. Waiting until next interval." component=integrations.runner.Runner integration_name=nri-flex runner_uid=c03734e49d`
@@ -79,6 +79,16 @@ log:
79
79
- nri-nginx
80
80
```
81
81
82
+
* Only general information from an integration execution is logged, Error and Fatal logs are only visible under debug level. If we want to always show them under any log level for a specific integration we'll need to add it under the include_filters:
83
+
84
+
```yaml
85
+
log:
86
+
include_filters:
87
+
integration_name:
88
+
- nri-flex
89
+
- nri-nginx
90
+
```
91
+
82
92
* The integration supervisor trace logs are excluded by default due the big amount of produced log entries, the
0 commit comments