# How can elasticsearch automatically index documents inside the tmp / es directory of fscrawler?

**URL:** <https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 18, 2019, 9:25am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274 "2019-11-18T09:25:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vo\_Van\_Huy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vo_van_huy/32/55461_2.png) [@Vo\_Van\_Huy](https://discuss.elastic.co/u/Vo_Van_Huy)\
**Post date:** [November 18, 2019, 9:26am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/1 "2019-11-18T09:26:00Z")

</div>

I frequently change data, so my json files inside fscrawler's tmp / es directory are constantly changing. may be deleting, may be changing the data inside a json file, or changing the json file name.  
I am currently having problems as the index's document doesn't update itself when I change the data inside the tmp / es directory of fscrawler.  
Hope everybody help please.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 19, 2019, 5:41am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/2 "2019-11-19T05:41:53Z")

</div>

Which OS? Windows ?

---

<div class="post-metadata">

**Author:** ![Vo\_Van\_Huy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vo_van_huy/32/55461_2.png) [@Vo\_Van\_Huy](https://discuss.elastic.co/u/Vo_Van_Huy)\
**Post date:** [November 19, 2019, 5:52am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/3 "2019-11-19T05:52:42Z")

</div>

yes, I use OS

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 21, 2019, 4:23am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/4 "2019-11-21T04:23:49Z")

</div>

You meant MacOS I guess.  
I do test file changes on this platform and it's working well.  
To reproduce the problem, could you describe step by step what you are doing?  
Also run FSCrawler in debug mode so we can see why an added/modified file is not indexed.  
Probably an issue with the date of the file. You might have to `touch` the file.

---

<div class="post-metadata">

**Author:** ![Vo\_Van\_Huy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vo_van_huy/32/55461_2.png) [@Vo\_Van\_Huy](https://discuss.elastic.co/u/Vo_Van_Huy)\
**Post date:** [November 21, 2019, 4:36am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/5 "2019-11-21T04:36:11Z")

</div>

Yes, I'm sorry, my meant is MacOS  
Thanks for your answer,  
Currently, I am able to indexed files that I have added or modified.  
The problem I am having is that if I delete a file in the index folder, the document that I just deleted, cannot be deleted in elasticsearch.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 21, 2019, 8:35am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/6 "2019-11-21T08:35:45Z")

</div>

Let's follow up on

> <https://github.com/dadoonet/fscrawler/issues/851>
>
> I frequently change data, so my json files inside fscrawler's tmp / es directory are constantly changing. may be deleting, may...

---

<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, 2019, 8:40am UTC](https://discuss.elastic.co/t/how-can-elasticsearch-automatically-index-documents-inside-the-tmp-es-directory-of-fscrawler/208274/7 "2019-12-19T08:40:08Z")

</div>

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