Http_Polling and App-Keys

(Adam Olsson) #1


I'm trying to setup Logstash to retrieve data from Pingdom. I have managed to connect to the Pingdom server but i need to add the application key that Pingdom provided me to the header. I can't figure out how or where to add the App-Key so i get access to Pingdom.

Here's my config file:

input {
  http_poller {
    urls => {
      pingdom => {
        method => get
        url => ""
        header => {
          Accept => "application/json"
        auth =>{
          user => "username"
          password => "password"
    interval => 1000
    request_timeout => 8
    metadata_target => http_poller_metadata
    tags => pingdom
output {
  stdout { codec => rubydebug }

I've tried adding the App-Key inside the "header" bracket and inside the "auth" bracket with the keyword "App-Key", which is what the Pingdom API says it requires, but that only results in an error saying the config file is wrong.

I am new to all of Logstash, Kibana and ElasticSearch so this might just be a newbie mistake.

I am thankful for all answers!

(andrewvc) #2

You want headers not header.

(Adam Olsson) #3

Thank you!

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.