Files
doc-exports/docs/css/umn/css_02_0096.html
zhengxiu 93d856d5c5 css umn 25.6.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-11-25 11:34:43 +00:00

20 lines
1.5 KiB
HTML

<a name="EN-US_TOPIC_0000001933159178"></a><a name="EN-US_TOPIC_0000001933159178"></a>
<h1 class="topictitle1">How Do I Set Slow Query Log Thresholds for an Elasticsearch Cluster of CSS?</h1>
<div id="body1607330549782"><p id="EN-US_TOPIC_0000001933159178__p1353112911355">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:</p>
<pre class="screen" id="EN-US_TOPIC_0000001933159178__screen45241424193517">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"
}</pre>
<ul id="EN-US_TOPIC_0000001933159178__ul106643106523"><li id="EN-US_TOPIC_0000001933159178__li126645102520">If a query takes longer than 10 seconds, a WARN log will be generated.</li><li id="EN-US_TOPIC_0000001933159178__li186931327529">If retrieval takes longer than 500 milliseconds, a DEBUG log will be generated.</li><li id="EN-US_TOPIC_0000001933159178__li194315439527">If an index takes longer than 5 seconds, an INFO log will be generated.</li></ul>
<p id="EN-US_TOPIC_0000001933159178__p23424644319">For details, visit the official website: https://www.elastic.co/guide/cn/elasticsearch/guide/current/logging.html</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0148.html">CSS Cluster Monitoring and O&amp;M</a></div>
</div>
</div>