# Archive Conf file after run

**URL:** <https://discuss.elastic.co/t/archive-conf-file-after-run/119018>\
**Category:** Logstash\
**Created:** [February 8, 2018, 10:22am UTC](https://discuss.elastic.co/t/archive-conf-file-after-run/119018 "2018-02-08T10:22:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sn001](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sn001](https://discuss.elastic.co/u/sn001)\
**Post date:** [February 8, 2018, 10:22am UTC](https://discuss.elastic.co/t/archive-conf-file-after-run/119018/1 "2018-02-08T10:22:50Z")

</div>

Hi there

I am working on a large application that ingests a lot of data using logstash. We have logstash looking for a CSV file and a conf file coming in a pair in a specific folder. When a new file gets created in that folder, file input plugin consumes the file and imports into ES.

we have used config.reload.automatic: true flag in yml file to load these files automatically.

What I m looking for is that when logstash finish running the file to archive my conf file or just run that conf file only once and then stop.

How can I do this ? Is there some sort of custom scripting that I can do in ruby to move the file after it is completed ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 8, 2018, 11:17am UTC](https://discuss.elastic.co/t/archive-conf-file-after-run/119018/2 "2018-02-08T11:17:26Z")

</div>

You could monitor the sincedb files to figure out when Logstash is done with a file, and when that happens you can delete the files or move them out of the way.

---

<div class="post-metadata">

**Author:** ![sn001](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sn001](https://discuss.elastic.co/u/sn001)\
**Post date:** [February 8, 2018, 1:09pm UTC](https://discuss.elastic.co/t/archive-conf-file-after-run/119018/3 "2018-02-08T13:09:26Z")

</div>

Hey Magnus,

Thanks for your response, any pointers on how I can do that ? I am running it on windows box.

Thanks

Sunny

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 8, 2018, 1:10pm UTC](https://discuss.elastic.co/t/archive-conf-file-after-run/119018/4 "2018-02-08T13:10:50Z")

</div>

> <https://stackoverflow.com/questions/33143437/logstash-parsing-progress-bar>

---

<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 8, 2018, 1:11pm UTC](https://discuss.elastic.co/t/archive-conf-file-after-run/119018/5 "2018-03-08T13:11:04Z")

</div>

Closed on March 8, 2018, 1:11pm UTC

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