# Logstash 6.x / Elasticsearch 6.x error

**URL:** <https://discuss.elastic.co/t/logstash-6-x-elasticsearch-6-x-error/114320>\
**Category:** Logstash\
**Created:** [January 5, 2018, 5:39pm UTC](https://discuss.elastic.co/t/logstash-6-x-elasticsearch-6-x-error/114320 "2018-01-05T17:39:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdk999](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mdk999](https://discuss.elastic.co/u/mdk999)\
**Post date:** [January 5, 2018, 5:39pm UTC](https://discuss.elastic.co/t/logstash-6-x-elasticsearch-6-x-error/114320/1 "2018-01-05T17:39:25Z")

</div>

I recently upgraded logstash, kibana and elasticsearch to the newest version. I read the breaking changes and looked at the 'configuring logstash 6' link. I see that Elasticsearch now requires headers to be sent but I do not see how to set this in my logstash output file.

The first issue I have is I'm getting this error..

:message=\>"Attempted to send a bulk request to Elasticsearch configured at '["[http://localhost:9200](http://localhost:9200)"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided?", :error\_message=\>"[406] {"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406}", :error\_class=\>"Elasticsearch::Transport::Transport::Errors::NotAcceptable",

my output file looks like

input { stdin { } }  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
document\_type =\> doc  
}  
stdout { codec =\> rubydebug }  
}

The second question is normally I would install a logstash-all-plugin deb package but I'm unable to find one for logstash 6. I currently have this installed

logstash-all-plugins 1:2.4.0-1

When I try to do a bin/logstash-plugin update to update all the plugins I get ..

Error Bundler::InstallError, retrying 1/10  
An error occurred while installing rake (12.3.0), and Bundler cannot continue.  
Make sure that `gem install rake -v '12.3.0'` succeeds before bundling.  
WARNING: SSLSocket#session= is not supported

when I do rake -V I get

rake, version 12.3.0

Thanks much.

---

<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:** [February 2, 2018, 5:39pm UTC](https://discuss.elastic.co/t/logstash-6-x-elasticsearch-6-x-error/114320/2 "2018-02-02T17:39:44Z")

</div>

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