21 lines
442 B
Plaintext
21 lines
442 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.eql.search({
|
|
index: "my-data-stream",
|
|
filter: {
|
|
range: {
|
|
"@timestamp": {
|
|
gte: "now-1d/d",
|
|
lt: "now/d",
|
|
},
|
|
},
|
|
},
|
|
query:
|
|
'\n file where (file.type == "file" and file.name == "cmd.exe")\n ',
|
|
});
|
|
console.log(response);
|
|
----
|