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
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...