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)
My Inputs.Conf file is like this
authtype = oauth2
endpoint = https://api.box.com/2.0/users
httpmethod = GET
indexerrorresponsecodes = 0
responsetype = text
sequentialmode = 0
sourcetype = boxnon-prod
streaming_request = 0
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.