-
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
[EPM] Change index pattern ids or adapt UI #60388
Comments
Pinging @elastic/ingest-management (Feature:EPM) |
@neptunian I'm good with changing it for now to see if it solves our problem. But I think we also need to fully understand how name of the index pattern and id related as we reference to it in our dashboards / visualization. We must figure out what must be used there and in which fields must be used what. @mtojek Works on some import scripts and found index patterns referenced in quite a few different places. |
Note: Beats creates index patterns with title and id always the same. I had overlooked this initially. @ruflin Is there a concern that somewhere else is using the same index pattern id/name? |
One of the concerns could be that we accidentially override and other index pattern created by the user. What is more important here I think is to understand where in visualizations / searches etc. are ids used and where is the name used? Or is it by now always id? |
When creating index patterns through the Management app a unique ID is generated such as 4b6f4350-dcac-11ea-9489-d103615882ab and the index pattern itself is the "title". It would probably be best if we did something similar as we changed the ids to be
Looking at the assets that reference index patterns looks like this: We can try changing the ids of the index patterns and updating all references to the saved object type index pattern to this id (in the screenshot). |
@neptunian What are the changes needed if we follow your recommendation above? BTW: I think it is kind of odd but title is used as reference and not the id 🤔 |
@ruflin we would need to change the id of the index pattern saved object from
Are you referring to the screenshot I posted? The Beats code uses the same |
Is there an easy way provided by Kibana to update all references or would it mean we have to understand all SO to make sure we put in the right references? Is there a risk that it not only shows up in references but also other places? I'm starting to wonder if for us it is just easiest to keep also id and title in sync 🤔 |
Since you cannot update a SO id through Kibana, I don't think there would be a way to automatically update references to it. I think we would need to update it ourselves, but I think it would only be in this property
I think it is. Other users seem confused by using id vs title. The saved object API to update an index pattern through PUT will only update with a specified ID and not create if it doesn't exist. POST is used to create and you cannot create an index pattern with the same ID as one that already exists so I don't think we'd need to worry about the user accidentally overwriting ours. Since our ID matches the title, it's a way of letting the user know that index pattern title already exists and they shouldn't create one like it. Because if they are trying to use |
@neptunian What is your proposed next step? |
@ruflin I think we should leave the id and title the same, as it is now. |
SGTM. Should we close this one? |
Currently, EPM creates index patterns with unique ids. Eg. for logs-* it is
epm-ip-logs
. This causes Kibana dashboard app to throw an error if the id is notlogs-*
. See if we can change safely change the ids or if its an issue with the UI.The text was updated successfully, but these errors were encountered: