forked from laiweijian4/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
20 lines
1.4 KiB
HTML
20 lines
1.4 KiB
HTML
<a name="css_02_0096"></a><a name="css_02_0096"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Configure the Threshold for CSS Slow Query Logs?</h1>
|
|
<div id="body1607330549782"><p id="css_02_0096__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="css_02_0096__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="css_02_0096__ul106643106523"><li id="css_02_0096__li126645102520">If a query takes longer than 10 seconds, a WARN log will be generated.</li><li id="css_02_0096__li186931327529">If retrieval takes longer than 500 milliseconds, a DEBUG log will be generated.</li><li id="css_02_0096__li194315439527">If an index takes longer than 5 seconds, an INFO log will be generated.</li></ul>
|
|
<p id="css_02_0096__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_0055.html">Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|