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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...