# Unable to create visualization from command prompt in Kibana 6.8

**URL:** <https://discuss.elastic.co/t/unable-to-create-visualization-from-command-prompt-in-kibana-6-8/249706>\
**Category:** Elasticsearch\
**Created:** [September 23, 2020, 8:37pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-from-command-prompt-in-kibana-6-8/249706 "2020-09-23T20:37:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkumar.m](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rajkumar.m](https://discuss.elastic.co/u/rajkumar.m)\
**Post date:** [September 23, 2020, 8:37pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-from-command-prompt-in-kibana-6-8/249706/1 "2020-09-23T20:37:26Z")

</div>

Hi Team,

I am unable to create visualization from command using curl in ELK 6.8.  
I have a working solution which I followed from the below link and it is working in ELK5.

> [@How to put a visualization directly in Kibana/ElasticSearch?](https://discuss.elastic.co/t/how-to-put-a-visualization-directly-in-kibana-elasticsearch/48325):
>
> Hello everyone, I tried something and I think it's worth sharing slight_smile I'm trying to write a script to automatically create a new dashboard according to a specific user (for that, it is the search that changes). More precisely, as a dashboard is made of visualizations, we need to create the visualizations in the first place. I was blocked at this step, creating the visualization directly via a CURL -XPOST request to ElasticSearch. Because in order to do the final dashboard, we need …

As per the solution shared, it is going to write into .kibana index, is that correct method?  
if not please help and provide the API that I can use to create visualization automatically from command level.

Please me know if the above solution works for ELK6 if we use the same API.

Thanks  
Raj

---

<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:** [October 21, 2020, 8:37pm UTC](https://discuss.elastic.co/t/unable-to-create-visualization-from-command-prompt-in-kibana-6-8/249706/2 "2020-10-21T20:37:31Z")

</div>

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