Logstash 1.5.2 : uninitialized constant LogStash::Inputs::Http::Base64

Hello,

I wanted to use the plugin http logsatsh input, but it is not in Logstash 1.5.1 (my actual version). So I update to 1.5.2 but when I try to start logsatsh, I have this error message :

The error reported is:
  uninitialized constant LogStash::Inputs::Http::Base64

I don't understand this.
This is my logsatsh configuration :

input {
    http {
	host => "localhost"
	port => "8888"
	type => "html5"
	user => "admin"
	password => "password"
    }
}
filter{
    if [type] == "html5"
    {
	mutate {
	    add_field => { "file" => "pas de fichier source (http)" }
	    add_field => { "application" => "simat" }
	}
	json {
	    source => message
	}
	date {
	    match => ["date","YYYY-MM-dd HH:mm:ss"]
	    target => "@timestamp"
	    locale => "en"
	    remove_field => [ "date" ]
	}
    }
}
output {
    stdout { codec => rubydebug }
}

Can you help me ?

Marjolaine

Problem solved ! I made a mistake in my configuration of logstash in the http input

I have the same issue with Logstash 1.5.3 -- I don't think there's a configuration issue but it looks like the HTTP plugin doesn't load the Base64 class properly if using username/password for authentication.

Here's my config:

input {

  syslog {
    type => "syslog"
    port => 5544
    tags => []
    add_field => {
      "index" => "syslog"
    }
  }

  http {
    type => "http"
    port => 8080
    user => "logstash"
    password => "*******"
    tags => [ "webhook" ]
  }

}

# Add your filters here
filter {

}

output {
  # Trying to debug things? Enable the stdout output plugin
  stdout {
    codec => rubydebug
  }
}

This is a cross-post of https://github.com/logstash-plugins/logstash-input-http/issues/17. Not sure where you prefer bug reports.