I have a basic setup of ELK. I can see data flowing through logstash and into elastisearch. All of the indices are Green and healthy. However when I fire up Kibana 4.5.4 for the first time, and select the logstash-* pattern, select @timestamp as the timefield name kibana becomes unresponsive (for the most part)
I open up chrome developer tools and see this error regardless of what I try to do in Kibana:
commons.bundle.js?v=10000:40136 TypeError: Cannot read property 'fields' of undefined
at ittr (kibana.bundle.js?v=10000:79301)
at commons.bundle.js?v=10000:8563
at baseForOwn (commons.bundle.js?v=10000:7536)
at Function.forOwn (commons.bundle.js?v=10000:8868)
at applyESResp (kibana.bundle.js?v=10000:79299)
at processQueue (commons.bundle.js?v=10000:42404)
at commons.bundle.js?v=10000:42420
at Scope.$eval (commons.bundle.js?v=10000:43648)
at Scope.$digest (commons.bundle.js?v=10000:43459)
at Scope.$apply (commons.bundle.js?v=10000:43756)(anonymous function) @ commons.bundle.js?v=10000:40136(anonymous function) @ commons.bundle.js?v=10000:36905processQueue @ commons.bundle.js?v=10000:42412(anonymous function) @ commons.bundle.js?v=10000:42420$eval @ commons.bundle.js?v=10000:43648$digest @ commons.bundle.js?v=10000:43459$apply @ commons.bundle.js?v=10000:43756done @ commons.bundle.js?v=10000:38205completeRequest @ commons.bundle.js?v=10000:38403requestLoaded @ commons.bundle.js?v=10000:38344
I have tried everything I can think of to resolve this however I cannot figure out where I am going wrong. Any pointers would be helpful.
I did just reinstall Kibana as Kibana version 4.6.1 and drop the .kibana index. I still get the same result. I do see this error after clicking the "Create" button.
No plugins installed, right now I am just trying to get the most basic ELK stack running to demo for a client.
I went back and dropped all of my indicies in ES. Then recreated the data. This time when I attempted to fire up Kibana 4.6.1 for the first time and create the default index I got this error:
commons.bundle.js?v=10146:40184 Error: Request to Elasticsearch failed: "[document_source_missing_exception] [config][4.6.1]: document source missing, with: {"shard":"0","index":".kibana"}"
at kibana.bundle.js?v=10146:80547
at processQueue (commons.bundle.js?v=10146:42452)
at commons.bundle.js?v=10146:42468
at Scope.$eval (commons.bundle.js?v=10146:43696)
at Scope.$digest (commons.bundle.js?v=10146:43507)
at Scope.$apply (commons.bundle.js?v=10146:43804)
at done (commons.bundle.js?v=10146:38253)
at completeRequest (commons.bundle.js?v=10146:38451)
at XMLHttpRequest.requestLoaded (commons.bundle.js?v=10146:38392)(anonymous function) @ commons.bundle.js?v=10146:40184(anonymous function) @ commons.bundle.js?v=10146:36953processQueue @ commons.bundle.js?v=10146:42460(anonymous function) @ commons.bundle.js?v=10146:42468$eval @ commons.bundle.js?v=10146:43696$digest @ commons.bundle.js?v=10146:43507$apply @ commons.bundle.js?v=10146:43804done @ commons.bundle.js?v=10146:38253completeRequest @ commons.bundle.js?v=10146:38451requestLoaded @ commons.bundle.js?v=10146:38392
What platform are you running Kibana and ES on? Any chance you could share a sample document you see the error with? Any detailed steps to reproduce would be helpful.
I installed elasticsearch and kibana from downloadable RPM's from their respective pages (which yields version 4.6.1 of Kibana and 2.4.0 of Elasticsearch) - recreated the data and everything seems to be working properly.
Previously we were installing everything from yum repo's, which leads me to believe that the elastic RHEL repo's are providing mismatched versions of the toolset.
What URL are you using for the repo? In Kibana 4.6 we switched to minor versions for the url naming scheme, so you'll need to update the repo to https://packages.elastic.co/kibana/4.6/centos
Interesting enough, this morning I rebuilt the entire cluster using Kiaban 4.6.x and ElasticSearch 2.4.x - I had the same problem for some reason.
ElasticSearch came from this repository:
[elasticsearch-2.x]
name=Elasticsearch repository for 2.x packages
baseurl=https://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=0
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
Elasticsearch 2.4.0 installed from the repo didn't work with Kibana 4.6.1.
Elasticsearch 2.4.0 installed directly from rpm worked with Kibana 4.6.1.
Was the Kibana install exactly the same between tests? Did you do anything differently with the repo install? Perhaps there was some config left over from a previous install? I'm not sure what the yum equivalent to apt-get purge is but I would try to ensure you're working with a totally fresh install.
Thanks Matt! I appreciate your help! For now I have written our chef scripts to just pull the rpm package from the download link, not ideal in the long run, but it gets the job done.
The issue is definitely not with the install package. It is something in our chef scripts that is being configured. Whenever I uninstall elasticsearch and reinstall elasticsearch the problem goes away, I think so does the configurations that are coming from chef.
Yep. I just rewrote the recipe to do nothing but install elasticsearch and start it, and everything works fine, that is from yum. Sorry for the fire drill.
Now... to figure out what is breaking from a configuration standpoint in elasticsearch.
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.