# Repeated record every time new events happens

**URL:** <https://discuss.elastic.co/t/repeated-record-every-time-new-events-happens/194714>\
**Category:** Logstash\
**Created:** [August 10, 2019, 2:04pm UTC](https://discuss.elastic.co/t/repeated-record-every-time-new-events-happens/194714 "2019-08-10T14:04:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [August 10, 2019, 2:04pm UTC](https://discuss.elastic.co/t/repeated-record-every-time-new-events-happens/194714/1 "2019-08-10T14:04:39Z")

</div>

I have a very basic pipeline.config:  
input {  
file {  
path =\> ["/var/log/mylog.log"]  
start\_position =\> "beginning"  
}  
}

filter {

}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "test"  
}  
}  
lets assume in my /var/log/mylog.log there are below records  
line1  
line2  
when i run logstash -f /etc/logstash/pipeline.config everything is okey but if i added line3 to /var/log/mylog.log all lines repeated to my index and i got repeated data..what is wrong?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 10, 2019, 3:24pm UTC](https://discuss.elastic.co/t/repeated-record-every-time-new-events-happens/194714/2 "2019-08-10T15:24:10Z")

</div>

Did you restart logstash? It may be the same problem described in [this](https://discuss.elastic.co/t/when-logstash-shutdown-renam-file-and-data-can-be-lost-or-duplicated/192669/3) thread, in which case there is no fix at this time.

---

<div class="post-metadata">

**Author:** ![Mohammad.ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammad.ali/32/45665_2.png) [@Mohammad.ali](https://discuss.elastic.co/u/Mohammad.ali)\
**Post date:** [August 10, 2019, 4:17pm UTC](https://discuss.elastic.co/t/repeated-record-every-time-new-events-happens/194714/3 "2019-08-10T16:17:44Z")

</div>

Well i stoped the logstash service in order to make sure no othe process is running.. And run this pipeline by logstash binary.

---

<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 7, 2019, 4:17pm UTC](https://discuss.elastic.co/t/repeated-record-every-time-new-events-happens/194714/4 "2019-09-07T16:17:44Z")

</div>

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