Auditing: Add new options to docs (#52050)

* Auditing: Add new option docs

* add log all status codes

* change option to verbose

* denote status_codes

* Apply suggestions from code review

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* add setup-grafana docs

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
This commit is contained in:
Jo 2022-07-25 15:15:04 +00:00 committed by GitHub
parent feaa037a19
commit 4a12d0f236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -177,6 +177,14 @@ List of enabled loggers.
Keep dashboard content in the logs (request or response fields). This can significantly increase the size of your logs. Keep dashboard content in the logs (request or response fields). This can significantly increase the size of your logs.
### verbose
Log all GET requests and always include request body for generic POST/PUT/PATCH requests.
### log_all_status_codes
Set to false to only log requests with 2xx, 3xx, 401, 403, 500 responses.
## [auditing.logs.file] ## [auditing.logs.file]
### path ### path

View File

@ -315,6 +315,11 @@ enabled = false
loggers = file loggers = file
# Keep dashboard content in the logs (request or response fields); this can significantly increase the size of your logs. # Keep dashboard content in the logs (request or response fields); this can significantly increase the size of your logs.
log_dashboard_content = false log_dashboard_content = false
# Log all GET requests and always include request body for generic POST/PUT/PATCH requests.
verbose = false
# By default Grafana logs requests even if the status code indicates that no changes to the system were made.
# Set to false to only log requests with 2xx, 3xx, 401, 403, 500 responses.
log_all_status_codes = true
``` ```
Each exporter has its own configuration fields. Each exporter has its own configuration fields.