Skip to content

Commit 8e96d9a

Browse files
committed
Change xml processor names in script processor to match convention
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({...})`.
1 parent ad7c19f commit 8e96d9a

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
242242
- Fix handling of `file_selectors` in aws-s3 input. {pull}25792[25792]
243243
- Fix ILM alias creation when write alias exists and initial index does not exist {pull}26143[26143]
244244
- Include date separator in the filename prefix of `dateRotator` to make sure nothing gets purged accidentally {pull}26176[26176]
245+
- In the script processor, the `decode_xml` and `decode_xml_wineventlog` processors are now available as `DecodeXML` and `DecodeXMLWineventlog` respectively.
245246

246247
*Auditbeat*
247248

libbeat/processors/decode_xml/decode_xml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func init() {
5959
"to_lower", "ignore_missing",
6060
"ignore_failure",
6161
)))
62-
jsprocessor.RegisterPlugin(procName, New)
62+
jsprocessor.RegisterPlugin("DecodeXML", New)
6363
}
6464

6565
// New constructs a new decode_xml processor.

libbeat/processors/decode_xml_wineventlog/processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func init() {
5151
"overwrite_keys", "map_ecs_fields",
5252
"ignore_missing", "ignore_failure",
5353
)))
54-
jsprocessor.RegisterPlugin(procName, New)
54+
jsprocessor.RegisterPlugin("DecodeXMLWineventlog", New)
5555
}
5656

5757
type processor struct {

0 commit comments

Comments
 (0)