How Do I Configure the Threshold for CSS Slow Query Logs?
The slow query log settings of CSS are the same as those of Elasticsearch. You can configure slow query logs via the _settings API. For example, you can run the following command in Kibana to set the index level:
PUT /my_index/_settings { "index.search.slowlog.threshold.query.warn": "10s", "index.search.slowlog.threshold.fetch.debug": "500ms", "index.indexing.slowlog.threshold.index.info": "5s" }
- If a query takes longer than 10 seconds, a WARN log will be generated.
- If retrieval takes longer than 500 milliseconds, a DEBUG log will be generated.
- If an index takes longer than 5 seconds, an INFO log will be generated.
For details, visit the official website: https://www.elastic.co/guide/cn/elasticsearch/guide/current/logging.html
Functions FAQs
- How Do I Use Elasticsearch Custom Scoring to Query Data?
- Can I Migrate CSS Data to Other Tenants?
- How Do I Configure the Threshold for CSS Slow Query Logs?
- How Do I Update the CSS Lifecycle Policy?
- How Do I Set the Numbers of Index Copies to 0 in Batches?
- How Do I Specify Multiple Indexes When Creating Snapshots?
- How Can I Find All Snapshots in an OBS Bucket When I Create a Snapshot for a CSS Cluster?
- Does CSS Create Full or Incremental Snapshots for Clusters?
- If a CSS Cluster Snapshot Is Restored to Another Cluster, Will the Indexes of the Destination Cluster Be Overwritten?
- How Do I Query Snapshot Information?
- Can I Restore a Deleted Cluster?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more