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

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...