Skip to content

Instantly share code, notes, and snippets.

View Eddolan's full-sized avatar

Eddie Dolan Eddolan

View GitHub Profile
@ashishterp
ashishterp / slack_alert.py
Last active March 20, 2020 14:50
Splunk Alerting to Slack
# Instructions:
# 1. Go to https://[yourdomain].slack.com/services/new
# 2. Configure a new Incoming WebHook and paste the URL below on Line 14
# 3. Copy this file into $SPLUNK_HOME$/bin/scripts
# 4. Configure your saved search to run slack_alert.py
import httplib, json
import getopt, sys, os
import subprocess