Hello,
I have an XML with several CDATA Info in my values. I don't want them there. What is the best way to delete this infos? I tried with using filter { mutate { gsub }} but is there an easier solution?
Here is an example of my fields:
CVE_ID: <![CDATA[CVE-2018-13217]]>, <![CDATA[CVE-2018-12498]]>, <![CDATA[CVE-2018-184362]]>
Threat: <![CDATA[Firefox is a free open-scource web browser.]]>
What i want:
CVE_ID: CVE-2018-13217, CVE-2018-12498, CVE-2018-184362
Threat: Firefox is a free open-source web-browser.
My filter for this:
filter{
....
mutate {
gsub => [
"CVE_ID", "<!\[CDATA", "",
"Threat", "<!\[CDATA", ""
]
}
}
I am pretty sure there is a better solution for my problem, can somone help me?