我不能从curl elasticsearch命令中获取消息吗?
离)
> /usr/bin/curl -s -XPOST localhost:9200/_bulk --data-binary "@/home/1003783/data/20161201.json"
=> {"took":9,"errors":false,"items":[{"index":{"_index":"ctlg_info","_type":"1002154","_id":"20161201","_version":2,"_shards":{"total":3,"successful":3,"failed":0},"status":200}}]}
当我对elasticsearch运行curl命令时,我不想看到上面的消息。这似乎是来自elasticsearch的消息。
谢谢。
答案 0 :(得分:0)
您可以使用dev/null
开关并将输出发送到> /usr/bin/curl -s -o /dev/null -XPOST localhost:9200/_bulk --data-binary "@/home/1003783/data/20161201.json"
document.getElementById("searchT").value = "Hello World!"