# How can we run logstash conf files in sequence?

**URL:** <https://discuss.elastic.co/t/how-can-we-run-logstash-conf-files-in-sequence/53318>\
**Category:** Logstash\
**Created:** [June 20, 2016, 1:37pm UTC](https://discuss.elastic.co/t/how-can-we-run-logstash-conf-files-in-sequence/53318 "2016-06-20T13:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupal](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rupal](https://discuss.elastic.co/u/rupal)\
**Post date:** [June 20, 2016, 1:37pm UTC](https://discuss.elastic.co/t/how-can-we-run-logstash-conf-files-in-sequence/53318/1 "2016-06-20T13:37:22Z")

</div>

I have following scenario.

I have 4 different logstash files and 4 different document\_type.

```
Conf files Document Type CSV file used to get input

```

1. doc1.conf doc1 doc1.csv
2. doc2.conf doc2 doc1.csv
3. doc3.conf doc3 doc3.csv
4. doc4.conf doc4 doc4.csv

first two logstash files are using same csv files to get input. In doc2.conf file, elasticsearch filter plugin is used to get particular field data from previous events from "doc1" document type. In addtion , In doc3.conf and doc4.conf, elasticsearch filter plugin is used to get particular field data from previous events from "doc2" document type.

Now I want to run logstash conf files in sequence doc1.conf ,doc2.conf ,doc3.conf ,doc4.conf . I want to implement real time logging. So after running all files how can I ensure sequence ??

---

<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:** [July 6, 2017, 4:51am UTC](https://discuss.elastic.co/t/how-can-we-run-logstash-conf-files-in-sequence/53318/2 "2017-07-06T04:51:51Z")

</div>

Closed on July 6, 2017, 4:51am UTC


