Hello,
I'm a beginner programmer and I don't quite understand whyb I'm getting a certain error. I wanted to be able to input html/javascript on my dashboard for a custom application and so the easiest way I found was by following these instructions and editing the markdown widget source code: Embedding Javascript and HTML into Kibana 5.x – David Vassallo's Blog
Everything works fine except sometimes when I try and add the markdown widget to a dashboard I get this error:
Can anyone point me on why I'm getting this error? Why is my 'col' undefined? I really need to use custom JS/HTML for my dash so I hope someone can help me out with this!
After some more time, I'm finding that just changing that tiny bit of code is making the whole functionality of Kibana mess up. Even when making a dashbaord with visuals that have nothing to do with the plugin I created, I get the same error. Specifically when I press add and select a visualization to put onto the dashboard. Or when I create a dashboard and recently had created a visualization (again, one that has nothing to do with the plugin) and try to change anything about the dashboard (add or save the dashbaord) I get this error.
My version of Kibana is 5.1.2. Can someone help me understand?
Yeah, I'm trying to work my way up to that, but because of a time constraint I need a quicker fix. Although the prospect of writing my own plugins excites me!!
Do you have any idea what this undefined "col" that the error is referring to?
Sorry, I'm not sure. I'd suggest grabbing the source from https://github.com/elastic/kibana, try making your edits in the source, and then run Kibana in dev mode with npm start. You'll get source maps that will make debugging the issue easier using your browser's dev tools.
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.