Skip to content

Commit f68c7d4

Browse files
authored
[doc] update deprecation logging (#83723) (#86857)
more details on how to disable deprecation logging
1 parent 26b30d7 commit f68c7d4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/reference/setup/logging-config.asciidoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,26 @@ critical feature was used, it won't be removed in next major version, but might
208208
be removed in the future.
209209

210210
To stop writing deprecation log messages, set `logger.deprecation.level`
211-
to `OFF`:
211+
to `OFF` in `log4j2.properties` :
212212

213213
[source,properties]
214214
----
215215
logger.deprecation.level = OFF
216216
----
217+
Alternatively, you can change the logging level dynamically:
218+
219+
[source,console]
220+
----
221+
PUT /_cluster/settings
222+
{
223+
"persistent": {
224+
"logger.org.elasticsearch.deprecation": "OFF"
225+
}
226+
}
227+
----
228+
229+
Refer to <<configuring-logging-levels,Configuring logging levels>>.
230+
217231

218232
You can identify what is triggering deprecated functionality if `X-Opaque-Id` was used as an HTTP header.
219233
The user ID is included in the `X-Opaque-ID` field in deprecation JSON logs.

0 commit comments

Comments
 (0)