# Logstash is not reading data

**URL:** <https://discuss.elastic.co/t/logstash-is-not-reading-data/82262>\
**Category:** Logstash\
**Created:** [April 13, 2017, 9:14am UTC](https://discuss.elastic.co/t/logstash-is-not-reading-data/82262 "2017-04-13T09:14:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![udaykirankona](https://avatars.discourse-cdn.com/v4/letter/u/ac91a4/32.png) [@udaykirankona](https://discuss.elastic.co/u/udaykirankona)\
**Post date:** [April 13, 2017, 9:14am UTC](https://discuss.elastic.co/t/logstash-is-not-reading-data/82262/1 "2017-04-13T09:14:50Z")

</div>

HI,  
I installed ELK 5.3 version.

When I start logstash to read the file for first time/even fresh file its not reading the data.

If I un-comment start\_position, then Logstash reading data. otherwise its not...

The following is the config,

input {  
file {  
path =\> "/var/log/tomcat/file.txt"

# start\_position =\> "beginning"

```
  sincedb_path => "/dev/null"
  ignore_older => 0

```

}  
}  
filter {  
grok {  
match =\> { "message" =\> "%{COMMONAPACHELOG}" }  
}  
}  
output {  
stdout { codec =\> rubydebug }  
elasticsearch {  
hosts =\> "IP"  
index =\> "logstash-%{+YYYY-MM-dd}"  
}  
}

Logstash running through command as follows,

./bin/logstash --path.settings /etc/logstash -f /path/Sample.conf

Please suggest if I miss anything

Thanks,  
Uday.K

---

<div class="post-metadata">

**Author:** ![jordansissel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jordansissel/32/44957_2.png) [@jordansissel](https://discuss.elastic.co/u/jordansissel)\
**Post date:** [April 21, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-is-not-reading-data/82262/2 "2017-04-21T06:36:08Z")

</div>

> [@udaykirankona](#):
>
> ignore\_older =\> 0

Your `ignore_older => 0` setting tells the file input to ignore any files older than 0 seconds, which will basically be every file. This may explain the behavior you are seeing.

I recommend removing this setting.

---

<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 19, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-is-not-reading-data/82262/3 "2017-05-19T06:36:38Z")

</div>

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