-
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
Ability to change the index pattern on a visualization #17542
Comments
I believe the visualization index pattern can already be changed manually by changing its' index guid, but it's extremely non user-friendly considering the compounding issues of (a) those index pattern guids are conveniently not available in the object manager / browser, (b) there is no simple dropdown to change it from within the visualization itself, and perhaps most importantly (c) there is no way to bulk-change multiple visualizations. |
I'll add my request here as well. Im a GOLD licence and Ill raise this with my support engineer but I wanted to pop it here aswell.
|
Why was this closed? Also the Switch Index on Visualization is also closed so what's the story here? I've referenced this in my Internal Elastic Support case as well. |
This issue isn't closed @conmurray. Switch Index on Visualization was closed because it's a duplicate of this one. Am I overlooking something else? Regarding your use case above, it almost seems like #16831 is a better fit for it. Just being able to change the index pattern on one visualization in the UI would still require you to open each visualization and change it. If we had an export API that included linked objects you would be able to open the file, do a bulk find/replace, then re-import the file. |
Ah yes I see that. Thanks... @stacey-gammon |
+1 |
2 similar comments
+1 |
+1 |
+1 |
+1 |
+1 really need this feature. Or even manually change index pattern. |
+1 |
+1 on this please! This is tedious to recover when we have repeat deploys and many dashboards stop working due to the mismatch in index patterns. Intuitively we should be able to point a visualization to an index pattern name, and say "try this instead". |
+1. It would be really great to have a more intuitive and efficient way to do this! |
+1 |
1 similar comment
+1 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
For those in search of a temporary solution to restore broken visualizations due to deletion of an index pattern, the following worked for me (Kibana 7.4.2):
Your visualizations should now work again. Further documentation on the import/export APIs can be found here. |
I don't think we need to export the index pattern in order to update a broken visualization. From the list of saved objects in advanced settings, inspect the index pattern using the "..." menu. Viewing the index pattern copy the index pattern id from the url string and paste that into the broken visualization edit window. To paste into the visualization, go to advanced settings->saved objects, then inspect the object (... menu), which should open edit search/visualization. Anytime the visualization is referencing the broken index pattern, replace it with the new index pattern id. I've done this loads of times, works great. I would consider this issue request completed. |
I tried that before resorting to the steps I outlined above. That did not work for me, got an error. |
Because of how un-intuitive Kibana visual editors out, after some time I was able to figure out how to fetch the ID. Basically, create a "new" visual with the right index, then go to Saved Objects, click on that new visual you created - and go into "edit" or advanced edit. Where you should see a set of jsons, under references you'll see an ID which shows the new index you want. Now go into the visuals that are breaking, and paste the correct ID in the advanced edit for that visual (inside saved objects, under Management) |
+1 |
1 similar comment
+1 |
An easier way to change the index pattern being used for a visualization (and across a dashboard) would be extremely valuable, especially in my use case of cloning the same dashboard (of 6+ visualizations) for several different index patterns, each representing a different microservice in our architecture. Regarding a workaround for people experiencing a dashboard not being able to recognize or locate a particular index pattern, what I found to work the easiest was to just export the whole dashboard from the saved objects list (including all child objects), and then drag and drop that file back onto the 'Import' panel of the saved objects list. The import process will actually ask you to select the correct index pattern to use for each visualization if there are any conflicts or non-matches. Note that this will overwrite the saved objects of the "broken" dashboard you just exported. That said, I wonder why this functionality of the import feature can't be extended to the feature that this issue is trying to address. It essentially allows you to re-set the index pattern for all visualizations of a dashboard by re-importing it, but only if pattern conflicts or non-matches arise. So, if you were to get rid of those conditions and just require that a new index pattern to be specified every time--and perhaps a new suffix to append to every saved object name, so as to not overwrite--that would accomplish what I believe a lot of users here are voting for. |
+1 |
From |
This enhancement is implemented in Lens since the first release. Lens GA’d in 7.10 and going forward Lens is the recommended way in Kibana to create visualizations, with more chart types, data processing and integrations planned (see this Lens meta issue). Since this feature is not a good fit for the current Visualize Editor architecture and thus would require major refactoring, we decided to not implement this outside of Lens and thus closing this issue with the implementation in Lens now. |
@KrishnaChaitanya-Gopaluni I don't see Edit: It was hidden in Manage Spaces > Features. |
I
@th0ger My Stack Management is 7.9.3. I can see the saved objects at the bottom left. Seems like 7.10 too has one https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html |
+1 |
Similar to how discover does it. Rather than requiring a new visualization to be built, add a field when editing a visualization that lets you change the index pattern on it. We need to figure out how to handle errors when a visualization was built with fields from the original index that don't exist in the new one.
Splitting this particular part out of this issue: #3668 which includes both dashboards and visualizations. Changing the index pattern on a dashboard is a much different problem and is now covered by this issue: #16917
It will be helpful for us to split these issues out and see which are the most important to the community.
also related: #16831
The text was updated successfully, but these errors were encountered: