# Files automatically indexed in elastic

**URL:** https://discuss.elastic.co/t/files-automatically-indexed-in-elastic/209305
**Category:** Logstash
**Created:** [November 25, 2019, 12:54pm UTC](https://discuss.elastic.co/t/files-automatically-indexed-in-elastic/209305 "2019-11-25T12:54:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)
#### Post date: [November 25, 2019, 12:54pm UTC](https://discuss.elastic.co/t/files-automatically-indexed-in-elastic/209305/1 "2019-11-25T12:54:04Z")

</div>

I have a folder where new logs are added daily, in my conf file the input is defined like this:

```
input {
    file {
            path => "/opt/processed/disc*"
            start_position => "beginning"
            sincedb_path => "/dev/null"
}

```

The files names are like this:

```
disc_2019_11_12.log
disc_2019_11_13.log
disc_2019_11_14.log

```

The command I run to index the logs look like this:

```
bin/logstash -f /etc/logstash/conf.d/discs.conf

```

The problem that I have is that the new files that are added to my /opt/processed folder are not indexed automatically by logstash

Is there something that I need to do so this new files get automatically indexed in elastic?

---

<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: [December 23, 2019, 12:54pm UTC](https://discuss.elastic.co/t/files-automatically-indexed-in-elastic/209305/2 "2019-12-23T12:54:07Z")

</div>

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