Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splunk slack alert notification failing with error code 1 #53

Open
varmanagasri opened this issue Jan 24, 2024 · 1 comment
Open

Splunk slack alert notification failing with error code 1 #53

varmanagasri opened this issue Jan 24, 2024 · 1 comment

Comments

@varmanagasri
Copy link

Error message: Warn sendmodalert[]- action=slack - alert action script returned error code=1
Uploading IMG_6730.jpeg…

@ahoang-splunk
Copy link

Error code=1 indicates that there is an error message returned in the body payload. In $SPLUNK_HOME/etc/apps/slack/alerts/bin/slack.py the code is breaking on line 150 and returning the ERROR_CODE_UNKNOWN. If you are using an on prem slack environment you can manually edit slack.py and add a debugging line to print out the error, for example: log(res_body)

I would double check the Slack app setup, OAuth token, webhook, URL, etc and ensure that your Slack app has the necessary permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants