当kibana日志报“timeout=30000ms“的解决方法

前言

… …

错误日志信息

"type":"response","@timestamp":"2021-03-23T03:02:09Z","tags":[],"pid":6,"method":"post","statusCode":200,"req":{"url":"/elasticsearch/applog-*/_search?rest_total_hits_as_int=true&igno     re_unavailable=true&ignore_throttled=true&preference=1616455996281&timeout=30000ms","method":"post","headers":{"x-forwarded-for":"116.30.220.152","x-real-ip":"116.30.220.152","host":"o     ps-kibana.cjkj.online","connection":"close","content-length":"707","sec-ch-ua":"\"Google Chrome\";v=\"89\", \"Chromium\";v=\"89\", \";Not A Brand\";v=\"99\"","accept":"application/json     , text/plain, */*","sec-ch-ua-mobile":"?0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36","kbn-versio     n":"7.6.1","content-type":"application/json","origin":"https://ops-kibana.cjkj.online","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https:     //ops-kibana.cjkj.online/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9"},"remoteAddress":"172.17.0.1","userAgent":"172.17.0.1","referer":"https://     ops-kibana.cjkj.online/app/kibana"},"res":{"statusCode":200,"responseTime":30070,"contentLength":9},"message":"POST /elasticsearch/applog-*/_search?rest_total_hits_as_int=true&ignore_u     navailable=true&ignore_throttled=true&preference=1616455996281&timeout=30000ms 200 30070ms - 9.0B"}

解决方法

]# cat >> kibana.yml <-EOF
elasticsearch.requestTimeout: 300000
EOF

结语

… …

你可能感兴趣的:(elk,devops)