# Logstash file input not working 6.4.0

**URL:** <https://discuss.elastic.co/t/logstash-file-input-not-working-6-4-0/152152>\
**Category:** Logstash\
**Created:** [October 12, 2018, 4:36am UTC](https://discuss.elastic.co/t/logstash-file-input-not-working-6-4-0/152152 "2018-10-12T04:36:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![envy7](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@envy7](https://discuss.elastic.co/u/envy7)\
**Post date:** [October 12, 2018, 4:36am UTC](https://discuss.elastic.co/t/logstash-file-input-not-working-6-4-0/152152/1 "2018-10-12T04:36:09Z")

</div>

Hi, I have been trying to use the logstash file input but it is not reading the file, the sincedb file is empty, I have tried all options available, mentioned in all similar threads. Setting sincedb\_path to null, tried changing mode from tail to read, the start\_position = beginning, none seem to working.

```
input {
  file {
    path => "/home/vagrant/sample.log"
    start_position => "beginning"
   # sincedb_path => "/dev/null"
    ignore_older => 0
  }
}

output {
  stdout { codec => rubydebug }
  elasticsearch {
    hosts => ["192.168.10.20"]
    user => "elastic"
    index => "test-logs-%{+yyyy.MM.dd}"
  }
}

```

I only see this in the logstash-plain.log

`[2018-10-12T09:55:06,168][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collection`s

---

<div class="post-metadata">

**Author:** ![envy7](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@envy7](https://discuss.elastic.co/u/envy7)\
**Post date:** [October 12, 2018, 6:05am UTC](https://discuss.elastic.co/t/logstash-file-input-not-working-6-4-0/152152/2 "2018-10-12T06:05:48Z")

</div>

even when setting my own sincedb path , the file remains empty.

Also when enabled debug logging I see, these lines being repeated continously

`2018-10-12T12:12:19,910][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline_id=>"sample-shipper-pipeline", :thread=>"#<Thread:0x6e3a666 sleep>"}`

---

<div class="post-metadata">

**Author:** ![Makra](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Makra](https://discuss.elastic.co/u/Makra)\
**Post date:** [October 14, 2018, 3:30am UTC](https://discuss.elastic.co/t/logstash-file-input-not-working-6-4-0/152152/3 "2018-10-14T03:30:01Z")

</div>

Try changing `sincedb_path` to `/tmp/sincedb_file` and check if logstash has been able to write on this file. It may be due to logstash don't have permission to read the file `/home/vagrant/sample.log`

---

<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:** [November 11, 2018, 3:30am UTC](https://discuss.elastic.co/t/logstash-file-input-not-working-6-4-0/152152/4 "2018-11-11T03:30:02Z")

</div>

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