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

Allow import of tables from Kibana #55

Open
Alex-At-Home opened this issue Apr 24, 2019 · 0 comments
Open

Allow import of tables from Kibana #55

Alex-At-Home opened this issue Apr 24, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Alex-At-Home
Copy link
Owner

This is do-able but a bit tricky

First given the ID eg at the start of the URL path you can get the visualization object, eg

GET .kibana/visualization:<id>

you can get the index pattern from there via GET .kibana/index-pattern:<id2> having pulled <id2> out of the search object

The first object (you could also pull all that stuff out of the URL but that would require keeping a Kib URL <-> JSON parser up-to-date) gives a stable-looking list of aggregations

The second object gives the index pattern and in theory the query (together with the URL) .. a better solution would be to also get the user to paste the contents of "Inspect > Requests > Request" in, which has the query in it

So in summary:

  • index pattern: URL -> vis ID -> JSON -> grab index ID -> JSON -> string
  • query: inspect UI
  • aggs: URL -> vis ID -> JSON -> grab list of aggs/col names ANDinspect UI -> grab list of aggregations, correlate via agg ids with col names
@Alex-At-Home Alex-At-Home added the enhancement New feature or request label Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant