Files
elasticsearch-js/docs/doc_examples/c4654a4ca2f4600606dcc5bf37186c0b.asciidoc
2024-10-14 11:19:18 -05:00

15 lines
400 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.esql.asyncQuery({
format: "json",
body: {
query:
"\n FROM cluster_one:my-index*,cluster_two:logs*\n | STATS COUNT(http.response.status_code) BY user.id\n | LIMIT 2\n ",
},
});
console.log(response);
----