Getting Data In

How can I add and parse the XML data into Splunk

Path Finder

I am getting an XML of below format


I found a solution at but is not helping me with mentioned xml format for field extractions during data ingestion.

0 Karma


Hello @vidhyaArumalla,

Based on the sample data, below configuration should get you started.

Please note that, I am using DATETIME_CONFIG = NONE setting because, there is no timestamp available in the sample data. If this is the case with real data, this setting will leave the event time set to whatever time was selected by the input layer(for ex: Universal forwarder). If timestamp is available in data, then you should use TIME_FORMAT & TIME_PREFIX settings to explicitly extract timestamps. Let me know if this helps.


KV_MODE = xml
LINE_BREAKER = ([\r\n]+)\<result\>
EXTRACT-State = \<u\_State\>\s*\<display\_value\>(?<State>\w+)\<\/
EXTRACT-City = \<u\_city\>\s*\<display\_value\>(?<City>\w+)\<\/