Splunk Search

How do we extract multiple events from xml response from REST API call

sunilbhogayta
New Member

Hello Spunkers,

I am trying to ingest the data using REST APIs and as a response i do see xml response in below format.

 

<Method>ProdList</Method>
<Result xsi:type="xsd:collection">
<APIList>
<API ID="12345" Name="Test Name 1" LastDate="11/5/2020 10:22:34 AM" NextDate="1/1/0001 12:00:00 AM"  Status="1" />
<API ID="65432" Name="Test Name 2" LastDate="2/8/2021 8:47:26 AM" NextDate="2/8/2021 9:02:26 AM"  Status="0" />
<API ID="876433" Name="Test Name 3" LastDate="2/8/2021 8:35:55 AM" NextDate="2/8/2021 8:50:55 AM" Status="0" />
</APIList>
</Result>
</SampleRestAPI>
 
In above results, there are three records returned. I would like to have this records as an individual events to use in a search and create dashboards but as of now it shows as single event.
 
Your help or pointers are highly appreciated.
 
 
Regards,
Sunil 
Labels (1)
0 Karma

vanajafe
New Member
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...