Getting Data In
Highlighted

REST API via Splunk Modular Input for BOX

Explorer

I am trying to get data from REST API from BOX.

API endpoint is: https://api.box.com/2.0/users

ACTION = GET

I am getting below 2 errors. Kindly advise how to fix these.

1) HTTP Request error: 401 Client Error: Unauthorized host = XXXXXXX
2) Exception performing request: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: //api.box.com/2.0/users (Caused by : [Errno 11004] getaddrinfo failed)

0 Karma
Highlighted

Re: REST API via Splunk Modular Input for BOX

Explorer

My Inputs.Conf file is like this

[rest://mybox]
activation
key =
authtype = oauth2
endpoint = https://api.box.com/2.0/users
http
method = GET
indexerrorresponsecodes = 0
oauth2
clientid =
oauth2
clientsecret =
oauth2
tokentype =
response
type = text
sequentialmode = 0
sourcetype = box
non-prod
streaming_request = 0

0 Karma
Highlighted

Re: REST API via Splunk Modular Input for BOX

Explorer

I have not shown the values for activationkey ,oauth2clientid, oauth2client_secret for security reasons

0 Karma
Highlighted

Re: REST API via Splunk Modular Input for BOX

SplunkTrust
SplunkTrust

@aravindp

Have you tried Splunk Add-on for Box?

Please check these URLs:

https://splunkbase.splunk.com/app/2679/

https://docs.splunk.com/Documentation/AddOns/released/Box/About

0 Karma
Highlighted

Re: REST API via Splunk Modular Input for BOX

Explorer

Hi Kamlesh, we tried Splunk addon Box as first option, but not succeed due to proxy issues and there is no communication block from Box to Splunk.

So we want to use REST API approach.

0 Karma
Speak Up for Splunk Careers!

We want to better understand the impact Splunk experience and expertise has has on individuals' careers, and help highlight the growing demand for Splunk skills.