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!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...