# Logstash to es，Deprecated field \[\_routing\] used, expected \[routing\] instead

**URL:** <https://discuss.elastic.co/t/logstash-to-es-deprecated-field-routing-used-expected-routing-instead/175084>\
**Category:** Logstash\
**Created:** [April 3, 2019, 2:04am UTC](https://discuss.elastic.co/t/logstash-to-es-deprecated-field-routing-used-expected-routing-instead/175084 "2019-04-03T02:04:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZQbd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqbd/32/41514_2.png) [@ZQbd](https://discuss.elastic.co/u/ZQbd)\
**Post date:** [April 3, 2019, 2:04am UTC](https://discuss.elastic.co/t/logstash-to-es-deprecated-field-routing-used-expected-routing-instead/175084/1 "2019-04-03T02:04:10Z")

</div>

I use logstash to es ，logstash output configuration is as follows but has been an error， Deprecated field [\_routing] used, expected [routing] instead，why and how to solve ？  
output {  
elasticsearch {  
hosts =\> ["elasticsearch:9200"]  
index=\>"xxxxxx"  
document\_id =\> "xxxxxxxx"  
routing =\> "%{serverid}"  
}  
}

---

<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:** [April 3, 2019, 1:31pm UTC](https://discuss.elastic.co/t/logstash-to-es-deprecated-field-routing-used-expected-routing-instead/175084/2 "2019-04-03T13:31:40Z")

</div>

> [@ZQbd](#):
>
> Deprecated field [\_routing] used, expected [routing] instead

Does it actually fail, or just log a deprecation message? There is an [issue](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/812) for this. Not sure if an upgrade would fix it.

---

<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:** [May 1, 2019, 1:31pm UTC](https://discuss.elastic.co/t/logstash-to-es-deprecated-field-routing-used-expected-routing-instead/175084/3 "2019-05-01T13:31:47Z")

</div>

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