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

(Bob) #1

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 ?

(Bob) #2

Anyone to help me ?

(Bob) #3


(David Pilato) #4

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.

(Bob) #5

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.

(David Pilato) #6

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.

(Bob) #7

Ok, thanks !

(system) #8

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