Configuring Splunk to send Notify My Android push notifications

Below you will find some easy and quick steps to configure Splunk to send you push notifications through your favorite platform, NMA!

Before we start, you will need:

  • Notify My Android Account (So you can get an API Key). You can register here .
  • Notify My Android installed on your Android device. You can get it on Google Play .
  • A Notify My Android API Key, that you can find on your My Account page.
  • Download this script: nma-splunk.py and save it under $SPLUNK_HOME/bin/scripts/
  • Remember to give the script execution permission with chmod +x $SPLUNK_HOME/bin/scripts/nma-splunk.py
  • Edit the nma-splunk.py script and replace the word 'changeme' on line 16 with your APIKEY, keeping the quotes

Now you can proceed to configure Splunk!

Step 1

Open your Splunk Web Administration GUI and navigate to: Manager -> Searchs and reports

Step 2

Create a new search or edit an existing one, and enable the option "Run a script".

Step 3

Edit the field "File name of the script to run" with: nma-splunk.py

Splunk

Enjoy! And if you have questions or problems, try our forums or on twitter. Or send us an email.