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

**URL:** <https://discuss.elastic.co/t/logstash-1-5-2-uninitialized-constant-logstash-inputs-http-base64/25149>\
**Category:** Logstash\
**Created:** [July 8, 2015, 1:03pm UTC](https://discuss.elastic.co/t/logstash-1-5-2-uninitialized-constant-logstash-inputs-http-base64/25149 "2015-07-08T13:03:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marjolaine](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@marjolaine](https://discuss.elastic.co/u/marjolaine)\
**Post date:** [July 8, 2015, 1:03pm UTC](https://discuss.elastic.co/t/logstash-1-5-2-uninitialized-constant-logstash-inputs-http-base64/25149/1 "2015-07-08T13:03:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marjolaine](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@marjolaine](https://discuss.elastic.co/u/marjolaine)\
**Post date:** [July 8, 2015, 3:55pm UTC](https://discuss.elastic.co/t/logstash-1-5-2-uninitialized-constant-logstash-inputs-http-base64/25149/2 "2015-07-08T15:55:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Andre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andre/32/3848_2.png) [@Andre](https://discuss.elastic.co/u/Andre)\
**Post date:** [July 24, 2015, 3:07pm UTC](https://discuss.elastic.co/t/logstash-1-5-2-uninitialized-constant-logstash-inputs-http-base64/25149/3 "2015-07-24T15:07:21Z")

</div>

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:

```auto
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](https://github.com/logstash-plugins/logstash-input-http/issues/17). Not sure where you prefer bug reports.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:33am UTC](https://discuss.elastic.co/t/logstash-1-5-2-uninitialized-constant-logstash-inputs-http-base64/25149/4 "2017-07-06T05:33:52Z")

</div>


