Added/updated snippets for docs (#2318)
This commit is contained in:
29
docs/doc_examples/5024c524a7db0d6bb44c1820007cc5f4.asciidoc
Normal file
29
docs/doc_examples/5024c524a7db0d6bb44c1820007cc5f4.asciidoc
Normal file
@ -0,0 +1,29 @@
|
||||
// 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.ingest.simulate({
|
||||
pipeline: {
|
||||
description: "...",
|
||||
processors: [
|
||||
{
|
||||
grok: {
|
||||
field: "message",
|
||||
patterns: [
|
||||
"%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes:int} %{NUMBER:duration:double}",
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
docs: [
|
||||
{
|
||||
_source: {
|
||||
message: "55.3.244.1 GET /index.html 15824 0.043",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user