Hi, I'm running ELK 6.2 stack; I'm pretty new to ELK and am trying to setup a very straight-forward scripted field to subtract 2 values.
Field Name: delta
Field lang: painless
Script:
if (!doc['bidpx'].empty && !doc['askpx'].empty) { return doc['askpx'].value - doc['bidpx'].value; } return 0;
The script is working correctly and I am able to see the correct output in the Discover tab; I'm also able to build visualizations on it for the most past. But when some of the visualization update (either in Visualization tab or in a Dashboard) kibana crashes with a weird message.
Fatal Error
TypeError: d.split(...)[1] is undefined (http://stonestudy45.skae.tower-research.com:8884/bundles/vendors.bundle.js?v=16588:12)
Version: 6.2.2
Build: 16588
Error: TypeError: d.split(...)[1] is undefined (http://localhost:8884/bundles/vendors.bundle.js?v=16588:12)
window.onerror@http://localhost:8884/bundles/commons.bundle.js?v=16588:1:496447
I have checked and I don't see any error messages on stdout/stderr for Elasticsearch or Kibana. Any help would be greatly appreciated since if I'm unable to resolve this then will need to adjust workflow and add new fields to the document.