# Unable to get log files from directory in logstash

**URL:** <https://discuss.elastic.co/t/unable-to-get-log-files-from-directory-in-logstash/95226>\
**Category:** Logstash\
**Created:** [July 31, 2017, 6:20pm UTC](https://discuss.elastic.co/t/unable-to-get-log-files-from-directory-in-logstash/95226 "2017-07-31T18:20:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjsprat](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bjsprat](https://discuss.elastic.co/u/bjsprat)\
**Post date:** [July 31, 2017, 6:20pm UTC](https://discuss.elastic.co/t/unable-to-get-log-files-from-directory-in-logstash/95226/1 "2017-07-31T18:20:42Z")

</div>

I am trying to get logstash to read json logs from a directory.

Here is my config file:

```
input {
  file {
    path => "/home/ast/nifi-files-cp/*.json"
  }
  tcp {
    port => 10000
  }
}
filter{
  json{
    source => "message"
  }
}
output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "json"
   }
}

```

Logstash does not give any error messages, it just does not pick the files up out of the directory.

Any help is appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 31, 2017, 11:43pm UTC](https://discuss.elastic.co/t/unable-to-get-log-files-from-directory-in-logstash/95226/2 "2017-07-31T23:43:26Z")

</div>

If you have processed the data previously it is probably a sincedb problem, so you may want to reset that.

---

<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:** [August 28, 2017, 11:43pm UTC](https://discuss.elastic.co/t/unable-to-get-log-files-from-directory-in-logstash/95226/3 "2017-08-28T23:43:30Z")

</div>

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