icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Growl Notification Script
SHA256 checksum (growl-notification-script_10.tgz) bec453f804c31cbd4329935a1b86a6dfec7ca740fef5239d901f51a44cae4383
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Growl Notification Script

This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
This package includes a simple alert script that sends Splunk alerts as notifications to a Growl deamon over network (UDP).

Growl is a notification utiliy for Mac OS X that displays notification from various applications. For more information about Growl and to download it visit http://growl.info/

Feedback

Please send your feedback to splunk at spp.at.

If you have questions/issues/ideas don't hesitate to ask them on Splunk Answers: http://answers.splunk.com/questions/tagged/app-growl-spp

Prerequisites:

- Growl has to be installed on your Mac OS X client machine.
- Your client machine has to be reachable on UDP Port 9887 for the Splunk Server (ie. not blocked by a firewall)

Installation:

On your client machine:

Setup growl to listen on the network for incoming notifications and enter a password to allow remote application registration. To do so go to System Preferences on your Mac > Growl > Network - See http://dl.dropbox.com/u/1160714/screens/growl_config_screen.png

On the Splunk Server:

Copy the growlnotify.py form the package to the following folder on your Splunk Server:

$SPLUNK_HOME/bin/scripts

Make sure the script is executable:

$ chmod a+x $SPLUNK_HOME/bin/scripts/growlnotify.py

Edit the growlnotify.py and enter the values for the following variables:

GROWL_HOST - Enter the IP Address of the client machine running Growl (eg. GROWL_HOST = "192.168.0.33")
GROWL_REGISTRATION_PASSWORD - Enter the password you've set in the Growl Preferences (eg. GROWL_REGISTRATION_PASSWORD="changeme")

Excute the growlnotify.py with \--register as argument. The script will send a registrations packet to the Growl daemon.

$ splunk cmd python growlnotify.py --register

You will get an entry in Growl > Applications where you can configure how Splunk notifications should look like.

Basic Usage

Set up a scheduled search and enter as alert action "Trigger shell script" and fill in growlnotify.py as the "Filename of shell script to execute". See http://dl.dropbox.com/u/1160714/screens/save_search_dialog.png

When the search is executed and the conditions match, the growlnotify script will be invoked which will send a notification to the Growl host using the saved search name as a title and the number of events as the message.

Advanced Usage

If you want to customize the message that is displayed within the Growl notification, you'll have to customize the search. Once the saved search name ends with "--inline", then the growlnotify script will take a look at each result of the search if it contains a field called "growl_msg" and will send a notification with the value of this field.

Example search:

sourcetype=access_combined | stats count by uri,host | where count>1000 | eval growl_msg="Frequently accessed URI: ".uri." has been hit ".tostring(count)." times in the last hour on host ".host

Save this search with the search name "Website Notification--inline" and configure it to execute the grownotify.py script.
This will produce notification messages like "Frequently accessed URI: /products/product1 has been hit 3805 times in the last hour on host webserver1" with the notification title "Web Notification"

Release Notes

Version 1.0
Sept. 24, 2010

Subscribe Share

Are you a developer?

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 from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.