# Separate production logs

**URL:** <https://discuss.elastic.co/t/separate-production-logs/173146>\
**Category:** Elasticsearch\
**Created:** [March 20, 2019, 12:55pm UTC](https://discuss.elastic.co/t/separate-production-logs/173146 "2019-03-20T12:55:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Habbiot](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@Habbiot](https://discuss.elastic.co/u/Habbiot)\
**Post date:** [March 20, 2019, 12:55pm UTC](https://discuss.elastic.co/t/separate-production-logs/173146/1 "2019-03-20T12:55:39Z")

</div>

I have Test and production logs going to the same elasticsearch cluster. how can i separate them ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 20, 2019, 1:32pm UTC](https://discuss.elastic.co/t/separate-production-logs/173146/2 "2019-03-20T13:32:51Z")

</div>

Which tool is sending data to elasticsearch?

---

<div class="post-metadata">

**Author:** ![Habbiot](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@Habbiot](https://discuss.elastic.co/u/Habbiot)\
**Post date:** [March 20, 2019, 1:55pm UTC](https://discuss.elastic.co/t/separate-production-logs/173146/3 "2019-03-20T13:55:29Z")

</div>

Logstash would be sending data to elasticsearch

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 20, 2019, 2:19pm UTC](https://discuss.elastic.co/t/separate-production-logs/173146/4 "2019-03-20T14:19:38Z")

</div>

So you have a configuration for production and one for dev?  
Just change the output plugin to send to the right cluster then.

If you have more questions about logstash, I'd recommend asking in #logstash group.

---

<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:** [April 17, 2019, 2:19pm UTC](https://discuss.elastic.co/t/separate-production-logs/173146/5 "2019-04-17T14:19:41Z")

</div>

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