# Logstash re-ingests files

**URL:** <https://discuss.elastic.co/t/logstash-re-ingests-files/347358>\
**Category:** Logstash\
**Created:** [November 16, 2023, 6:21pm UTC](https://discuss.elastic.co/t/logstash-re-ingests-files/347358 "2023-11-16T18:21:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [November 16, 2023, 6:21pm UTC](https://discuss.elastic.co/t/logstash-re-ingests-files/347358/1 "2023-11-16T18:21:11Z")

</div>

Hi,

I have a Logstash to Elasticsearch project where logstash collects all the logs from the server and pushes it to elasticsearch. However, seems like the Logstash ingests my logs multiple times. Ingested logs from yesterday was ingested again today. Is there anything wrong with my config?

Sample input config:

input {

file {

path =\> "0: /Proj/log/\*. log"  
start position =\> "end"

}

Logstash is collecting a rolling file. Example:

database-app.log  
database-app.log.1  
database-app.log.2

---

<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:** [December 14, 2023, 6:21pm UTC](https://discuss.elastic.co/t/logstash-re-ingests-files/347358/2 "2023-12-14T18:21:19Z")

</div>

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