Added/updated snippets for docs (#2318)
This commit is contained in:
29
docs/doc_examples/69ab708fe65a75f870223d2289c3d171.asciidoc
Normal file
29
docs/doc_examples/69ab708fe65a75f870223d2289c3d171.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: "Hide my IP",
|
||||
processors: [
|
||||
{
|
||||
redact: {
|
||||
field: "message",
|
||||
patterns: ["%{IP:REDACTED}", "%{EMAILADDRESS:REDACTED}"],
|
||||
prefix: "*",
|
||||
suffix: "*",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
docs: [
|
||||
{
|
||||
_source: {
|
||||
message: "55.3.244.1 GET /index.html 15824 0.043 test@elastic.co",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user