# Load JSONs from filesystem

**URL:** <https://discuss.elastic.co/t/load-jsons-from-filesystem/10190>\
**Category:** Elasticsearch\
**Created:** [December 28, 2012, 10:38am UTC](https://discuss.elastic.co/t/load-jsons-from-filesystem/10190 "2012-12-28T10:38:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin\_Pletzer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valentin_pletzer/32/105548_2.png) [@Valentin\_Pletzer](https://discuss.elastic.co/u/Valentin_Pletzer)\
**Post date:** [December 28, 2012, 10:38am UTC](https://discuss.elastic.co/t/load-jsons-from-filesystem/10190/1 "2012-12-28T10:38:15Z")

</div>

Hi,

I know there is a filesystem river plugin. But can this index JSONs as well

- sounds like it is for pdf, doc etc? I have a directory with changing  
content (json-files get overwritten, deleted, added ...) and I would love  
to index that in way the filesystem plugin describes it.

Greetings  
Valentin

--

---

<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:** [December 28, 2012, 10:44am UTC](https://discuss.elastic.co/t/load-jsons-from-filesystem/10190/2 "2012-12-28T10:44:57Z")

</div>

No. The FSRiver plugin only index documents through the mapping attachment  
plugin. But, it really make sense to add this new feature.  
Could you open an issue in the FSRiver plugin to track it?

Thanks for the idea.

Le 28 décembre 2012 à 11:38, Valentin [pletzer@gmail.com](mailto:pletzer@gmail.com) a écrit :

> Hi,
> 
> I know there is a filesystem river plugin. But can this index JSONs as well -  
> sounds like it is for pdf, doc etc? I have a directory with changing content  
> (json-files get overwritten, deleted, added ...) and I would love to index  
> that in way the filesystem plugin describes it.
> 
> Greetings  
> Valentin
> 
> --

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<div class="post-metadata">

**Author:** ![Valentin\_Pletzer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valentin_pletzer/32/105548_2.png) [@Valentin\_Pletzer](https://discuss.elastic.co/u/Valentin_Pletzer)\
**Post date:** [December 29, 2012, 1:27pm UTC](https://discuss.elastic.co/t/load-jsons-from-filesystem/10190/3 "2012-12-29T13:27:26Z")

</div>

Done and thanks for the quick answer.

> <https://github.com/dadoonet/fscrawler/issues/5>
>
> I would be really cool if the fs river could monitor a directory with JSON-files…. If a new file is created the JSOn should be indexed. If a file gets changed the file should be reindexed/updated. And if a file gets deleted, the document should be removed from the index as well.

On Friday, December 28, 2012 11:44:57 AM UTC+1, David Pilato wrote:

> No. The FSRiver plugin only index documents through the mapping  
> attachment plugin. But, it really make sense to add this new feature.  
> Could you open an issue in the FSRiver plugin to track it?
> 
> Thanks for the idea.
> 
> Le 28 décembre 2012 à 11:38, Valentin \<[ple...@gmail.com](mailto:ple...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hi,
> 
> I know there is a filesystem river plugin. But can this index JSONs as  
> well - sounds like it is for pdf, doc etc? I have a directory with changing  
> content (json-files get overwritten, deleted, added ...) and I would love  
> to index that in way the filesystem plugin describes it.
> 
> Greetings  
> Valentin
> 
> --
> 
> --  
> David Pilato  
> [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 30, 2012, 1:24pm UTC](https://discuss.elastic.co/t/load-jsons-from-filesystem/10190/4 "2012-12-30T13:24:27Z")

</div>

Hi there,

perhaps the streaming JSON river might help you (you would have to change  
it for sure, but it might be a start if you need a custom solution)...

> **[GitHub - spinscale/elasticsearch-river-streaming-json: A sample elasticsearch...](https://github.com/spinscale/elasticsearch-river-streaming-json)**
>
> A sample elasticsearch river able to stream json data in - GitHub - spinscale/elasticsearch-river-streaming-json: A sample elasticsearch river able to stream json data in

--Alex

On Fri, Dec 28, 2012 at 11:38 AM, Valentin [pletzer@gmail.com](mailto:pletzer@gmail.com) wrote:

> Hi,
> 
> I know there is a filesystem river plugin. But can this index JSONs as  
> well - sounds like it is for pdf, doc etc? I have a directory with changing  
> content (json-files get overwritten, deleted, added ...) and I would love  
> to index that in way the filesystem plugin describes it.
> 
> Greetings  
> Valentin
> 
> --

--

---

<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, 2:58am UTC](https://discuss.elastic.co/t/load-jsons-from-filesystem/10190/5 "2017-07-06T02:58:10Z")

</div>

Closed on July 6, 2017, 2:58am UTC


