# Running logstash

**URL:** https://discuss.elastic.co/t/running-logstash/352616
**Category:** Logstash
**Created:** [February 6, 2024, 10:32am UTC](https://discuss.elastic.co/t/running-logstash/352616 "2024-02-06T10:32:17Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [February 7, 2024, 6:44pm UTC](https://discuss.elastic.co/t/running-logstash/352616/3 "2024-02-07T18:44:40Z")

</div>

You are never setting [@metadata][id], so this will result in every document having the same \_id. You are fetching data from 27 tables and writing every document from every table to 27 indexes with the same \_id.

It is hard to believe that you really want to do that. If you want to copy each table to a separate index then use conditionals ([this](https://discuss.elastic.co/t/run-multiple-instance-of-logstash/92456/14) thread and [this](https://discuss.elastic.co/t/how-to-create-multiple-indexs-with-multiple-input-in-logstash/264416/4) thread might help), or, probably better, use pipelines.conf to configure 27 pipelines to do it.

---

_[View the full topic](https://discuss.elastic.co/t/running-logstash/352616)._
