# Change dynamically log file without re adding previous lines in elastic search and kibana

**URL:** <https://discuss.elastic.co/t/change-dynamically-log-file-without-re-adding-previous-lines-in-elastic-search-and-kibana/198696>\
**Category:** Logstash\
**Created:** [September 9, 2019, 1:44pm UTC](https://discuss.elastic.co/t/change-dynamically-log-file-without-re-adding-previous-lines-in-elastic-search-and-kibana/198696 "2019-09-09T13:44:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theo1991](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@theo1991](https://discuss.elastic.co/u/theo1991)\
**Post date:** [September 9, 2019, 1:44pm UTC](https://discuss.elastic.co/t/change-dynamically-log-file-without-re-adding-previous-lines-in-elastic-search-and-kibana/198696/1 "2019-09-09T13:44:29Z")

</div>

Hello,

I have a log file which is generated by a script and exported on ELK machine, ingested by logstash. Every 1 or 2 months, I regenerate the file and the news logs are added to the initial file, and if there're new information on a previous log line, the information are modified.

Is there any way to put this new file on ELK machine without erasing all the previous information or adding all the logs to the previous in kibana ?  
I try to new logs at the end of the previous log file ingested, and the result is :  
1200 previous info  
1000 new info

=\> in kibana =\> 1200 + 1200 + 1000  
I want =\> 1200 + 1000, and just modify the previous log line with the new one if there're modifications.

I don't know if my question is very clear. Thank you.

---

<div class="post-metadata">

**Author:** ![theo1991](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@theo1991](https://discuss.elastic.co/u/theo1991)\
**Post date:** [September 18, 2019, 9:49am UTC](https://discuss.elastic.co/t/change-dynamically-log-file-without-re-adding-previous-lines-in-elastic-search-and-kibana/198696/2 "2019-09-18T09:49:19Z")

</div>

Reading the docs, what I want to do is impossible.  
So, when I want to import the new logs, I delete the old ones and old indexes, import new ones and create the visualizations. I automated that with a python script.

---

<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:** [October 16, 2019, 9:49am UTC](https://discuss.elastic.co/t/change-dynamically-log-file-without-re-adding-previous-lines-in-elastic-search-and-kibana/198696/3 "2019-10-16T09:49:25Z")

</div>

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