# Logstash never stops

**URL:** <https://discuss.elastic.co/t/logstash-never-stops/77170>\
**Category:** Logstash\
**Created:** [March 2, 2017, 4:07pm UTC](https://discuss.elastic.co/t/logstash-never-stops/77170 "2017-03-02T16:07:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![debarun](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@debarun](https://discuss.elastic.co/u/debarun)\
**Post date:** [March 2, 2017, 4:07pm UTC](https://discuss.elastic.co/t/logstash-never-stops/77170/1 "2017-03-02T16:07:36Z")

</div>

Hi,

When I am reading a file with logstash, the logstash reads the file once and then goes back again to the top to read it again.

I am using the below config file:-

input {  
file {  
path =\> "/apps/elk/elkscripts/loadfile/file.log"  
sincedb\_path =\> '/opt/logstash/log.db'  
sincedb\_write\_interval =\> 0  
type =\> 'log'  
}  
}

filter {

##filter ocnditions

}

output {

```
                                                                    elasticsearch {
                                                                    hosts => '<IP>'
                                                                    index => 'prod-log-%{+YYYY.MM.dd}'
                                                                    }
                                                                    stdout {
                                                                                    codec => rubydebug
                                                                                    }

            }
```

---

<div class="post-metadata">

**Author:** ![debarun](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@debarun](https://discuss.elastic.co/u/debarun)\
**Post date:** [March 3, 2017, 9:50am UTC](https://discuss.elastic.co/t/logstash-never-stops/77170/2 "2017-03-03T09:50:37Z")

</div>

Hi,

Any ideas are welcome.

I just tried a test and it seems as soon as i change the index name to something static like 'log' then it seems to stop.

Regards,  
Debarun.

---

<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:** [March 31, 2017, 9:51am UTC](https://discuss.elastic.co/t/logstash-never-stops/77170/3 "2017-03-31T09:51:04Z")

</div>

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