# Move files from input to stage then output directory with logstash

**URL:** <https://discuss.elastic.co/t/move-files-from-input-to-stage-then-output-directory-with-logstash/118039>\
**Category:** Logstash\
**Created:** [February 1, 2018, 2:40pm UTC](https://discuss.elastic.co/t/move-files-from-input-to-stage-then-output-directory-with-logstash/118039 "2018-02-01T14:40:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_Sharan\_Mittal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_sharan_mittal/32/47018_2.png) [@Ram\_Sharan\_Mittal](https://discuss.elastic.co/u/Ram_Sharan_Mittal)\
**Post date:** [February 1, 2018, 2:40pm UTC](https://discuss.elastic.co/t/move-files-from-input-to-stage-then-output-directory-with-logstash/118039/1 "2018-02-01T14:40:47Z")

</div>

There is metrics file which get generated every 1 min in a input directory and like to move to stage and then output directory to show case that file have been processed. Can do this usecase with logstash with help of existing/custom plugin ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 2, 2018, 1:08am UTC](https://discuss.elastic.co/t/move-files-from-input-to-stage-then-output-directory-with-logstash/118039/2 "2018-02-02T01:08:35Z")

</div>

You can process the files, but Logstash has no concept of moving like that, so the original would still remain.

---

<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:** [March 2, 2018, 1:08am UTC](https://discuss.elastic.co/t/move-files-from-input-to-stage-then-output-directory-with-logstash/118039/3 "2018-03-02T01:08:49Z")

</div>

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