Skip to content

XML filter, remove CDATA in Logstash #58

@nzgringo

Description

@nzgringo

Hi Team,
I would like to request the functionality to allow extraction XML content from inside a CDATA Tag in XML, currently the CDATA tags are also included in the output.

If an XPath is queried with the config below under Logstash Config, and URL Tag data below, the output data will include the CDATA Tags like this

URL Tag
<URL><![CDATA[http://dadom.com/wp-admin/]]></URL>

Logstash Config
xpath => [ "/Book/Book/BookDetails/URL/text()", "destination-field" ]

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions