# Does logstash support input file rename?

**URL:** <https://discuss.elastic.co/t/does-logstash-support-input-file-rename/25604>\
**Category:** Logstash\
**Created:** [July 15, 2015, 9:55am UTC](https://discuss.elastic.co/t/does-logstash-support-input-file-rename/25604 "2015-07-15T09:55:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Zheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_zheng/32/4041_2.png) [@Jason\_Zheng](https://discuss.elastic.co/u/Jason_Zheng)\
**Post date:** [July 15, 2015, 9:55am UTC](https://discuss.elastic.co/t/does-logstash-support-input-file-rename/25604/1 "2015-07-15T09:55:50Z")

</div>

Hi All,

I have a question, when I setting input file of logstash.conf as following  
input {  
file {  
path =\> "/data/logs/count/\*"  
}  
}

STEP 1. I put mesaage #1 to output1.log  
STEP 2. I rename output1.log to output2.log (same inode number)  
STEP 3. I put message #2 to output2.log

But the reslut is message #1 has been written by twice, #2 one time,  
except result should be message #1 one time and #2 one time

Does logstash support input file rename?

---

<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:** [July 6, 2017, 5:34am UTC](https://discuss.elastic.co/t/does-logstash-support-input-file-rename/25604/2 "2017-07-06T05:34:39Z")

</div>


