A simple webhook to send log messages to Prowl to provide simple iOS notifications.
$ heroku create -s cedar
From https://www.prowlapp.com/api_settings.php
$ heroku config:add PROWL_API_KEY=69fd475972db19b6c2ee1f68d08acff1c4bcbf5b
- Create a saved search for a unique term (something like
ops-alert
would work) - Create a search alert (webhook) pointing to your heroku app pointing to
/submit
Find out more about search alerts and webhooks here: http://help.papertrailapp.com/kb/how-it-works/web-hooks
Once you've created a saved search in Papertrail and configured the search alert, you can now send log messages that match that message.
For example, if your saved search matches ops-alert
, you could use this
to alert you when a big transfer has completed:
$ rsync -R /backup backup:/backup ; logger -t ops-alert The transfer has completed