From c6c67c291b99364fa0e075fca9942e39d58dfc39 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 14:23:36 -0400 Subject: [PATCH] Change xml processor names in script processor to match convention (#26263) (#26282) In the script processor, the `decode_xml` and `decode_xml_wineventlog` processors are now available as `DecodeXML` and `DecodeXMLWineventlog` respectively. This follows the same naming conventions as other processors exposed though the `script` processor. For example you can write `new processor.DecodeXML({...})`. (cherry picked from commit 2ebf83ee39989f4a2c87ed859501241a4c777a54) Co-authored-by: Andrew Kroh --- CHANGELOG.next.asciidoc | 1 + libbeat/processors/decode_xml/decode_xml.go | 2 +- libbeat/processors/decode_xml_wineventlog/processor.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 7c9b1aa67d8..18f129377bb 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -183,6 +183,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix handling of `file_selectors` in aws-s3 input. {pull}25792[25792] - Fix ILM alias creation when write alias exists and initial index does not exist {pull}26143[26143] - Include date separator in the filename prefix of `dateRotator` to make sure nothing gets purged accidentally {pull}26176[26176] +- In the script processor, the `decode_xml` and `decode_xml_wineventlog` processors are now available as `DecodeXML` and `DecodeXMLWineventlog` respectively. *Auditbeat* diff --git a/libbeat/processors/decode_xml/decode_xml.go b/libbeat/processors/decode_xml/decode_xml.go index ced399c00fa..ae90e1b2990 100644 --- a/libbeat/processors/decode_xml/decode_xml.go +++ b/libbeat/processors/decode_xml/decode_xml.go @@ -59,7 +59,7 @@ func init() { "to_lower", "ignore_missing", "ignore_failure", ))) - jsprocessor.RegisterPlugin(procName, New) + jsprocessor.RegisterPlugin("DecodeXML", New) } // New constructs a new decode_xml processor. diff --git a/libbeat/processors/decode_xml_wineventlog/processor.go b/libbeat/processors/decode_xml_wineventlog/processor.go index a64c678dfe8..c73ea5ff521 100644 --- a/libbeat/processors/decode_xml_wineventlog/processor.go +++ b/libbeat/processors/decode_xml_wineventlog/processor.go @@ -51,7 +51,7 @@ func init() { "overwrite_keys", "map_ecs_fields", "ignore_missing", "ignore_failure", ))) - jsprocessor.RegisterPlugin(procName, New) + jsprocessor.RegisterPlugin("DecodeXMLWineventlog", New) } type processor struct {