Getting Data In

What are the key answers for a success and failure REST POST Call?

benoitleroux
Explorer

Hi,

I am using the REST interface to re authenticate the search peers on a Splunk search head.

I am sending a curl command and ask for a Json answer.

The answer is huge and not clear as the success status of the ADD or DELETE.

Should I parse it to find the : "replicationStatus":"Successful","rtsearch_enabled":true as the result status?

Thanks,

Benoit

Tags (3)
0 Karma
1 Solution

benoitleroux
Explorer

Look for two key words in the response (Json): Unauthorized to know if your credential passed trough and Error for other issue.

View solution in original post

0 Karma

benoitleroux
Explorer

Look for two key words in the response (Json): Unauthorized to know if your credential passed trough and Error for other issue.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...