I found a lot of topics on this forum on this subject but I was not able to figure out how to solve the problem. I recreated index patterns as they got deleted.
I do not see any visualizations or Dashboards which were created earlier.
Some answers suggested to update the newly created index pattern id to the visualizations, but I could not find the visualizations under saved objects. So I used
GET _search
{
"query": {
"match_all": {}
}
}
I am able to see visualizations here but the index is exactly as I created. It is the name of the index but not the id.
Some other topics say update with old id, How do I get the old id of the index pattern.
It's hard to answer this question because you didn't describe:
What is the problem that you are seeing?
What did you do before asking this question?
In particular, you seem to be saying that you are missing visualizations, but not not missing index patterns. Or do you have visualizations and index patterns?
If you have visualization objects, then you can look at the JSON representation of the visualization to determine which index pattern IDs they are using.
Problem is I do not see any visualizations or Dashboards.
Index Patterns are also deleted which caused the above issue.
Originally Index patterns are created with pre-defined id. But when I created new ones, they got an auto generated id which broke the visualizations and dashboard references. I recreated the index patterns with the right id but it still could not recover the references.
Most of the solutions I researched, mentioned updating the json with the new reference, I do not have backup's of the Visualizations or Dashboards to update. What is the endpoint to get the list of visualizations which lost references?
green open **** qQ-0yAdqSLezy91Gp3zbdQ 1 1 1028733 0 182.9mb 91.5mb
green open **** 12TciaMLT1Cex_aD9kS4ig 1 1 2478076 0 837.2mb 418.6mb
green open **** JM-7ZHHcQk-SKhkI0hbEaQ 1 1 1639 0 597kb 298.5kb
I get bunch of Indexes with Health as Green and status as open
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.