- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
manish_singh_77
Builder
04-10-2020
12:22 AM
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
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
manish_singh_77
Builder
04-16-2020
06:16 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
manish_singh_77
Builder
04-16-2020
06:16 AM
Issue got resolved by updating splunklib
![](/skins/images/89D5ADE867CBAF0B5A525B7E23D83D7E/responsive_peak/images/icon_anonymous_message.png)