# How to configure different indexes in logstash

**URL:** <https://discuss.elastic.co/t/how-to-configure-different-indexes-in-logstash/58665>\
**Category:** Logstash\
**Created:** [August 23, 2016, 9:55am UTC](https://discuss.elastic.co/t/how-to-configure-different-indexes-in-logstash/58665 "2016-08-23T09:55:53Z")\
**Posts on this page:** 1\
**Showing post:** 37

<div class="post-metadata">

**Author:** ![Swaroop\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swaroop_chand/32/45812_2.png) [@Swaroop\_Chand](https://discuss.elastic.co/u/Swaroop_Chand)\
**Post date:** [May 26, 2019, 9:50am UTC](https://discuss.elastic.co/t/how-to-configure-different-indexes-in-logstash/58665/37 "2019-05-26T09:50:10Z")

</div>

Thank you.created in thread.Please have look.

> [@How to configure indexes in logstash](https://discuss.elastic.co/t/how-to-configure-indexes-in-logstash/182792):
>
> input { beats { port =\> 5044 } } filter { if [type] == "syslog" { grok { match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" } } date { match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"] } } } output { elasticsearch { hosts =\> ["[https://localhost:9200](https://localhost:9200/)"] index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}" document\_type =\> "%{[@metadata][type]}" } …

---

_[View the full topic](https://discuss.elastic.co/t/how-to-configure-different-indexes-in-logstash/58665)._
