ℹ️ For new users, we recommend using our native Elasticsearch tools, rather than the standalone App Search product. We are actively developing new features and capabilities in the Elastic Stack to help you build powerful search applications.
Refer to this blog for more information.
Log settings API
editLog 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 } }