产品动态
产品公告
安全公告







POST /索引名/_doc{"@timestamp": "2023-09-28T11:06:07.000Z","user":{"id" : "8a4f500"},"message": "Login successful"}
curl -X POST "项目空间访问地址/索引名/_doc/?pretty" -H 'Content-Type: application/json' -d'{"@timestamp": "2023-09-28T11:06:07.000Z","user": {"id": "8a4f500d"},"message": "Login successful"}

PUT /索引名/_doc/文档 ID 的写入请求格式。如要指定文档 ID 写入,请使用 PUT /索引名/_create/文档 ID 的格式。PUT /索引名/_bulk?refresh{"create":{ }}{ "@timestamp": "2023-03-28T11:04:05.000Z", "user": { "id": "vlb44hny" }, "message": "Login attempt failed" }{"create":{ }}{ "@timestamp": "2023-03-29T11:06:07.000Z", "user": { "id": "8a4f500d" }, "message": "Login successful" }{"create":{ }}{ "@timestamp": "2023-03-30T11:07:08.000Z", "user": { "id": "l7gk7f82" }, "message": "Logout successful" }
curl -X PUT "项目空间访问地址/索引名/_bulk?refresh&pretty" -H 'Content-Type: application/json' -d'{"create":{ }}{ "@timestamp": "2023-03-28T11:04:05.000Z", "user": { "id": "vlb44hny" }, "message": "Login attempt failed" }{"create":{ }}{ "@timestamp": "2023-03-29T11:06:07.000Z", "user": { "id": "8a4f500d" }, "message": "Login successful" }{"create":{ }}{ "@timestamp": "2023-03-30T11:07:08.000Z", "user": { "id": "l7gk7f82" }, "message": "Logout successful" }'

create 。文档反馈