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

Link directly to search #947

Closed
mreishus opened this issue Feb 13, 2014 · 3 comments
Closed

Link directly to search #947

mreishus opened this issue Feb 13, 2014 · 3 comments

Comments

@mreishus
Copy link

I have an automated email that reports on data found in yesterday's logstash entries. It includes links to kibana that in kibana 2, would prepopulate searches with the data I wanted to drill down to. It used the general form of "http://mykibanasite.com/#" . encode_base64($search_json).

Example: http://mykibanasite.com/#eyJzZWFyY2giOiIgdHlwZTpcImFobV9jYWtlX2xvZ1wiIEFORCBhaG10eXBlOlwiZXJyb3JcIiIsImZpZWxkcyI6W10sIm9mZnNldCI6MCwidGltZWZyYW1lIjoiY3VzdG9tIiwidGltZSI6eyJmcm9tIjoiMjAxNC0wMi0xMlQwMDowMDowMC0wNTowMCIsInRvIjoiMjAxNC0wMi0xMlQyMzo1OTo1OS0wNTowMCIsInVzZXJfaW50ZXJ2YWwiOiIxIn19

It seems that this is no longer supported in kibana 3 with the new dashboard philosophy. I would like some way to link to a dashboard with a search prepopulated.

If this isn't possible, is there another way for me to generate links to dynamic searches? I'm fine with making the dashboard before hand, I would just like to link to a search.

@rashidkpc
Copy link
Contributor

This is possible using templated dashboards, for example:

http://demo.kibana.org/#/dashboard/file/logstash.json?query=HEHE.php

If you open dashboards/logstash.json you'll see how it handles taking arguments. You can use the same style to parameterize any dashboard with custom URL parameters. Much more friendly than the old base64 encoded strings. Also check out logstash.js for an example of how you can do even more complex scripting.

@mreishus
Copy link
Author

this is great - thank you.

@mreishus
Copy link
Author

note to anyone else stumbling on this issue later - there is more information here: http://www.elasticsearch.org/blog/kibana-3-milestone-4/

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

No branches or pull requests

3 participants
@mreishus @rashidkpc and others