aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine.vinot <antoine.vinot@sonarsource.com>2024-01-22 09:27:07 +0100
committersonartech <sonartech@sonarsource.com>2024-01-29 20:03:16 +0000
commit1db1359200ce95d8c08818f4584c72999ad2f6e8 (patch)
tree41cfbd6513c49d0fd9d89458a2c0e42195b5d453
parente59896fdddb8cc94af8d5356e04cd9c56c24f73f (diff)
downloadsonarqube-1db1359200ce95d8c08818f4584c72999ad2f6e8.tar.gz
sonarqube-1db1359200ce95d8c08818f4584c72999ad2f6e8.zip
SONAR-21227 Update sonar.properties on log files
-rw-r--r--sonar-application/src/main/assembly/conf/sonar.properties19
1 files changed, 17 insertions, 2 deletions
diff --git a/sonar-application/src/main/assembly/conf/sonar.properties b/sonar-application/src/main/assembly/conf/sonar.properties
index 63f50c0c7a5..1e28915db03 100644
--- a/sonar-application/src/main/assembly/conf/sonar.properties
+++ b/sonar-application/src/main/assembly/conf/sonar.properties
@@ -329,13 +329,17 @@
#--------------------------------------------------------------------------------------------------
# LOGGING
-# SonarQube produces logs in 4 logs files located in the same directory (see property sonar.path.logs below),
+# SonarQube produces logs in files located in the same directory (see property sonar.path.logs below),
# one per process:
# Main process (aka. App) logs in sonar.log
# Web Server (aka. Web) logs in web.log
# Compute Engine (aka. CE) logs in ce.log
# Elasticsearch (aka. ES) logs in es.log
-#
+# and two other log files:
+# Access logs
+# Deprecation logs
+
+# Regarding logs for processes:
# Depending on the startup, all 4 files follow the same rolling policy (see sonar.log.rollingPolicy and sonar.log.maxFiles) but it applies
# individually (eg. if sonar.log.maxFiles=4, there can be at most 4 of each files, ie. 16 files in total).
#
@@ -391,6 +395,7 @@
# - unlimited on time rolling policy. Set to zero to disable old file purging.
#sonar.log.maxFiles=7
+# Regarding the Access logs:
# Access log is the list of all the HTTP requests received by server. If enabled, it is stored
# in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as other log file
# (see sonar.log.rollingPolicy and sonar.log.maxFiles).
@@ -408,6 +413,16 @@
# Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID":
#sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
+# Regarding the Deprecation logs:
+# Deprecation log is the list of all calls to deprecated Web API.
+# It is stored in the file {sonar.path.logs}/deprecation.log. This file follows the same rolling policy as other log file
+# (see sonar.log.rollingPolicy and sonar.log.maxFiles).
+
+# Format of deprecation log.
+# See https://docs.sonarsource.com/sonarqube/latest/instance-administration/server-logs-and-system-info/
+# The login of authenticated user is disabled by default.
+# sonar.deprecationLogs.loginEnabled=false
+
#--------------------------------------------------------------------------------------------------
# OTHERS