Dashboards & Visualizations

how do I send an sms through alert options(run a script)

mayurr98
Super Champion

I want to send an sms alert through JAVA or SHELL script which will call HTTP API and pass the message into that API.

Thanks in advance

0 Karma

a1bg503461
Explorer

is there any update on this topic as per 2025 ? Does anyone have an example script which sends SMS please?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

Hi

You can use Twilio SMS Alerting.
Check out App: https://splunkbase.splunk.com/app/2865

Refer Below Link for implementation.

https://www.splunk.com/blog/2015/09/22/sms-alerting-from-splunk-with-twilio.html

If you don't want to go with any app or TA, and you want to send sms from Splunk Custom Alerts then go with below link.

https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Alert/CreateCustomAlerts

You can execute a custom shell script and call SMS API using custom alerts.

Thanks

woodcock
Esteemed Legend

Many companies use PagerDuty and xMatters and there sre apps for both of these on Splunkbase. If not then you can sign up for a free Twilio account and go that way (another app). If you do not have admin on your search head, then you can use the little-known and littler-used email-to-SMS gateways:

mfitzp.io/list-of-email-to-sms-gateways/

koshyk
Super Champion

Depends on the version of Splunk you are running. On all newer versions of Splunk, you have multiple options of sending alert

  • Use inbuilt options from Splunk (eg Webhook, Run a script)
  • Many SMS applications come with an App. Twilio is an excellent option. You just need to install app and it will do the rest
  • Write your own scripts and bundle into an app.
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...