# Read mode vs tail mode

**URL:** <https://discuss.elastic.co/t/read-mode-vs-tail-mode/229343>\
**Category:** Logstash\
**Created:** [April 22, 2020, 7:22pm UTC](https://discuss.elastic.co/t/read-mode-vs-tail-mode/229343 "2020-04-22T19:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Ract\_Costa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ract_costa/32/26095_2.png) [@Claudio\_Ract\_Costa](https://discuss.elastic.co/u/Claudio_Ract_Costa)\
**Post date:** [April 22, 2020, 7:22pm UTC](https://discuss.elastic.co/t/read-mode-vs-tail-mode/229343/1 "2020-04-22T19:22:10Z")

</div>

Hi,

I'm processing files that comes from an external server each minute; so once copied, files are static and no new content will be added into the file.

I am reading the files in tail mode but I've experienced some issues processing some lines of the files ( are not being ingested into ES.)

My input configuration is:

```
input {
        file {
                path => "/fwdata/PCRF/EDR/output/dcr/RTC*"
        }
}

```

In this directory "/fwdata/PCRF/EDR/output/dcr/" there are hundred files and, after the end of the day (around 00:00 am), a script move these files to other directory.

Well, I would like to know if in this scenario I descrived above:

- Is tail mode the correct way to ingest all line within a file to ES ? If yes, my input configuration is correct ? Is possible to undertstand why some lines are not being ingested into ES ?

- Or read mode is the correct way ? If yes, can show me how would be the input configuration ?

---

<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 20, 2020, 7:22pm UTC](https://discuss.elastic.co/t/read-mode-vs-tail-mode/229343/2 "2020-05-20T19:22:16Z")

</div>

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