When trying to configure the Slack Add on for Splunk 3.0 we keep getting an error in 'slack_audit_logs.py' : 'NoneType' object is not subscriptable
It looks like we can't subscribe the OAuth token. We're using Basic Authentication with an App and an OAuth token that's already working for the Slack Alerts app (so we know it works). When I place the OAuth token in the configuration, it tells me it's saved but after it's saved the field appears blank. Is that normal?
Also the Slack tema I'm working with says that they can't see any signs of the ap connecting or trying to connect to Slack. Googling it says that I have something misconfigured. I just can't figure out what.
Does anyone have any ideas as to what I'm doing wrong?
Hi @mhebert
Firstly, yes its normaly that a secret/password/token added in the Configuration page of the Splunk app would disappear when you go back to it - however if you re-submit the configuration without re-entering it then it may overwrite it to a blank value... Its no ideal but is what it is!
Regarding your oauth2 token, did you allow the required scopes from the docs at https://github.com/splunk/TA-slack-add-on-for-splunk/blob/master/README.md ?
In the app's settings, select OAuth & Permissions from the left navigation. Scroll down to the section titled Scopes.
Click Add an OAuth Scope under User Token Scopes. Add the auditlogs:read scope.
Click Add an OAuth Scope under Bot Token Scopes. Add the chat:write scope.
Scroll up to the OAuth Tokens section, click Install to Organization.
Click Allow in the pop-up window.🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing