elasticsearch导入json
curl -s -H "Content-Type: application/x-ndjson" -XPOST elastic:123456@localhost:9200/_bulk --data-binary "@es.json"; echo
es.json
{"index":{"_index":"mq-exception-alias","_type":"mq-exception"}}
{"mqTopicEnum":"TOPIC_REGISTER_EVENT","errorMsg":"注册失败","body":"{\"phone\":\"13888888888\",\"inviteCode\":\"\",\"isWhiteList\":false,\"nickname\":\"user123456\",\"userId\":123456}","ext":"","createTime":1594829204885,"retryTimes":0}