Twilio App for Splunk helps you ingest Twilio logs into Splunk. This app comes prebuilt with searches powering a number of dashboards and alerts for the ingested log data. It also provides Twilio SMS alerting functionality via Splunk's scripted alert triggers.
1 x Index (twilio)
4 x Prebuilt Dashboards (call center, call stats, sms center, billing)
*1 x Prebuilt Alert (billing)
Download this app from Splunkbase then upload the tar.gz file to Splunk.
1) Download your Twilio call and SMS logs
Twilio provides an easy way to access your call and SMS logs using the web interface.
Protip: Place both files in a folder together.
2) Upload these files to Splunk
Navigate to: Settings > Data inputs > Files & directories
Click add new.
Follow the steps, making sure you set sourcetype=csv, and index=twilio.
You can choose wether to monitor a file or a directory. Protip: If you placed both files in the same directory during step one, it is quicker to provide Splunk with the directory to monitor. This way, if new Twilio logs are added in the future, Splunk will automatically ingest them.
If everything has worked well, a simple search for "index=twilio" should return some results. You might need to restart Splunk first.
1) Get your Twilio account keys
Get your Twilio Account SID and Auth Token on your Twilio Dashboard
2) Edit alert scripts
Go to "$SPLUNK_HOME/etc/apps/twilio-app/bin"
Using your favourite text editor open "$SPLUNK_HOME/etc/apps/twilio-app/bin/textalert-twilio.py"
Enter your Twilio Account SID (starting with AC) / Auth token
Enter "TO phone number" (recipient of SMS Text Message)
*Enter "FROM phone number" (sender of message, must be one of your Twilio Account phone #)
3) Configure an alert
Configure a Splunk alert and select the "Run a Script" option.
Set "textalert-twilio.py" as the script
Note: Twilio will charge you for every SMS message sent. You can view Twilio pricing @ https://www.twilio.com/sms/pricing
If everything has worked well the "TO phone number" should be recieving alerts. If not, check the alerts are being fired in the alert manager in the Splunk GUI via: "Activity" > "Alert Manager"
*Automated (real-time) collection of logs into Splunk via Twilio API.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.