# Sincedb, file input plugin used in multiple Logstash process

**URL:** <https://discuss.elastic.co/t/sincedb-file-input-plugin-used-in-multiple-logstash-process/40137>\
**Category:** Logstash\
**Created:** [January 26, 2016, 3:58pm UTC](https://discuss.elastic.co/t/sincedb-file-input-plugin-used-in-multiple-logstash-process/40137 "2016-01-26T15:58:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharon.c](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharon.c/32/16076_2.png) [@sharon.c](https://discuss.elastic.co/u/sharon.c)\
**Post date:** [January 26, 2016, 3:58pm UTC](https://discuss.elastic.co/t/sincedb-file-input-plugin-used-in-multiple-logstash-process/40137/1 "2016-01-26T15:58:53Z")

</div>

I am using logstash 1.5.4. and logstash file input plugin to poll data from files. If I use multiple instance of logstash, portfile1.conf file is like this:  
input { file { path =\> "/…/access\_log2" sincedb\_path =\> "/tmp/sincedb1/s2" } }  
portfile2.conf file is this  
input { file { path =\> "/…/access\_log1" sincedb\_path =\> "/tmp/sincedb1/s1" } }

they cannot import data at the same time. One must finish before another one starts

But if I set one portfile1.conf file sincedb\_path =\> "/dev/null", then they can import data at the same time. Sincedb is for keeping track of the offset, so in my program, I really need it.

How can I use multiple logstash instances to import data from files at the same time, and still use sincedb to keep track of their offset.

---

<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, 5:14am UTC](https://discuss.elastic.co/t/sincedb-file-input-plugin-used-in-multiple-logstash-process/40137/2 "2017-07-06T05:14:04Z")

</div>


