Splunk Search

Splunk Cloud: How to Collect Data in JSON Format from Splunk Cloud?

franraf180
Engager

Hello everyone,

I'm trying to collect data in JSON format from Splunk Cloud, and I understand that one of the options is using the REST API. However, I'm not sure which endpoint I should use, or if there's another recommended way to achieve this directly from Splunk Cloud.

I've been testing with the following endpoints:

  • /services/search/jobs/
  • /servicesNS/admin/search/search/jobs

But in both cases, I only get a 404 error indicating that the URL is not valid.

Could you guide me on how to configure data collection in this format?

  • What would be the correct endpoint?
  • Which key parameters should I include in my request?

Or, if there's an easier or more direct method, I'd appreciate it if you could explain.

The version of Splunk I'm using is 9.3.2408.104.

Thank you in advance for your help!

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

If I recall right you must “enable” REST api first with support ticket or using ACS by enabling some networks to search-api. https://docs.splunk.com/Documentation/SplunkCloud/latest/RESTTUT/RESTandCloud
After that you can query via rest endpoints.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...