Skip to content

Instantly share code, notes, and snippets.

@mchenetz
Created June 24, 2016 20:40
Show Gist options
  • Select an option

  • Save mchenetz/660d36961121574e583e30e3f877ef77 to your computer and use it in GitHub Desktop.

Select an option

Save mchenetz/660d36961121574e583e30e3f877ef77 to your computer and use it in GitHub Desktop.
input {
http_poller {
urls => {
"meraki_traffic" => {
method => get
url => "https://dashboard.meraki.com/api/v0/networks/ENTER NETWORK ID/traffic?timespan=7200"
headers => {
Accept => "application/json"
"x-cisco-meraki-api-key" => "ENTER API KEY"
}
}
}
request_timeout => 60
interval => 60
codec => "json"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment