Files
elasticsearch-js/docs/doc_examples/6f5adbd55a3a2760e7fe9d32df18b1a1.asciidoc
2024-07-29 17:10:05 -05:00

17 lines
380 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.index({
index: "logs",
document: {
timestamp: "2015-05-17T18:12:07.613Z",
request: "GET index.html",
status_code: 404,
message: "Error: File not found",
},
});
console.log(response);
----