# \[Kibana7.0.1\] Error: "field" is a required parameter is returned when viewing the data in discover tab which is ingested by Machine Learning-\>Data Visualizer tool

**URL:** <https://discuss.elastic.co/t/kibana7-0-1-error-field-is-a-required-parameter-is-returned-when-viewing-the-data-in-discover-tab-which-is-ingested-by-machine-learning-data-visualizer-tool/198608>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [September 9, 2019, 6:28am UTC](https://discuss.elastic.co/t/kibana7-0-1-error-field-is-a-required-parameter-is-returned-when-viewing-the-data-in-discover-tab-which-is-ingested-by-machine-learning-data-visualizer-tool/198608 "2019-09-09T06:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheriemilk](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@cheriemilk](https://discuss.elastic.co/u/cheriemilk)\
**Post date:** [September 9, 2019, 6:28am UTC](https://discuss.elastic.co/t/kibana7-0-1-error-field-is-a-required-parameter-is-returned-when-viewing-the-data-in-discover-tab-which-is-ingested-by-machine-learning-data-visualizer-tool/198608/1 "2019-09-09T06:28:52Z")

</div>

Hi Team,

I ingested data in a csv file by Kibana-\>Machine Learning-\>Data Visualizer.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/236fcb5a54039819a48b44f5dcc201f6282aa90d.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdd19e57553f0c458fd6d940ab172b3b30e88b0c.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/3/535cfd0460cb616434a519af329cddeaa6899dd8.png)

Then I go to discover tab and select index "testbe\*" to view data, but I got below error

> ```
> Discover: "field" is a required parameter
> 
> Error: "field" is a required parameter
> FieldParamType.prototype.write@http://localhost:5601/bundles/commons.bundle.js:3:1444004
> AggParams.prototype.write/<@http://localhost:5601/bundles/commons.bundle.js:3:398674
> AggParams.prototype.write@http://localhost:5601/bundles/commons.bundle.js:3:398628
> write@http://localhost:5601/bundles/commons.bundle.js:3:251146
> toDsl@http://localhost:5601/bundles/commons.bundle.js:3:252234
> toDsl/<@http://localhost:5601/bundles/commons.bundle.js:3:246742
> toDsl@http://localhost:5601/bundles/commons.bundle.js:3:246520
> _callee8$/<@http://localhost:5601/bundles/kibana.bundle.js:2:2959243
> _mergeProp@http://localhost:5601/bundles/commons.bundle.js:3:1342909
> ittr@http://localhost:5601/bundles/commons.bundle.js:3:1344198
> baseMap/<@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:24627
> createBaseFor/<@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:35129
> baseForOwn@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:21718
> createBaseEach/<@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:34676
> baseMap@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:24560
> map@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:64545
> ittr@http://localhost:5601/bundles/commons.bundle.js:3:1344058
> _flatten@http://localhost:5601/bundles/commons.bundle.js:3:1344356
> _getFlattenedSource@http://localhost:5601/bundles/commons.bundle.js:3:1361716
> before/<@http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:21:67785
> getFetchParams@http://localhost:5601/bundles/commons.bundle.js:3:1359144
> Promise.try@http://localhost:5601/bundles/commons.bundle.js:3:1065861
> getAllFetchParams/<@http://localhost:5601/bundles/commons.bundle.js:4:322912
> Promise.try@http://localhost:5601/bundles/commons.bundle.js:3:1065792
> Promise.map/<@http://localhost:5601/bundles/commons.bundle.js:3:1065158
> Promise.map@http://localhost:5601/bundles/commons.bundle.js:3:1065119
> 
> ```

**As above 3 screenshots shows, every step is correct and no error. why there's error when viewing the data in Discover tab?**

Thanks,  
Cherie

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [September 10, 2019, 11:24am UTC](https://discuss.elastic.co/t/kibana7-0-1-error-field-is-a-required-parameter-is-returned-when-viewing-the-data-in-discover-tab-which-is-ingested-by-machine-learning-data-visualizer-tool/198608/2 "2019-09-10T11:24:47Z")

</div>

One thing that is clear from your screenshots is that the `@timestamp` field from the CSV isn't being properly recognized.

There is a known limitation as to the formats that get recognized. You can see [from the docs](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/ml-find-file-structure.html)that the following date formats are supported:

```auto
dd/MMM/YYYY:HH:mm:ss Z
EEE MMM dd HH:mm zzz YYYY
EEE MMM dd HH:mm:ss YYYY
EEE MMM dd HH:mm:ss zzz YYYY
EEE MMM dd YYYY HH:mm zzz
EEE MMM dd YYYY HH:mm:ss zzz
EEE, dd MMM YYYY HH:mm Z
EEE, dd MMM YYYY HH:mm ZZ
EEE, dd MMM YYYY HH:mm:ss Z
EEE, dd MMM YYYY HH:mm:ss ZZ
ISO8601
MMM d HH:mm:ss
MMM d HH:mm:ss,SSS
MMM d YYYY HH:mm:ss
MMM dd HH:mm:ss
MMM dd HH:mm:ss,SSS
MMM dd YYYY HH:mm:ss
MMM dd, YYYY h:mm:ss a
TAI64N
UNIX
UNIX_MS
YYYY-MM-dd HH:mm:ss
YYYY-MM-dd HH:mm:ss,SSS
YYYY-MM-dd HH:mm:ss,SSS Z

```

Your timestamp format in your file looks like `September 6th, 2019 07:46:32.940`. Unfortunately, that's not one of the formats and Java doesn't [support time formats](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html) with days with `th` , `nd` , `st` , `rd` on the end.

You can see that the `@timestamp` is just being treated as a `keyword` type - which is not what you want.

So, you'll need to modify your input file and change the format of your time stamp field so that it conforms to one of the supported formats.

Version 7.3 is more flexible - allowing for custom time stamp formats (however, still doesn't support those that have days with `th` , `nd` , `st` , `rd` on the end.)

---

<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 8, 2019, 11:38am UTC](https://discuss.elastic.co/t/kibana7-0-1-error-field-is-a-required-parameter-is-returned-when-viewing-the-data-in-discover-tab-which-is-ingested-by-machine-learning-data-visualizer-tool/198608/3 "2019-10-08T11:38:55Z")

</div>

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