Skip to content

Instantly share code, notes, and snippets.

@himynamesdave
Created March 19, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himynamesdave/259840849cb0f7d3b8e9 to your computer and use it in GitHub Desktop.
Save himynamesdave/259840849cb0f7d3b8e9 to your computer and use it in GitHub Desktop.
Splunk inputs.conf file to be used with REST Modular input for analytics.usa.gov - more here: http://wp.me/pMBBy-5DV
[rest://people online right now p60s]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/realtime.json
http_method = GET
index_error_response_codes = 0
polling_interval = 60
response_type = json
sourcetype = _json
streaming_request = 0
[rest://visits every hour today p1h]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/today.json
http_method = GET
index_error_response_codes = 0
polling_interval = 3600
response_type = json
sourcetype = _json
streaming_request = 0
[rest://visits by desktop mobile tablet devices over 90 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/devices.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
[rest://visits broken down by operating system over 90 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/os.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
[rest://visits broken down by Windows version over 90 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/windows.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
[rest://visits broken down by browser over 90 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/browsers.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
[rest://visits broken down by Internet Explorer version over 90 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/ie.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
[rest://top 20 pages, ranked by visitors online now p60s]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/top-pages-realtime.json
http_method = GET
index_error_response_codes = 0
polling_interval = 60
response_type = json
sourcetype = _json
streaming_request = 0
[rest://top 20 domains ranked by visits over 7 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/top-domains-7-days.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
[rest://top 20 domains, ranked by visits over 30 days p1d]
auth_type = none
endpoint = https://analytics.usa.gov/data/live/top-domains-30-days.json
http_method = GET
index_error_response_codes = 0
polling_interval = 86400
response_type = json
sourcetype = _json
streaming_request = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment