IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Log settings API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Log settings API
editAPI reference for log settings.
Read log settings
editGet log settings.
GET <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/log_settings
# 200 OK
{
"api": {
"enabled": true
},
"analytics": {
"enabled": true
}
}
Update log settings
editPut or patch log settings to set custom values.
PUT <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/log_settings { "api": { "enabled": <value> }, "analytics": { "enabled": <value> } }
or
PATCH <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/log_settings { "api": { "enabled": <value> }, "analytics": { "enabled": <value> } }
Example: Disable API logging
PUT <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/log_settings { "api": { "enabled": false } }
# 200 OK
{
"api": {
"enabled": false
},
"analytics": {
"enabled": true
}
}
Remove log settings
editDelete all log settings, restoring default behavior.
DELETE <ENTERPRISE_SEARCH_BASE_URL>/api/as/v1/log_settings
# 200 OK
{
"api": {
"enabled": true
},
"analytics": {
"enabled": true
}
}