zulip/zerver/webhooks
Feorlen e0acdfde0d Add a Splunk webhook integration.
Add a webhook to create messages from Splunk search alerts. The search
alert JSON includes the first search result and a link to view the full
results. The following fields are used:

* search_name - the name of the saved search
* results_link - URL of the full search results
* host - the host the search result came from
* source - the source file on that host
* _raw - the raw text of the logged event.

The Zulip message contains:
* search name
* host
* source
* raw

The destination stream and message topic are configurable: the default
stream is "splunk" and the default topic "Splunk Alert". If the topic is
not provided in the URL, the search name is used instead (truncated if too
long. If a needed field is missing, a default value is used instead.

Example: "Missing source"

It is possible to configure a Splunk search to not include some values,
so I've provided defaults rather than return an error for missing data.
In practice, these fields are unlikely to be deliberately suppressed.

Note: alerts are only available for Splunk servers using a valid trial,
developer, or paid license.

I've added tests for the normal case of one search result, the topic from
the search name, and for a search missing one of the fields used. Tested
using Splunk Enterprise 6.5.1.

Fixes #3477
2017-03-07 21:48:26 -08:00
..
airbrake Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
appfollow Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
beanstalk mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
bitbucket mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
bitbucket2 mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
circleci mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
codeship mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
crashlytics mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
delighted Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
deskdotcom messages: Strip trailing whitespace in message contents. 2017-02-11 23:01:22 -08:00
freshdesk mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
github mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
github_webhook github: Add list and fixtures for ignored events to webhook. 2017-02-26 19:17:53 -08:00
gitlab Fix more errors caught by mypy 0.501. 2017-03-03 14:15:38 -08:00
gosquared Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
greenhouse mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
hellosign mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
helloworld Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
heroku Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
homeassistant lint: Fix homeassistant PEP8 violations. 2017-02-18 21:51:14 -08:00
ifttt Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
jira mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
librato mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
mention Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
newrelic mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
pagerduty python: Fix remaining bare excepts in codebase. 2017-03-05 16:17:04 -08:00
papertrail Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
pingdom mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
pivotal python: Fix remaining bare excepts in codebase. 2017-03-05 16:17:04 -08:00
semaphore Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
sentry mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
solano mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
splunk Add a Splunk webhook integration. 2017-03-07 21:48:26 -08:00
stash Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
stripe Remove local datetimes from webhook messages. 2017-03-03 19:00:02 -08:00
taiga mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
teamcity mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
transifex Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
travis mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
trello mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
updown mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
wordpress Update WordPress webhook to say self-installed blogs are experimental. 2017-03-03 17:15:32 -08:00
yo Split webhooks doc and move to particular directories. 2017-01-26 11:56:45 -08:00
zapier messages: Strip trailing whitespace in message contents. 2017-02-11 23:01:22 -08:00
zendesk mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
__init__.py
github_dispatcher.py