Weather Alerts in Splunk

Tips & Tricks Nimish Doshi

Its been a couple of years since I first created the current weather conditions app that is on Splunkbase, so I decided to do something similar that is a little more timely. Current weather conditions are nice events to index as they give a time line for how things are going at a particular location and provide a basis for trend analysis. However, they do not provide insight into upcoming severe weather, which are more important events to track.

Fortunately, the weather underground provides a REST API to gather severe weather alerts using a zip code. I built a scripted input Python script to gather these alerts and the standard output of each call is indexed by Splunk. The script is invoked in a configurable fashion by Splunk every hour for a list of zip codes of interest to the user. The list of zip codes is also configurable as each Splunk install will have its own favorite list. To avoid noise in the index, if there are no alerts for a zip code being checked, no output is sent to the index. I also provide a configurable scheduled saved search that will email a Splunk alert for monitored severe weather conditions. As usual, you can download this app from Splunkbase. It comes with a sample workflow action, a sample dashboard and 6 reports, a few of which are shown here.

weather alert report

Sample Reports

For international users, if you can use a REST API that can deliver severe weather alerts by some geographical location such as city and country combination, you can reuse this app’s framework to build your own internationalized version of the app.

Related Articles

Integrating with Splunk: You Gotta Think Outside the Box
Tips & Tricks
1 Minute Read

Integrating with Splunk: You Gotta Think Outside the Box

This morning, a question was asked about integrating with Splunk that started with something like, “but I can’t send syslog from my system, so how can I get that data in Splunk?” It really doesn’t matter what system or what data; before digging in, I already knew that the answer was out there.
Splunking Microsoft Azure Monitor Data – Part 1 – Azure Setup
Tips & Tricks
5 Minute Read

Splunking Microsoft Azure Monitor Data – Part 1 – Azure Setup

Use Splunk to harness the power of the data that Azure Monitor makes accessible. Learn to install the Microsoft Azure Add-on for Splunk and set up data inputs.
Everybody Splunk with the Splunk SDK
Tips & Tricks
1 Minute Read

Everybody Splunk with the Splunk SDK

One of our partners in Asia came up with the interesting catch phrase “Everybody Splunk”, which we say internally. Today’s topic is about everybody using Splunk’s SDKs. As I’ve spoken to Splunk users, I’ve noticed that many of them are not aware of their existence. This topic has been discussed elsewhere in the development guide, but I’ll summarize. Splunk has SDK API to perform Search outside of using Splunk Web and the CLI that is available for