Skip to content

Commit

Permalink
Fix script processor examples in docs (#30226)
Browse files Browse the repository at this point in the history
The docs show `id` but the field is named `tag`.
  • Loading branch information
andrewkroh authored Feb 7, 2022
1 parent 1e72124 commit 32adc13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libbeat/processors/script/docs/script.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -32,7 +31,6 @@ This loads `filter.js` from disk.
processors:
- script:
lang: javascript
id: my_filter
file: ${path.config}/filter.js
----

Expand All @@ -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: >
Expand Down

0 comments on commit 32adc13

Please sign in to comment.