Alerting

Error in 'sendalert' command: Alert script returned error code 2.

katshima
New Member

I am generating alarms by acquiring abnormal values for CPU usage of NW devices.
I would like to send these alarms via email or webhook, but I get the above error and cannot send them.

What is the cause?

Error in 'sendalert' command: Alert script returned error code 2.

Labels (1)
0 Karma

fredclown
Builder

You can search the internal Splunk logs to see if there are any errors logged. If you run this what do you get?

index=_internal sendemail sourcetype!=splunkd_ui_access sourcetype!=splunkd_remote_searches ERROR

 

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...