# Logstash 6.0.0: Unknown setting 'index\_type' for elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-6-0-0-unknown-setting-index-type-for-elasticsearch/110318>\
**Category:** Logstash\
**Created:** [December 5, 2017, 10:38am UTC](https://discuss.elastic.co/t/logstash-6-0-0-unknown-setting-index-type-for-elasticsearch/110318 "2017-12-05T10:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gasmi](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gasmi](https://discuss.elastic.co/u/gasmi)\
**Post date:** [December 5, 2017, 10:38am UTC](https://discuss.elastic.co/t/logstash-6-0-0-unknown-setting-index-type-for-elasticsearch/110318/1 "2017-12-05T10:38:24Z")

</div>

I'm trying to run logstash config files on ELK 6.0.0 docker image but I got this error:  
Unknown setting 'index\_type' for elasticsearch

I am retrieving Spark streaming stats and send it to elasticsearch, but even this simple task returns an error. Here is my code:

> input {  
> graphite {  
> codec =\> "json"  
> port =\> 10513  
> host =\> "0.0.0.0"  
> }  
> }
> 
> output {  
> #stdout { codec =\> "json" }  
> elasticsearch {  
> codec =\> "json"  
> hosts =\> "localhost"  
> index =\> "spark-%{+YYYY.MM.DD}"  
> index\_type =\> "spark"  
> }  
> }

---

<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:** [January 2, 2018, 10:52am UTC](https://discuss.elastic.co/t/logstash-6-0-0-unknown-setting-index-type-for-elasticsearch/110318/2 "2018-01-02T10:52:42Z")

</div>

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