Splunk Cloud Platform

Request failed: Session is not logged in Error - while running python script for rest apis

manish_singh_77
Builder

Hi Team,

I am getting an error message "Request failed: Session is not logged in." when trying to run rest apis from python script.

Curl command works fine, it generates the session key as well it connects to the splunk results and fetches the results.

I am using this in my script.

import splunklib.client as client
service = client.connect(host=host, port=8089,username=user, password=password)

Am I missing anything here?

I am

Labels (1)
Tags (1)
0 Karma
1 Solution

manish_singh_77
Builder

Issue got resolved by updating splunklib

View solution in original post

0 Karma

manish_singh_77
Builder

Issue got resolved by updating splunklib

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...