Fix elasticsearch.queries -> elasticsearch.query (#119941) (#119955)

* Fix elasticsearch.queries -> elasticsearch.query

* Fix another elasticsearch.queries -> elasticsearch.query

Co-authored-by: Rudolf Meijering <rudolf.meijering@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-30 08:57:54 -05:00 committed by GitHub
parent 48e36c283b
commit 017a70f59c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@
# Logs queries sent to Elasticsearch.
#logging.loggers:
# - name: elasticsearch.queries
# - name: elasticsearch.query
# level: debug
# Logs http responses.

View file

@ -250,11 +250,11 @@ const deprecations: ConfigDeprecationProvider = () => [
if (es.logQueries === true) {
addDeprecation({
configPath: `${fromPath}.logQueries`,
message: `Setting [${fromPath}.logQueries] is deprecated and no longer used. You should set the log level to "debug" for the "elasticsearch.queries" context in "logging.loggers".`,
message: `Setting [${fromPath}.logQueries] is deprecated and no longer used. You should set the log level to "debug" for the "elasticsearch.query" context in "logging.loggers".`,
correctiveActions: {
manualSteps: [
`Remove Setting [${fromPath}.logQueries] from your kibana configs`,
`Set the log level to "debug" for the "elasticsearch.queries" context in "logging.loggers".`,
`Set the log level to "debug" for the "elasticsearch.query" context in "logging.loggers".`,
],
},
});