I have developed custom add-on using splunk add on builder for REST API input and it is working fine. but i would like know is there any way create multiple account with API and secret key in single add-on using add on builder.
I have application called SAP gigya, we are trying to fetch the logs from all the environment like Dev/QA/PRD and each environment has different API and secret key, right now i have created add-on which i can use for single Environment because the API and secret key parameters calling from add-on setting parameter so i can't use the same API key for other environment.
To complete this requirement i am planning create account with API key for each environment but i could not able to find that option in Add on builder.
Could you please let me know if any one has any idea how to create the multiple account using API and secret key
sampe output : in same Add-on
Use custom Add-on setup parameter instead of global account. In Add-on builder Input's "Add-on Setup Parameters" page. Uncheck "Global account settings" and add one text (use password if you want apikey to be encrypted) field for ApiKey and password field for SecretKey.
In Add-on setup page you will see as many time you want now you can add account with different IDs like Devaccount/Prodaccount.
Hope this helps!!!
After these steps, Go to your created Add-on, there you will see three dashboards: Inputs, Configuration, Search. Go to Configuration, there you will see three tabs: Account, Proxy, Logging. Go to Account and you will see a screen below with "Add" buttons allowing you to create multiple accounts. I think currently you are in Add-on builder app.
Pls correct me if i am wrong, if we uncheck "Global account settings" , the account option will not show in under configuration tab, for me account option is not showing under configuration. PFA![alt text]
If you use "Global account settings" it will be shown under Configuration > Add-on settings.
If you uncheck global account and use custom input elements, you will see that under Configuration > Account.