Skip to content

Commit

Permalink
Change xml processor names in script processor to match convention (#…
Browse files Browse the repository at this point in the history
…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 2ebf83e)

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
  • Loading branch information
mergify[bot] and andrewkroh committed Jun 14, 2021
1 parent 06ddd48 commit c6c67c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down
2 changes: 1 addition & 1 deletion libbeat/processors/decode_xml/decode_xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libbeat/processors/decode_xml_wineventlog/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c6c67c2

Please sign in to comment.