# Rotating File Input Logstash

**URL:** https://discuss.elastic.co/t/rotating-file-input-logstash/347662
**Category:** Logstash
**Created:** [November 21, 2023, 6:34pm UTC](https://discuss.elastic.co/t/rotating-file-input-logstash/347662 "2023-11-21T18:34:45Z")
**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 21, 2023, 6:34pm UTC](https://discuss.elastic.co/t/rotating-file-input-logstash/347662/1 "2023-11-21T18:34:45Z")

</div>

Hi,

Good day, I have this scenario where I have a rotating files picked up by Logstash. The .log file is the active file. If the file reaches a certain size it will rollover and create a new file with the format .log.\<+1\>. However, it seems like after the file rolls over, Logstash rereads again from the beginning of the file (although the file is rolled over and inactive)

Sample Log Rotation:  
test.log  
test.log.1  
test.log.2

Note that we have set the ff:

start\_position = “end”  
path = “O:/Documents/test/test.log”

Thanks!

---

<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 19, 2023, 6:35pm UTC](https://discuss.elastic.co/t/rotating-file-input-logstash/347662/2 "2023-12-19T18:35:25Z")

</div>

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