Skip to content
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 export the index pattern along with saved objects #4288

Closed
tbragin opened this issue Jun 19, 2015 · 47 comments
Closed

Ability to export the index pattern along with saved objects #4288

tbragin opened this issue Jun 19, 2015 · 47 comments

Comments

@tbragin
Copy link
Contributor

tbragin commented Jun 19, 2015

Right now, when we export a dashboard, the index pattern(s) does not get exported along with it. So the import process requires the user to create the correct index patterns(s) manually and then re-import.

@jimmyjones2
Copy link
Contributor

Plus all the field format config!

@jccq
Copy link

jccq commented Jun 19, 2015

Plus all the field format config!


Reply to this email directly or view it on GitHub
#4288 (comment).

@marcuslacerda
Copy link

+1

1 similar comment
@azhurbilo
Copy link

+1

@markwalkom
Copy link
Contributor

+1

Having to do the DB then the visualisations and then do this is a PITA

@driegel
Copy link

driegel commented Sep 15, 2015

+1

Actually, I feel that this is an important feature. If possible, please rate with higher priority than 'enhancement'. Right now it is only possible with external tools to fully transfer dashboards to a new setup.

@ppf2
Copy link
Member

ppf2 commented Dec 15, 2015

++ This is a common request from the field to be able to export/import dashboards and visualizations between different clusters (and sometimes across data centers that will have indices named differently - a requirement for the tribe node). With the export's visualization including the index pattern reference, but no actual index settings for the pattern, the user will have to first create dummy index patterns in the target environment just to be able to even import these objects into the target cluster. Obviously these dummy index patterns are of no actual use for querying in the target cluster, so the user will also have to go through a process to update each visualization from the advanced editing screen to change the visualization reference - also tedious because you can't batch change these today (#3668) with each visualization tied to an actual index pattern. Alternatively, the user will have to hack the exported .json to make changes to all the index references to map to existing indices in the target cluster - easier way, but more risky with the potential to corrupt the export while performing direct modification of the export file.

@Bargs
Copy link
Contributor

Bargs commented Dec 15, 2015

Folks who are following this issue might also be interested in the Index Pattern API #5199 and my PR for it #5213. It won't provide a GUI for exporting index patterns, but some of your use cases might overlap.

@driegel
Copy link

driegel commented Dec 22, 2015

@Bargs Well, it's possible to import and export objects in Kibana4. These files need to contain the index patterns, and I do not know if I need an Index Pattern API for that. Until this feature is available, I use 'es-export-bulk' and 'es-import-bulk' from https://github.com/skratchdot/elasticsearch-tools

@tbragin tbragin added the P1 label Feb 2, 2016
@Chadwiki
Copy link

Chadwiki commented Feb 8, 2016

+1

1 similar comment
@sporokh
Copy link

sporokh commented Feb 9, 2016

+1

@rv-gava
Copy link

rv-gava commented Mar 31, 2016

+1, really needed feature

@alugovoi
Copy link

+1

3 similar comments
@talkerbox
Copy link

+1

@sqpdln
Copy link

sqpdln commented Apr 25, 2016

+1

@maxvu
Copy link

maxvu commented May 16, 2016

+1

@raulvc
Copy link

raulvc commented May 26, 2016

+1, currently working with elasticdump workaround (which isn't pretty to mantain!)

@tsullivan
Copy link
Member

I ran into this issue today, and in my case, the index pattern included a scripted field. Even after re-creating the index pattern with a scripted field that had the same name, the visualization I imported that worked with the original scripted field didn't work out of the box with the re-created scripted field.

I took a screenshot of the visualization with the error shown in a Dashboard, where the scripted field is called "image"

screen shot 2016-09-19 at 10 43 03 am

@obudiman
Copy link

+1

@nfarrell
Copy link

+1

1 similar comment
@ekkinox
Copy link

ekkinox commented Dec 2, 2016

+1

@mohclips
Copy link

+1

@mrjameshamilton
Copy link

+1

@epixa epixa removed the P1 label Apr 25, 2017
@gmoskovicz
Copy link
Contributor

Very useful for doing upgrades.

@mmykola1234567890
Copy link

+1

@GrahamHannington
Copy link

+1

The Export Everything button in Kibana doesn't export everything. Some of my Kibana visualizations rely on scripted fields that are defined in index patterns.

@randude
Copy link

randude commented Aug 31, 2017

+1 This is really needed and to me seems very basic.
I dont understand why this hasnt been solved for the past 2+ years.

@driegel
Copy link

driegel commented Aug 31, 2017

Well, one problem is that index pattern fields may disappear on refresh, if there is no data; that is why we need full JSON files if we want to transfer dashboards to customers.

curl -XGET 'http://localhost:9200/.kiban*/index-pattern/_search?size=10000&pretty' -o idx-pattern.json
curl -XGET 'http://localhost:9200/.kiban*/search/_search?size=10000&pretty' -o searches.json
curl -XGET 'http://localhost:9200/.kiban*/visualization/_search?size=10000&pretty' -o vis.json
curl -XGET 'http://localhost:9200/.kiban*/dashboard/_search?size=10000&pretty' -o dashboard.json

Then there is some need to edit:

{

    hits: [
-- 8< -----
+ [

....

       ]
-- 8< -----
   }
}

@cgspohn
Copy link

cgspohn commented Oct 25, 2017

+1

5 similar comments
@marcelloromani
Copy link

+1

@batytskyy
Copy link

+1

@onetroll
Copy link

+1

@rhautefeuille
Copy link

+1

@jccq
Copy link

jccq commented Mar 8, 2018

+1

@jccq
Copy link

jccq commented Mar 8, 2018

@epixa almost a year ago the P1 priority was removed, is there a specific reason why this seems less important?

@epixa
Copy link
Contributor

epixa commented Mar 8, 2018

@jccq No, this is still as important as before. We deleted all of the P labels entirely as we weren't using them consistently, which is why it was removed from this issue.

@jccq
Copy link

jccq commented Mar 8, 2018

thanks @epixa how about replacing some of the "reactify" in some of the next sprint with this :) just saying. thanks for all

@epixa
Copy link
Contributor

epixa commented Mar 8, 2018

@jccq We don't do sprints, but the react work we're doing across Kibana doesn't really impact when we work on this particular issue. There are hundreds of things in flight at the moment, and a few hundred more things on deck. We are anxious to get to this issue as soon as we can, though.

@jccq
Copy link

jccq commented Mar 8, 2018

great to hear. It opens the road to storing more metadata into index patterns e.g. comments or hints for the users, things that make all nicer. Best

@jinleileiking
Copy link

+1

1 similar comment
@bferg314
Copy link

+1

@markwalkom
Copy link
Contributor

Please use the reaction picker on the initial post to +1 this :)

@gmoskovicz
Copy link
Contributor

Thank you very much everyone for adding the +1!

However, best is to add a thumbs-up reaction in the initial post if you would like to participate on this. Extra +1 will not help, and we are aware that this is a very nice feature to have. Thanks for the understanding!

@alexfrancoeur
Copy link

@chrisronline does #17426 close this issue?

@chrisronline
Copy link
Contributor

Yes, good call!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests