30 lines
603 B
Plaintext
30 lines
603 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.ingest.simulate({
|
|
pipeline: {
|
|
processors: [
|
|
{
|
|
redact: {
|
|
field: "message",
|
|
patterns: ["%{GITHUB_NAME:GITHUB_NAME}"],
|
|
pattern_definitions: {
|
|
GITHUB_NAME: "@%{USERNAME}",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
docs: [
|
|
{
|
|
_source: {
|
|
message: "@elastic-data-management the PR is ready for review",
|
|
},
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|