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

Message should be made a required field in the app #55

Open
chipzzz opened this issue Aug 29, 2024 · 0 comments
Open

Message should be made a required field in the app #55

chipzzz opened this issue Aug 29, 2024 · 0 comments
Labels

Comments

@chipzzz
Copy link

chipzzz commented Aug 29, 2024

Describe the bug

You can create a slack action, with leaving the Message field empty. The result is a created alert that shows it's firing to slack but does not actually send anything to slack. The error message for this is reports errors events in separate events than the mentioned alert name so it's hard to debug and correlate the error to a particular event. (tried using the id),Especially when you have many alerts.

 Invoking modular alert action=slack for search="<some_alert_name>" sid="<some_alert_sid>" in app="search" owner="user" type="saved"
FATAL sendmodalert [12322 AlertNotifierWorker-0] - action=slack STDERR -  Validation error: Parameter `message` is missing or empty

<textarea name="action.slack.param.message" id="slack_message" style="height: 140px;"></textarea>

A validation needs to be added
https://github.com/splunk/slack-alerts/blob/main/src/app/default/restmap.conf

To Reproduce
Steps to reproduce the behavior:
Create alert without Message, notice it won't be sent to Slack.

Expected behavior
Alert is sent to slack.

@chipzzz chipzzz added the bug label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant