All Apps and Add-ons

Error configuring Box for Splunk app on distributed production Splunk instance

jessebow
Engager

After successfully authenticating and granting access to our account on the Box side, when we return to the "Box REST API Setup" page and press "Save", we get the following error:

Encountered the following error while trying to update: In handler 'localapps': Error while posting to url=/servicesNS/nobody/SplunkForBox/boxauth/doboxauth/default

This same process worked fine on our dev system (which is an all-in-one Splunk install), however on our distributed production Splunk instance we get this error. We're at a bit of a loss to figure out where the error lies...Where is this trying to POST to, etc...

Anyone solve this issue that can share?

howyagoin
Contributor

I finally have an answer for this problem that may help you.

In our case, as per my comment, the issue is that our production Splunk search head has no Internet facing services. No DNS, no HTTPS. Everything must be done through an authenticated proxy for HTTP/HTTPS.

In order to get the Box for Splunk App working, I did the following:

From there, things just worked.

The initial problem I had was that the Splunk documentation says that the HTTP_PROXY requires just an IP address; however, that didn't work. It needed the actual "http://" as well -- now, in theory, you might be able to use HTTP_PROXY=http://user:pass@proxy.address:port, but I haven't tried that, as leaving a password in a conf file like this isn't a good idea...

howyagoin
Contributor

I think I understand the reason for this failure, but haven't found a solution. In our case, our Splunk server is behind a proxy that requires authentication on a network with no DNS resolution. When you attempt to save the OAuth token, the Box App for Splunk will try to connect to api.box.com directly - NOT using the HTTP_PROXY as defined in plunk-launch.conf - which generates an error in splunkd.log along the lines of:

File "/opt/splunk/lib/python2.7/socket.py", line 553, in create_connection\n    for res in getaddrinfo(host, port, 0, SOCK_STREAM):\nIOError: [Errno socket error] [Errno -2] Name or service not known\n

I'm not sure how to get around this; unless the Box App for Splunk supports the proxy, it won't be able to reach out to api.box.com.

0 Karma

bujan_splunk
New Member

have you found the solution to this?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...