# Logstash xpack monitoring wrong config

**URL:** <https://discuss.elastic.co/t/logstash-xpack-monitoring-wrong-config/187574>\
**Category:** Logstash\
**Created:** [June 26, 2019, 1:06pm UTC](https://discuss.elastic.co/t/logstash-xpack-monitoring-wrong-config/187574 "2019-06-26T13:06:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hriegger](https://avatars.discourse-cdn.com/v4/letter/h/ec9cab/32.png) [@hriegger](https://discuss.elastic.co/u/hriegger)\
**Post date:** [June 26, 2019, 1:06pm UTC](https://discuss.elastic.co/t/logstash-xpack-monitoring-wrong-config/187574/1 "2019-06-26T13:06:16Z")

</div>

In file /usr/share/logstash/x-pack/lib/template.cfg.erb document\_type is defined, where elasticsearch \> 7.0 doesn't support this.

> [@hriegger](#):
>
> output {  
> elasticsearch {  
> hosts =\> \<%= es\_hosts %\>  
> bulk\_path =\> "/\_monitoring/bulk?system\_id=logstash&system\_api\_version=\<%= system\_api\_version %\>&interval=1s"  
> manage\_template =\> false  
> **document\_type =\> "%{[@metadata][document\_type]}"**  
> index =\> ""

---

<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 24, 2019, 1:06pm UTC](https://discuss.elastic.co/t/logstash-xpack-monitoring-wrong-config/187574/2 "2019-07-24T13:06:20Z")

</div>

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