Diese Seite ist in Ihrer lokalen Sprache noch nicht verfügbar. Wir arbeiten daran, weitere Sprachversionen hinzuzufügen. Vielen Dank für Ihre Unterstützung.

On this page

Show all

Help Center/ Cloud Search Service/ FAQs/ Using CSS Cluster Search Engines/ How Do I Set Slow Query Log Thresholds for an Elasticsearch Cluster of CSS?

How Do I Set Slow Query Log Thresholds for an Elasticsearch Cluster of CSS?

Updated on 2024-12-02 GMT+08:00

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

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback