# "Content-Type header \[text/plain; charset=ISO-8859-1\] is not supported","status":406

**URL:** <https://discuss.elastic.co/t/content-type-header-text-plain-charset-iso-8859-1-is-not-supported-status-406/268309>\
**Category:** Logstash\
**Created:** [March 25, 2021, 9:14am UTC](https://discuss.elastic.co/t/content-type-header-text-plain-charset-iso-8859-1-is-not-supported-status-406/268309 "2021-03-25T09:14:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan4](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Dan4](https://discuss.elastic.co/u/Dan4)\
**Post date:** [March 25, 2021, 9:14am UTC](https://discuss.elastic.co/t/content-type-header-text-plain-charset-iso-8859-1-is-not-supported-status-406/268309/1 "2021-03-25T09:14:40Z")

</div>

Hello together,

I am new to the elastic stack and have no further experience than just google a solution. In my environment I have to use Logstash on a remote server. I have no control and influence over the version which is installed. Currently it is Logstash 1.5.4 which I have to use. My current elasticsearc version is 7.9.3.

The following content are my current output lines of my logstash configuration:

```auto
output {
		elasticsearch {
			protocol => http
			ssl => true
			cacert => "pathToCertificate"
			host => "url:port"
			user => "myuser"
			password => mysecretpassword
			cluster => "clustername"
			index => "classic-dev-%{+YYYY.MM.dd}"
			
		}
}

```

Running this config file I get the following error:

```auto
Failed to install template: [406] {"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406} {:level=>:error}

```

Can somebody please help me with this error?

Thanks for your help in advance.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 25, 2021, 6:37pm UTC](https://discuss.elastic.co/t/content-type-header-text-plain-charset-iso-8859-1-is-not-supported-status-406/268309/2 "2021-03-25T18:37:47Z")

</div>

Can you provide the 3 INFO messages that precede that? That will confirm where exactly this error is occurring.

---

<div class="post-metadata">

**Author:** ![Dan4](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Dan4](https://discuss.elastic.co/u/Dan4)\
**Post date:** [March 30, 2021, 7:47am UTC](https://discuss.elastic.co/t/content-type-header-text-plain-charset-iso-8859-1-is-not-supported-status-406/268309/3 "2021-03-30T07:47:33Z")

</div>

These are the only log files which are shown to me for the error:

```auto
Failed to install template: [406] {"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406} {:level=>:error}
Logstash startup completed
Got error to send bulk of actions: [406] {"error":"Content-Type header [text/plain; charset=ISO-8859-1] is not supported","status":406} {:level=>:error}
Failed to flush outgoing items {:outgoing_count=>312, :exception=>"Elasticsearch::Transport::Transport::Errors::NotAcceptable", ...

```

---

<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:** [April 27, 2021, 7:47am UTC](https://discuss.elastic.co/t/content-type-header-text-plain-charset-iso-8859-1-is-not-supported-status-406/268309/4 "2021-04-27T07:47:46Z")

</div>

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