Splunk Dev

Rest API Splunk

bosseres
Contributor

Hello Team,

I just learning Splunk and Python so feel sorry for silly questions 🙂

I made scrypt on python

import requests

data = {
'username': 'admin',
'password': 'password'
}

response = requests.post('https://ip/services/auth/login', data=data, verify=False)

 

and trying to run it: ./splunk cmd python curl1.py

but there is a error with SSL

/opt/splunk/lib/python3.7/site-packages/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.22.22.207'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,

 

Please help me how can I fix it. Thanks

 

Labels (1)
0 Karma

bosseres
Contributor

I've disabled notification with

import urllib3
urllib3.disable_warnings()

 

But it looks like that problem is located in scrypt, can you help me how to fix it?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...