# How to import the old event from file to es use logstash

**URL:** <https://discuss.elastic.co/t/how-to-import-the-old-event-from-file-to-es-use-logstash/81905>\
**Category:** Logstash\
**Created:** [April 11, 2017, 3:23am UTC](https://discuss.elastic.co/t/how-to-import-the-old-event-from-file-to-es-use-logstash/81905 "2017-04-11T03:23:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhaochl](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zhaochl](https://discuss.elastic.co/u/zhaochl)\
**Post date:** [April 11, 2017, 3:23am UTC](https://discuss.elastic.co/t/how-to-import-the-old-event-from-file-to-es-use-logstash/81905/1 "2017-04-11T03:23:22Z")

</div>

start\_position =\> "beginning"  
ignore\_older =\> 2592000 #7 day before ignore

I use this config ,but find data missing, and I am not sure ,when to use start\_position =\> "beginning" and when to use start\_position =\> "end" config

---

<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:** [April 11, 2017, 8:18am UTC](https://discuss.elastic.co/t/how-to-import-the-old-event-from-file-to-es-use-logstash/81905/2 "2017-04-11T08:18:22Z")

</div>

Well beginning means go from the start of the file, end means only look for new data in the file.

---

<div class="post-metadata">

**Author:** ![zhaochl](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@zhaochl](https://discuss.elastic.co/u/zhaochl)\
**Post date:** [April 11, 2017, 9:40am UTC](https://discuss.elastic.co/t/how-to-import-the-old-event-from-file-to-es-use-logstash/81905/3 "2017-04-11T09:40:21Z")

</div>

thanks ,  
but I wond if I want to import the old data , and run as tail at the same time ,how can I do, set beginning and stop to set end,so restart ? but during these perid of I swtich the code ,I wonder if the data is missing or not

thank you

---

<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 9, 2017, 9:51am UTC](https://discuss.elastic.co/t/how-to-import-the-old-event-from-file-to-es-use-logstash/81905/4 "2017-05-09T09:51:33Z")

</div>

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