# Logstash multiple indices

**URL:** <https://discuss.elastic.co/t/logstash-multiple-indices/209071>\
**Category:** Logstash\
**Created:** [November 22, 2019, 1:59pm UTC](https://discuss.elastic.co/t/logstash-multiple-indices/209071 "2019-11-22T13:59:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![111245](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111245/32/46958_2.png) [@111245](https://discuss.elastic.co/u/111245)\
**Post date:** [November 22, 2019, 1:59pm UTC](https://discuss.elastic.co/t/logstash-multiple-indices/209071/1 "2019-11-22T13:59:16Z")

</div>

Hello! I ask for help  
The question is:  
I send data using filebeat to logstash, logstash sends to elasticsearch  
All logs are written in a single logstash- \* indices  
I would like to write logs from different servers to my own indices

How could I propagate them? The easiest way.  
For each filebeat agent on different servers to send data to its indices

For example:  
Postgre server to postgre-\* index  
Nginx server to nginx-\* index

Thanks in advance!

---

<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:** [December 20, 2019, 1:59pm UTC](https://discuss.elastic.co/t/logstash-multiple-indices/209071/2 "2019-12-20T13:59:27Z")

</div>

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