ES, LS, Kibana Version 5.4.0
I'm attempting to enable slow logging, as some queries are taking >10 minutes to return the last 24 hours of data. In order to remedy this, I'm attempting to enable slow logging, but unable to get the logs to populate with data. I've followed the documentation but am still not getting slow logging data.
What I've done:
Placed logging parameters on each index, the nginx-* index for example:
PUT /nginx-*/_settings
{
"index.search.slowlog.threshold.query.warn": "1s",
"index.search.slowlog.threshold.query.info": "1s",
"index.search.slowlog.threshold.query.debug": "1s",
"index.search.slowlog.threshold.query.trace": "1ms",
"index.search.slowlog.threshold.fetch.warn": "1s",
"index.search.slowlog.threshold.fetch.info": "10ms",
"index.search.slowlog.threshold.fetch.debug": "10ms",
"index.search.slowlog.threshold.fetch.trace": "20ms"
}
This adds what appear to be proper config for slow logging, as can be seen from querying today's index:
GET /_cluster/settings
{
"persistent": {},
"transient": {
"cluster": {
"routing": {
"allocation": {
"cluster_concurrent_rebalance": "4",
"node_concurrent_recoveries": "4",
"disk": {
"watermark": {
"low": "95%",
"high": "95%"
}
}
}
},
"info": {
"update": {
"interval": "1m"
}
}
},
"logger": {
"index": {
"indexing": {
"slowlog": "WARN"
},
"search": {
"slowlog": "DEBUG"
}
}
}
}
}
And the index settings:
GET /nginx-2017.07.10/_settings
{
"nginx-2017.07.10": {
"settings": {
"index": {
"routing": {
"allocation": {
"require": {
"box_type": "hot"
}
}
},
"search": {
"slowlog": {
"threshold": {
"fetch": {
"warn": "1s",
"trace": "20ms",
"debug": "10ms",
"info": "10ms"
},
"query": {
"warn": "1s",
"trace": "1ms",
"debug": "1s",
"info": "1s"
}
}
}
},
"indexing": {
"slowlog": {
"threshold": {
"index": {
"trace": "0s",
"info": "5s"
}
}
}
},
"number_of_shards": "3",
"provided_name": "nginx-2017.07.10",
"creation_date": "1499644778210",
"number_of_replicas": "1",
"uuid": "IR3V-tEZQfODxPGKFjZ4KQ",
"version": {
"created": "5040099"
}
}
}
}
}
I even also restarted ES. What config am I missing?