Getting Data In

Splunk Add-on for Okta Identity Cloud- A bug?

esbse
New Member

I can across a bug for this app: https://splunkbase.splunk.com/app/6553/ and though I'd share.

The log types logs and users work fine. But with apps and groups it's configure to get "enrichment data", this fails if you need to use a proxy.

After a bit of trouble shooting I found the on line 243 in okta_utils.py there is no proxy in the request call. I updated it to the following and it works:

 

Before:

r = requests.request("GET", url, headers=headers)

After:

r = requests.request("GET", url, headers=headers,proxies=proxies,timeout=reqTimeout)

 

I also had to add these lines to grab those settings, I added them just before the if statement:

# Get Proxy settings
proxies = get_proxy_settings(self.session_key, self.logger)
# set RequestTimeout to 90sec
reqTimeout = float(90)

Labels (1)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...