Saved Objects: Cannot read property 'byName' of undefined


(Rajeev) #1

Hi,

I am getting above error "Saved Objects: Cannot read property 'byName' of undefined" . when I import json file containing dashboard and visualization it shows above error.But when I import it again , I am able to see dashboard without any error. Can you please suggest some points . My ELK configuration is Elastic search 2.2.1 and logstash 2.2.1 and kibana 4.4.2.

Errro in Detail:

Saved Objects: Cannot read property 'byName' of undefined
OK
TypeError: Cannot read property 'byName' of undefined
at FieldAggParamFactory.FieldAggParam.deserialize (http://:5601/bundles/kibana.bundle.js?v=9732:84771:53)
at http://:5601/bundles/kibana.bundle.js?v=9732:90104:29
at Array.forEach (native)
at AggConfigFactory.AggConfig.fillDefaults (http://:5601/bundles/kibana.bundle.js?v=9732:90082:28)
at new AggConfig (http://:5601/bundles/kibana.bundle.js?v=9732:89996:13)
at http://:5601/bundles/kibana.bundle.js?v=9732:90695:19
at Array.map (native)
at new AggConfigs (http://:5601/bundles/kibana.bundle.js?v=9732:90693:35)
at VisFactory.Vis.setState (http://:5601/bundles/kibana.bundle.js?v=9732:84236:20)
at SavedVis._updateVis (http://:5601/bundles/kibana.bundle.js?v=9732:92582:17)

Also let me know from from where I can get correct endpoint for Kibana 4 as I am not able find config page and also how can I find my cluster id so that I can tell you for more help. Please help @beiske @alexbrasetvik

Thanks,
Rajeev


(Konrad Beiske) #2

Hi Rajev
Cluster id's and Kibana 4 endpoints are only relevant when running Elasticsearch and Kibana on Elastic Cloud. It appears you don't, but if you do here is the required steps:

To find your cluster id:

  • Sign in to https://cloud.elastic.co/
  • Click on clusters in the top menu
  • Select your cluster in the left menu if it is not already expanded
  • Click on overview for your cluster in the left menu
  • At the top of the overview page there is an Endpoint section. Look for the a sentence like: Please provide the cluster ID "......" when contacting support about your cluster.

To find you Kibana 4 endpoint

Kibana 4 requires running a server and is not enabled by default.

  • Perform the same first three steps as above
  • Click on configuration in the left hand menu
  • Scroll down to the "Kibana 4" - section
  • Select the version you want in the drop down menu and click update
  • Wait a few seconds for your Kibana instance to start and the url for your Kibana instance will appear here.

Best regards
Konrad Beiske
Software Engineer
Elastic


(Rajeev) #3

No I am not running Elasticsearch and Kibana on Elastic Cloud..
So can you help me in resolving above error "Saved Objects: Cannot read property 'byName' of undefined" of kibana as earlier I was able to import json and also when I try to import json for second time it didn'6t show any error. @beiske


(Rajeev) #4

Kindly suggest some points asap.


(system) #5