1. curl -s -u elastic:bdp@elastic -H "Content-Type:application/json" -XPUT 10.150.92.1:9200/_all/_settings -d '{
    2. "index.search.slowlog.threshold.query.warn":"5s",
    3. "index.search.slowlog.threshold.query.info":"2s"
    4. }'


    查询慢于5秒输出一个WARN日志
    索引慢于2秒输出一个INFO日志