Add new Kibana dashboard using comandline

Hi all!
I have one problem. I am just trying to insert new Kibana dashboard (or copy of existing dashboard) using comandline. I send PUT request to elasticsearch .kibana index. That request stores JSON file in body with similar structure like those dashboards which i have been created in Kibana UI. BUT, if we will check given JSON file in JSON validator, it tells, thath JSON isn`t correct, because, for example, panelJSON varibale have incorrect structure: "panelsJSON": "[{"xxx":"yyy"}]". It turns out that JSON file is inside JSON. So validator bawl about " ". So i cannot send similar JSON file to .kibana index. Can someone help with this problem?


Read this and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

I moved your question to #kibana

Have you tried escaping the inner quotation marks with a backslash (\) character?

Thanks a lot for idea! It works!

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