# Decorate\_events in Logstash 5 kafka input

**URL:** <https://discuss.elastic.co/t/decorate-events-in-logstash-5-kafka-input/57128>\
**Category:** Logstash\
**Created:** [August 3, 2016, 4:09pm UTC](https://discuss.elastic.co/t/decorate-events-in-logstash-5-kafka-input/57128 "2016-08-03T16:09:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tsury](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@Tsury](https://discuss.elastic.co/u/Tsury)\
**Post date:** [August 3, 2016, 4:09pm UTC](https://discuss.elastic.co/t/decorate-events-in-logstash-5-kafka-input/57128/1 "2016-08-03T16:09:56Z")

</div>

Was this setting removed? I can't seem to find it in the documentation and it causes a config error when used.  
I have a Kafka -\> Logstash -\>Elasticsearch setup and I would like to set the ES index according to the Kafka topic. How can I achieve this without decorate\_events?

Thanks.

---

<div class="post-metadata">

**Author:** ![Joe\_Lawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_lawson/32/3390_2.png) [@Joe\_Lawson](https://discuss.elastic.co/u/Joe_Lawson)\
**Post date:** [August 3, 2016, 6:08pm UTC](https://discuss.elastic.co/t/decorate-events-in-logstash-5-kafka-input/57128/2 "2016-08-03T18:08:26Z")

</div>

It needs to be ported, see here: [Pulling topic metadata from kafka 0.9](https://discuss.elastic.co/t/pulling-topic-metadata-from-kafka-0-9/55440/3)

---

<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 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/decorate-events-in-logstash-5-kafka-input/57128/3 "2017-07-06T04:45:01Z")

</div>


