socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

import splunklib.client  as client
HOST = "restapi.splunk.Company.com"
PORT = 8809
USERNAME = "user"
PASSWORD = "pwd"

# Create a Service instance and log in
service = client.connect(
host=HOST,
port=PORT,
username=USERNAME,
password=PASSWORD)

# Print installed apps to the console to verify login
for app in service.indexes:
print app.name

--

--

--

Hi, I am a Certified Google Cloud Data engineer. I use Medium platform to share my experience with other members of Medium network.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Rebound When You Hit a Creative Coding Wall

Make a simple Django 3.2 Portfolio Project as Data Scientist — Part 1

What should software development teams learn from Da Vinci?

Framework 2: Boss Ai (part 2)

Blog 08: Cave Blockout

Salary Predictor App Using Machine Learning and Docker

Working with forks in Go

Technology Tips for Construction Firms During COVID-19 | Withum

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vibhor Gupta

Vibhor Gupta

Hi, I am a Certified Google Cloud Data engineer. I use Medium platform to share my experience with other members of Medium network.

More from Medium

𝟏𝟎 𝐋𝐞𝐬𝐬𝐨𝐧𝐬 𝐅𝐫𝐨𝐦 𝐚 𝐍𝐞𝐚𝐫 𝐃𝐞𝐚𝐭𝐡 𝐄𝐱𝐩𝐞𝐫𝐢𝐞𝐧𝐜𝐞

How Solana Chain Will Rewrite The History Of Blockchain

CAPITALB AMA Recapitulation - Gear Technology inc

Redesign and Extend For Senior Citizens Visiting Atlanta History Center