From c0b8c65277a48c2c8be12bf351dc3466bd7def0b Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Mon, 7 Feb 2022 09:47:08 -0500 Subject: [PATCH] Fix script processor examples in docs (#30226) The docs show `id` but the field is named `tag`. (cherry picked from commit 32adc13f2379a8d40db30d0b7834da4313558f48) --- libbeat/processors/script/docs/script.asciidoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libbeat/processors/script/docs/script.asciidoc b/libbeat/processors/script/docs/script.asciidoc index a4a0a418530..8b9c581a18d 100644 --- a/libbeat/processors/script/docs/script.asciidoc +++ b/libbeat/processors/script/docs/script.asciidoc @@ -18,7 +18,6 @@ file or by pointing the processor at external file(s). processors: - script: lang: javascript - id: my_filter source: > function process(event) { event.Tag("js"); @@ -32,7 +31,6 @@ This loads `filter.js` from disk. processors: - script: lang: javascript - id: my_filter file: ${path.config}/filter.js ---- @@ -45,7 +43,7 @@ code must define a `register(params)` function to receive the parameters. processors: - script: lang: javascript - id: my_filter + tag: my_filter params: threshold: 15 source: >