Skip to content

Commit 1a9ff1f

Browse files
committed
split default recommend per search+index
1 parent 6eacf4f commit 1a9ff1f

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

docs/reference/index-modules/slowlog.asciidoc

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,29 @@ optimization information, see <<tune-for-search-speed,tune for search speed>>
232232
and <<tune-for-indexing-speed,tune for indexing speed>.
233233

234234
If you are uncertain where to begin investigating problematic traffic, we
235-
recommend dynamically enabling via <<indices-update-settings,update indices
236-
settings>> with high thresholds against both slow logs:
235+
recommend dynamically enabling the `warn` threshold with a high `30s` threshold
236+
via <<indices-update-settings,update indices settings>>. For slow logs for
237237

238+
* search
239+
+
238240
[source,console]
239241
--------------------------------------------------
240242
PUT _all/_settings
241243
{
242-
"index.indexing.slowlog.include.user": true
243-
"index.indexing.slowlog.threshold.index.warn": "30s",
244244
"index.search.slowlog.include.user": true
245245
"index.search.slowlog.threshold.fetch.warn": "30s",
246-
"index.search.slowlog.threshold.query.warn": "30s",
246+
"index.search.slowlog.threshold.query.warn": "30s"
247+
}
248+
--------------------------------------------------
249+
250+
* indexing
251+
+
252+
[source,console]
253+
--------------------------------------------------
254+
PUT _all/_settings
255+
{
256+
"index.indexing.slowlog.include.user": true
257+
"index.indexing.slowlog.threshold.index.warn": "30s"
247258
}
248259
--------------------------------------------------
249260

0 commit comments

Comments
 (0)