Hi,
I have used logstash and loaded data through elasticsearch. I created indexpattern to the loaded index and trying to create visualization.
I'm unable to create Date Histogram, since the date fields (closed_at, work_start) are showing up as string in Kibana.
These fields were configured in Logstash as Date type and show up as Date type in Elasticsearch. I had modified the scripted field to return this value as date. But it throws error in visualization. Please help.
Below is the error message:
[esaggs] > Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"aggregation_execution_exception","reason":"Unsupported script value [2015-07-06 11:56:23], expected a number, date, or boolean"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"bas-change","node":"Jqh-N9vqTGKKTWbjIAYXdw","reason":{"type":"aggregation_execution_exception","reason":"Unsupported script value [2015-07-06 11:56:23], expected a number, date, or boolean"}}]},"status":500}