# Automatic Parse Compied to Folder

**URL:** https://discuss.elastic.co/t/automatic-parse-compied-to-folder/45864
**Category:** Logstash
**Created:** [March 31, 2016, 2:32am UTC](https://discuss.elastic.co/t/automatic-parse-compied-to-folder/45864 "2016-03-31T02:32:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)
#### Post date: [March 31, 2016, 2:32am UTC](https://discuss.elastic.co/t/automatic-parse-compied-to-folder/45864/1 "2016-03-31T02:32:55Z")

</div>

How do I make logstash such that it will automatically parse files that are copied into a folder.

I have a script that moves files into the a folder once every 5 hours.

Right now I have to open the log file do  
a select all and delete -\> Save -\> undo -\> Save  
before the file can be parsed.

---

<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: [March 31, 2016, 5:41am UTC](https://discuss.elastic.co/t/automatic-parse-compied-to-folder/45864/2 "2016-03-31T05:41:08Z")

</div>

> How do I make logstash such that it will automatically parse files that are copied into a folder.

That's how Logstash normally works.

> Right now I have to open the log file do  
> a select all and delete -\> Save -\> undo -\> Save  
> before the file can be parsed.

What's the modification time of the files as they're copied into the directory? The file input's `ignore_older` option might come into play. Other than that it might be inode reuse. Running Logstash with `--verbose` will give you extra clues.

---

<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:04am UTC](https://discuss.elastic.co/t/automatic-parse-compied-to-folder/45864/3 "2017-07-06T05:04:37Z")

</div>


