# Mulitple pipeline with common output file

**URL:** <https://discuss.elastic.co/t/mulitple-pipeline-with-common-output-file/226910>\
**Category:** Logstash\
**Created:** [April 7, 2020, 1:48pm UTC](https://discuss.elastic.co/t/mulitple-pipeline-with-common-output-file/226910 "2020-04-07T13:48:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya\_yuvaraj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priya_yuvaraj/32/46074_2.png) [@priya\_yuvaraj](https://discuss.elastic.co/u/priya_yuvaraj)\
**Post date:** [April 7, 2020, 1:48pm UTC](https://discuss.elastic.co/t/mulitple-pipeline-with-common-output-file/226910/1 "2020-04-07T13:48:56Z")

</div>

```auto
Hi all,

I need a help in the following logstash implementation. I am new to logstash.

I am having multiple pipeline configured in pipeline.yml. All the pipelines have to send data to the same output file ( commonfile_data_time_with_seconds.log). 

1. Is this thread safe ? Is there any other way to implement this ?

Thank you 

```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 9, 2020, 5:32pm UTC](https://discuss.elastic.co/t/mulitple-pipeline-with-common-output-file/226910/2 "2020-04-09T17:32:57Z")

</div>

I would recommend you have a look at [the collector pattern](https://www.elastic.co/guide/en/logstash/7.6/pipeline-to-pipeline.html#collector-pattern).

---

<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:** [May 7, 2020, 5:32pm UTC](https://discuss.elastic.co/t/mulitple-pipeline-with-common-output-file/226910/3 "2020-05-07T17:32:59Z")

</div>

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