Getting Data In

SSL module is not available?

dwoodfordgrid
Engager

Hi,

When trying to call some rest API's in a custom script using the request package, if the URL is https Splunk throws the error:

"Can't connect to HTTPS URL because the SSL module is not available."

Anyone know why this might not be available, or how to get around it. Looking at other Splunk scripts, they all reference http not https.

Tried manually adding the ssl module into the TA bin folder but it throws more errors.

Labels (1)

ccWildcard
Explorer

I had this same issue. I built an ansible playbook that needed to run a python script. I got this error when running: /opt/splunk/bin/python script.py
What fixed it: /opt/splunk/bin/splunk cmd python script.py

Not sure if you're having the same problem but for some reason the request module doesn't load right of handle ssl if you do /opt/splunk/bin/python but DOES work correctly if you use /opt/splunk/bin/splunk cmd python. Hope it helps!

0 Karma

jay_021
Loves-to-Learn

Thanks ccWildcard

Executing /opt/splunk/bin/splunk cmd python script.py make sense.

Will update my app and retest.

0 Karma

Ole
Engager

Same problem. Did you find a solution?

0 Karma

terminaloutcome
Path Finder

I'm having the same issue and not sure why, did you get to the bottom of it?

jay_021
Loves-to-Learn

I am also getting same error in Splunk ES 9.1.0.2. Anyone found a solution for this ?

 

Max retries exceeded with url: /v1/actions/process-check-result (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

 

 

0 Karma

terminaloutcome
Path Finder

If that's core functionality throwing that error then contact support.

If it's a third-party app they shouldn't be trying to use python code that attempts to access that module, basically... there's ways to make requests to URLs without calling it directly.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...