# Show Latest data from CSV issue

**URL:** <https://discuss.elastic.co/t/show-latest-data-from-csv-issue/96581>\
**Category:** Logstash\
**Created:** [August 10, 2017, 9:36am UTC](https://discuss.elastic.co/t/show-latest-data-from-csv-issue/96581 "2017-08-10T09:36:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabi1rosel](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sabi1rosel](https://discuss.elastic.co/u/sabi1rosel)\
**Post date:** [August 10, 2017, 9:36am UTC](https://discuss.elastic.co/t/show-latest-data-from-csv-issue/96581/1 "2017-08-10T09:36:59Z")

</div>

I am fetching data from a text file and feeding it to kibana , When i remove the old data from txt file and insert new one kibana still showing old data appended with new data. My requirement is to kibana show only latest data whatever present in the txt file right now .... not previous one. Below is the logstash file that i have used.

input {  
file {  
path =\> "/Users/apple/Documents/Kibana/ELK/logstash-5.5.1/data/check.txt"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}

filter {  
grok {  
match =\> {"message" =\> "\A%{WORD:crash\_site}%{SPACE}%{NUMBER:crash\_count:int}"}  
}  
}

output {  
elasticsearch {  
hosts =\> "[http://localhost:9200](http://localhost:9200)"  
index =\> "check"  
document\_type =\> "check\_data"  
}  
}

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 10, 2017, 2:36pm UTC](https://discuss.elastic.co/t/show-latest-data-from-csv-issue/96581/2 "2017-08-10T14:36:58Z")

</div>

Hi, I moved this to the logstash forum where you may get more help. Kibana just displays whatever is in ES, this is more of an ingestion problem.

---

<div class="post-metadata">

**Author:** ![sabi1rosel](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sabi1rosel](https://discuss.elastic.co/u/sabi1rosel)\
**Post date:** [August 16, 2017, 5:45am UTC](https://discuss.elastic.co/t/show-latest-data-from-csv-issue/96581/3 "2017-08-16T05:45:42Z")

</div>

Also if i add more data next day ..... it is not showing me the That day added data. Any help would be appreciated.

---

<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:** [September 13, 2017, 5:46am UTC](https://discuss.elastic.co/t/show-latest-data-from-csv-issue/96581/4 "2017-09-13T05:46:05Z")

</div>

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