Hi,
The XML Data import worked fine, BUT...
Because the XML Looks like this:
< Timestamp data_type="4">10/18/2017 14:33:34.139< /Timestamp>
< Computer-Name data_type="1">SERVER1< /Computer-Name>
< Event-Source data_type="1">IAS< /Event-Source>
The fields looks like this:
Name: theXML.Timestamp
Value:
{
"data_type": "4",
"content": "10/18/2017 14:33:34.139"
}
You could do it with XPath, or you could do stuff like mutate { replace => { "EventSource" => "%{[TheXML][Event-Source][0][content]}" } }
I do not know if there is a way to globally replace [X] with [X][0][content] without knowing each individual value of X. Maybe a ruby function, but I don't know enough to write it.
Yeah, i saw that others have used replace and other methods. The thing is that the fields can vary from event to event. Sure, i could go through and replace on all fields that i know of. But it would be nice if i could grab the content from all fields right away. But maybe that cant be done with only the target configuration option.
Maybe not the most Beautiful way, but do an if statement if the name contains data_type, and then drop it.
And then some kind of replace on the .content to remove the content from the name?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.