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.

Revisions

  1. mchenetz created this gist Jun 24, 2016.
    25 changes: 25 additions & 0 deletions meraki-logstash.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    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 {
    }
    }