Skip to content

Instantly share code, notes, and snippets.

@alq666
Created May 2, 2014 19:32
Show Gist options
  • Save alq666/af01e44d81a5e0389995 to your computer and use it in GitHub Desktop.
Save alq666/af01e44d81a5e0389995 to your computer and use it in GitHub Desktop.
Datadog & Splunk minimal integration
#!/bin/bash
source /Users/alq/Code/workspace/bin/activate
dog event post "Found $SPLUNK_ARG_1 events in splunk" "Matching $SPLUNK_ARG_2 based on $SPLUNK_ARG_5:, from report $SPLUNK_ARG_4. More details at $SPLUNK_ARG_6."
@alq666
Copy link
Author

alq666 commented May 2, 2014

How this works

  1. Install Splunk
  2. drop dog-splunk.sh in $SPLUNK_HOME/bin/scripts/
  3. Create a "report" that runs on a regular basis and triggers that dog-splunk as an Alert Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment