Customer Self-Service Portal

SPLUNK Rest API for Site 24 x 7

Hi All,

 

I am trying to configure SPLUNK using the REST API to pull down monitor alerts from Site 24 x 7.  As an example I am trying to pull down if something is defaced or the site is unavailable.  I have been able to run via curl the commands as per the site24x7 API help guide and been able to get a response.  However I am running into problems with the REST API and can't see where this is going wrong.  This is my config

 

activation_key = 9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
auth_type = oauth2
endpoint = www.site24x7.com/api/monitors
index = myindex
index_error_response_codes = 1
oauth2_client_id = xxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
oauth2_client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
response_type = json
sequential_mode = 0
sourcetype = _json
streaming_request = 0
http_proxy =
https_proxy =
oauth2_access_token = xxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
oauth2_refresh_props = grant_type=refresh_token
oauth2_refresh_token = xxxxxxx.xxxxxxxxxxxxxxxxxxx
oauth2_refresh_url = www.zohoapis.com
oauth2_token_type = Bearer
polling_interval = 15

 

I get the following error when I run this "Exception performing request: prepare_token_request() got multiple values for keyword argument 'grant_type'".

 

Any help would be appreciated.  I am not well versed with API.