Project

General

Profile

How to Set Up An Incoming Webhook from IFTTT » History » Version 4

Luke Murphey, 07/10/2017 07:36 PM

1 3 Luke Murphey
h1. How to Set up an Incoming Webhook from IFTTT
2 1 Luke Murphey
3 1 Luke Murphey
You can use IFTTT to push data to your Splunk install via a Webhook. Here is how you do it:
4 1 Luke Murphey
5 1 Luke Murphey
h2. Step 1: Create Input in Splunk
6 1 Luke Murphey
7 1 Luke Murphey
Create a webhook in Splunk if you have not done so already.
8 1 Luke Murphey
9 4 Luke Murphey
h2. Step 2: Configure Maker Channel in IFTTT (an outgoing Webhook)
10 1 Luke Murphey
11 4 Luke Murphey
Use the Maker channel in IFTTT to push data to your Splunk install. To do this, make a new applet with a "then" action that executes a webhook.
12 1 Luke Murphey
13 4 Luke Murphey
Here are some details on how to set this up:
14 1 Luke Murphey
15 4 Luke Murphey
# Make sure the URL is to your Splunk install and uses the port you set when you created the Webhook input
16 4 Luke Murphey
# You can pass the data via the URL (e.g. _https://webhook.mysplunkinstall.net/ifttt/splunk_news?title={{EntryTitle}}&url={{EntryUrl}}_)
17 4 Luke Murphey
# You can also pass data in the body. To do so set the following:
18 4 Luke Murphey
## Make sure the method is a POST
19 4 Luke Murphey
## You can send structured data (that is, field/values pairs) that will be automatically parsed into Splunk by sending JSON. To do this, use the content type is "application/JSON". Otherwise, use "plain/text" if you just want the data ingested as text.
20 4 Luke Murphey
## If you chose "application/JSON" format, then make sure the data you entered into the "Body" field is valid JSON. You can do this by entering the body at http://jsonparseronline.com/ and ensuring it is indicated as valid.
21 4 Luke Murphey
22 4 Luke Murphey
Below is an example of sending an RSS feed to Splunk:
23 4 Luke Murphey
24 4 Luke Murphey
!ifttt_example.png!