SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
f.setTimeZone(TimeZone.getTimeZone("America/Chicago"));
f.parse(doc['starttime.keyword'].value);
Even Added my field as date but it throws an error. Unsupported script sort type: date Error: Unsupported script sort type: date at castSortType (https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:19:342197) at normalize (https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:19:341757) at https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:19:341061 at Array.map (<anonymous>) at normalizeSortRequest (https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:19:341030) at SearchSource.mergeProp (https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:6:97214) at https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:6:97680 at Array.forEach (<anonymous>) at SearchSource.mergeProps (https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:6:97586) at SearchSource.flatten (https://x.x.x.x/31997/bundles/plugin/data/data.plugin.js:6:98079)
So please help me how to fix.
While I use time(time is scripted field) as Time Filter field name instead of logdate time I got this issue. This error I saw while I open Discover tab and visualize. Can any one fix.
@LeeDr
Data converted as date type. When I assigned that value as Time Filter field, It throws error like above. I tested in discover and visualization. It throws above error.
Above one is my scripted field and value.
Please help me here.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.