# Logstash is not pick up updated logs in newly created Log file with a same name after backup

**URL:** <https://discuss.elastic.co/t/logstash-is-not-pick-up-updated-logs-in-newly-created-log-file-with-a-same-name-after-backup/199620>\
**Category:** Logstash\
**Created:** [September 16, 2019, 9:26am UTC](https://discuss.elastic.co/t/logstash-is-not-pick-up-updated-logs-in-newly-created-log-file-with-a-same-name-after-backup/199620 "2019-09-16T09:26:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [September 16, 2019, 9:56am UTC](https://discuss.elastic.co/t/logstash-is-not-pick-up-updated-logs-in-newly-created-log-file-with-a-same-name-after-backup/199620/2 "2019-09-16T09:56:50Z")

</div>

Hi @ldeepak,

> [@ldeepak](#):
>
> please let me know in case of any extra information required for your analysis.

Could you please share your logstash input plugin configuration for more understanding?

Meanwhile, You need to set some parameter in your input plugin to read the file again from beginning. Please refer below post as they have explained in details how the input plugin works.

> [@Importing the same file](https://discuss.elastic.co/t/importing-the-same-file/120716):
>
> Hi, I just have a conceptual question about how logstash import same files. Let's say I have done with the previous data ingesting. I terminated the process of logstash after that.And I do not change the data source file or corresponding config file. They are exactly same as before. If I restart the logstash with the same config setting, would the data be replaced by the new one(even if they are same) or logstash automatically recognizes they are same so it will not import any new data?

Regards,  
Harsh Bajaj

---

_[View the full topic](https://discuss.elastic.co/t/logstash-is-not-pick-up-updated-logs-in-newly-created-log-file-with-a-same-name-after-backup/199620)._
