首先生成文件 curl.txt
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}
\n
使用命令
curl -w "@curl.txt" -o /dev/null -s 119.28.26.246:9200/mynote_dev/_search