# Angular + Elastic : Upload Json file and create an index from it

**URL:** <https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075>\
**Category:** Elasticsearch\
**Created:** [October 11, 2018, 2:39pm UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075 "2018-10-11T14:39:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeWalker](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CodeWalker](https://discuss.elastic.co/u/CodeWalker)\
**Post date:** [October 11, 2018, 2:39pm UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/1 "2018-10-11T14:39:37Z")

</div>

Hi,  
I am coding in Angular.  
I would like to create a form where the user can upload a json file which will be passed to Elastic to be indexed and dashboarded in KIbana with predetermined widgets. The result dashboard will appear directly on the bottom of the form when the user validate the upload and if his json match a specific pattern.  
Is it possible ?

---

<div class="post-metadata">

**Author:** ![CodeWalker](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CodeWalker](https://discuss.elastic.co/u/CodeWalker)\
**Post date:** [October 12, 2018, 7:26am UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/2 "2018-10-12T07:26:31Z")

</div>

Anyone to help me ?

---

<div class="post-metadata">

**Author:** ![CodeWalker](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CodeWalker](https://discuss.elastic.co/u/CodeWalker)\
**Post date:** [October 15, 2018, 7:41am UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/3 "2018-10-15T07:41:06Z")

</div>

Pops

---

<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:** [October 15, 2018, 8:45am UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/4 "2018-10-15T08:45:51Z")

</div>

That's more an AngularJS question than an elasticsearch one IMO.

What I can say for now is to look at the official Javascript client.

---

<div class="post-metadata">

**Author:** ![CodeWalker](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CodeWalker](https://discuss.elastic.co/u/CodeWalker)\
**Post date:** [October 15, 2018, 11:47am UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/5 "2018-10-15T11:47:16Z")

</div>

Sure it is.  
I guess that it is possible to do a curl request in javascript to send the data to the elastic server. In this case, the indexation will occur.  
The second part is more tricky I presume because I don't know how to link these new indexed data to a kibana dashboard.  
The question is 100% elastic because I can't figure if it is possible to tell elastic : "bind these indexed data to this particular dashboard".  
Perhaps it is just impossible, I'm just wondering.

---

<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:** [October 15, 2018, 2:16pm UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/6 "2018-10-15T14:16:59Z")

</div>

You can have a dashboard connected to a given index pattern which can be an index or an alias.  
Not sure what else you are talking about. Anyway, if you have other questions about kibana, you should ask in #kibana.

---

<div class="post-metadata">

**Author:** ![CodeWalker](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CodeWalker](https://discuss.elastic.co/u/CodeWalker)\
**Post date:** [October 15, 2018, 2:54pm UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/7 "2018-10-15T14:54:24Z")

</div>

Ok, thanks !

---

<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:** [November 12, 2018, 2:54pm UTC](https://discuss.elastic.co/t/angular-elastic-upload-json-file-and-create-an-index-from-it/152075/8 "2018-11-12T14:54:25Z")

</div>

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