# ML Data visualizer

**URL:** <https://discuss.elastic.co/t/ml-data-visualizer/212961>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [December 24, 2019, 1:58pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961 "2019-12-24T13:58:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbee](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mbee](https://discuss.elastic.co/u/mbee)\
**Post date:** [December 24, 2019, 1:58pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/1 "2019-12-24T13:58:40Z")

</div>

Hello,

I'm trying to upload a csv file using "Machine Learning" -\> "data visualizer" (a couple of octets for the size) so i selected my file. The issue is the upload task remains loading and showing the message : "Analyzing data" and it never upload the file.  
Logs on ML node and kibana dont show any information about this problem.  
Do any body have an idea about this issue?  
Thanks,

Regards

---

<div class="post-metadata">

**Author:** ![James\_Gowdy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_gowdy/32/74175_2.png) [@James\_Gowdy](https://discuss.elastic.co/u/James_Gowdy)\
**Post date:** [December 26, 2019, 11:39am UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/2 "2019-12-26T11:39:06Z")

</div>

Hi,  
How large is the file you are trying to analyse and which browser are you using?  
Would it be possible for you to supply an example of its contents?  
If the file is large it might be worth cutting it down (e.g 100 lines) to see if can then be analysed.

Regards,  
James

---

<div class="post-metadata">

**Author:** ![mbee](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mbee](https://discuss.elastic.co/u/mbee)\
**Post date:** [December 26, 2019, 1:04pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/3 "2019-12-26T13:04:31Z")

</div>

Hello,  
Same issue regardless the browser: i tried 3 different browers (chrome, Firefox and I.E) .  
The file contains data test that i get from internet. I have only 4 lines, here is the contents:

> time,airline,responsetime  
> 2014-06-23 00:00:00Z,AAL,132.2046  
> 2014-06-23 00:00:00Z,JZA,990.4628  
> 2014-06-23 00:00:00Z,JBU,877.5927  
> 2014-06-23 00:00:00Z,KLM,1355.4812

FYI, i'm using ES and KB 6.8.2.  
In Es config (elasearch.yml) should i configure the node to a ingest Node (besides ml node) or ml node is enough?  
Thanks,  
Regards

---

<div class="post-metadata">

**Author:** ![James\_Gowdy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_gowdy/32/74175_2.png) [@James\_Gowdy](https://discuss.elastic.co/u/James_Gowdy)\
**Post date:** [December 26, 2019, 1:32pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/4 "2019-12-26T13:32:55Z")

</div>

Hi,  
That data looks like our farequote example dataset and it should not have any issues being analyzed.  
From your original description it sounded like you weren't even getting to the upload stage, and it was hanging when trying to analyze the file.  
Would it be possible to use chrome's dev tools to look at the network communication to see if the `analyze_file` endpoint is returning ok?  
You'll need to look for the endpoint call to `api/ml/file_data_visualizer/analyze_file`, it should have returned successfully with a `200` and look something like this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/6/469330fe4c83d113e183d40e524ed169fd6733ff.png)  
Also, are there any other errors in chrome's console?

James

---

<div class="post-metadata">

**Author:** ![mbee](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mbee](https://discuss.elastic.co/u/mbee)\
**Post date:** [December 26, 2019, 2:01pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/5 "2019-12-26T14:01:03Z")

</div>

Thanks James for your your quick answer.  
"analyze\_file" endpoint looks ok, please find a screenshot for the result :

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9e904ae62aaa688ecb6f6a22cd0885b830f06deb.png)

No more actions after "analyze\_file".  
Otherwise there some JSon errors (may be it could helps to find the issue ):

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/3/337d194edf744d1bfe3bf7998a97d275d5c7a26b.png)  
Regards,

---

<div class="post-metadata">

**Author:** ![James\_Gowdy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_gowdy/32/74175_2.png) [@James\_Gowdy](https://discuss.elastic.co/u/James_Gowdy)\
**Post date:** [December 27, 2019, 8:26am UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/6 "2019-12-27T08:26:38Z")

</div>

It looks like response from the `analyze_file` endpoint is not valid JSON and might perhaps contain html.  
Could you please send me the response from the endpoint, you can see it by selecting `analyse_file` in the devtools network tab.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efaf3f9f46123ec79bb833ecf20fd23c67b442fc.png)

---

<div class="post-metadata">

**Author:** ![mbee](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mbee](https://discuss.elastic.co/u/mbee)\
**Post date:** [December 30, 2019, 9:46am UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/7 "2019-12-30T09:46:10Z")

</div>

Hello James,  
Thanks for your precious assistance. you had (almost) grasped the problem!  
Actually, the issue is not the file format but a security layer that prohibit the file analyzing.  
so i have to check my proxy settings to allow this step 😉 i think it'll we be good then.  
Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![James\_Gowdy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_gowdy/32/74175_2.png) [@James\_Gowdy](https://discuss.elastic.co/u/James_Gowdy)\
**Post date:** [December 30, 2019, 6:50pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/8 "2019-12-30T18:50:06Z")

</div>

Ok great, I'm glad it's all sorted.

---

<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:** [January 27, 2020, 6:50pm UTC](https://discuss.elastic.co/t/ml-data-visualizer/212961/9 "2020-01-27T18:50:10Z")

</div>

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