Skip to content

Instantly share code, notes, and snippets.

@himynamesdave
Created May 24, 2014 10:41
Show Gist options
  • Save himynamesdave/ce171d121d3e03eaa533 to your computer and use it in GitHub Desktop.
Save himynamesdave/ce171d121d3e03eaa533 to your computer and use it in GitHub Desktop.
example twitter input for splunk REST API modular input
[rest://Twitter Follow @himynamesdave]
auth_type = oauth1
delimiter = ^
endpoint = https://stream.twitter.com/1.1/statuses/filter.json
host = TwitterAPI
http_method = GET
index_error_response_codes = 0
oauth1_access_token = YOUR_ACCESS_TOKEN
oauth1_access_token_secret = YOUR_ACCESS_TOKEN_SECRET
oauth1_client_key = YOUR_CLIENT_KEY
oauth1_client_secret = YOUR_CLIENT_SECRET
request_timeout = 86400
response_type = json
sourcetype = tweets
streaming_request = 1
url_args = follow=21756213^stall_warnings=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment