Splunk Search

Splunk rest curl query fails to execute on the successive attempts with the session key authorization

sathishraja92
Explorer

First attempt creates the splunk SID, but fails on the successive attempts to create search id. Same issue occurs while polling/consuming the search after SID creation on its successive attempts. Can anybody point out helping the missing part?

Curl query used :

curl -H 'Authorization:Splunk sessionkeyincluded' https://hostname:60659/services/search/jobs -d search="search sourcetype=\"xx:yy\" earliest=\"03/19/2018:07:00:00\" latest=\"03/19/2018:07:15:00\" | stats count"

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <sid>1522168074.7125_E472E7F2-9BEF-4117-A49A-8281B171EF1E</sid>
</response>

successive attempts fails with authentication failure mentioning "call not properly authenticated"

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <messages>
    <msg type="WARN">call not properly authenticated</msg>
  </messages>
</response>

nawazns5038
Builder

Even I am facing the same issue. Were you able to figure out anything ? 

 

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...