-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to redefine the default index when not found #9028
Comments
Are you able to access the Settings page when this happens? If not, what happens when you click the settings link? We had another report of this but it seemed to be a transient issue. I tried to reproduce in master but I'm not getting any error when no indices exist. |
@Bargs I can reproduce this consistently by simulating an upgrade.
4 . If I then create a dummy index named logstash-2016.10.13 via curl and then refresh Kibana, the screens start working. Interestingly, if I then delete the logstash-2016.10.13 index and refresh Kibana, everything still works from this point onwards - I think this is what the "transient" observation from other users are coming from. It seems to fix itself after the first successful attempt to get mapping via the default index pattern. But I can certainly see why users upgrading to 5.0 are reporting blank screens when the default index pattern does not map to any existing indices in the 5.0 cluster right after the upgrade. |
Thanks @ppf2 for the detailed steps. I see what the issue is now. Now that we expect searchable and aggregatable flags on fields in 5.0, we needed a way to update 4.x index patterns that don't have this info. I opted to refresh the fields automatically if that info is missing. This blank page is an unintended side effect. If there are no indices matching the pattern the mapping request fails and the error isn't handled. It also explains the "transient" nature of the issue, the only way to end up with an index pattern without this aggregatable/searchable info is to upgrade from 4.x without migrating your data indices. So the situation is that the user basically has an invalid 5.0 index pattern, and we can't make it valid until they migrate or create new data indices. I'm thinking the best we can do is display a helpful error and possibly redirect to the index pattern page. What do you think @BigFunger @w33ble @ycombinator ? |
Given that once there is an index in place that matches the pattern, things will start working from that point onwards, catching this condition and throwing an intuitive error to the UI is likely sufficient here, thx! |
I think both showing a helpful error message and redirecting makes sense. Sounds like there's really nothing else we can do here. The user can either add/migrate data or remove the index pattern from Kibana. |
I've incidentally managed to somehow configure the wrong indexPattern (new to Kibana). We don't have a logstash-* index in elastic, only specialized other indexes. Now, the Kibana UI seems to be unusable, it doesn't even display the error (only in the JS console) and instead shows a blank page. What kind of user experience is that? Please don't tell me that instead of handling a JS error correctly and letting the user change the setting that fails to fetch data you want me to add a dummy index to the elastic backend? That sounds wrong in so many ways - what if some online-only admin manages to type in the wrong pattern? Just display that form again where the pattern can be changed. Sorry for my ranting. Otherwise it's a nice tool (yes, I have seen it work). |
No, that's not the resolution. As mentioned above, we need to handle that error and allow the user to do something with the index pattern that was configured. Adding a dummy index is, however, a workaround for now, until this bug is fixed. |
I am having the same problem where I deleted filebeat index on accident from kibana and now all the screens are blank. However, here is my error:
So, I cannot just create a dummy index because its trying to map to 'packetbeat-*' |
Until this is fixed in Kibana, the following query is a pretty safe way to reset the default index pattern for most users:
|
Thanks weltenwort, that resolved my issues with a blank management, dashboard and visualization page. I also had to do the following to resolve a blank discover page:
|
Kibana version: 5.0
Elasticsearch version: 5.0
Server OS version: Centos 6
Browser version: Chrome 54.0.2840.71 m
Browser OS version: Win 7
Original install method (e.g. download page, yum, from source, etc.): kibana-5.0.0-linux-x86_64.tar.gz
Description of the problem including expected versus actual behavior: After migrating ".kibana" index from kibana 4 to kibana 5, without migrating an index matching the
<kibana default index setting>
, kibana becomes unusable (only the left bar appears, nothing in the main view).Steps to reproduce:
Errors in browser console (if relevant):
loading default index pattern 2commons.bundle.js?v=14438:38 Error: IndexPattern's configured pattern does not match any indices at kibana.bundle.js?v=14438:25 at processQueue (commons.bundle.js?v=14438:38) at commons.bundle.js?v=14438:38 at Scope.$eval (commons.bundle.js?v=14438:39) at Scope.$digest (commons.bundle.js?v=14438:39) at Scope.$apply (commons.bundle.js?v=14438:39) at done (commons.bundle.js?v=14438:37) at completeRequest (commons.bundle.js?v=14438:37) at XMLHttpRequest.xhr.onload (commons.bundle.js?v=14438:37)
Provide logs and/or server output (if relevant):
Describe the feature:
Show a view allowing to redefine the default index setting.
Workaround
Currently, the workaround I've found is to redefine this setting in elasticsearch.
ie:
PUT .kibana/config/5.0.0
{
"buildNum": 14438,
"defaultIndex": "another-index"
}
The text was updated successfully, but these errors were encountered: