Kibana: View raw query generated by Discover

Created on 20 Jan 2017  路  11Comments  路  Source: elastic/kibana

Describe the feature:
Is there was a way to see the raw json query from the search bar in "Discovery" tab?
Can you please add this feature or provide another way to get this functionality. Many thanks!!

enhancement

Most helpful comment

You can always open the network tab in the browser developer tools:

image

All 11 comments

Is this the caret you're looking for?

screen shot 2017-01-20 at 7 22 56 pm

Sorry I was not very clear with the description. "Caret" has nothing to do with this. I wanted to see raw json query that I have used in the search bar. Is there a way to retrieve those?

If you click the icon I highlighted in the screenshot and then click the "request" tab you'll see the raw query. It'll include the aggregation for the histogram as well, but you should be able to ignore that if you're only interested in the query.

You mentioned the functionality existed in Kibana 4, is this what you were looking for? Or was there something else?

Thanks Bargs..
With index that contain "time-based events", I can see the query by the method, you mentioned above.
But in my case the index is not time based, hence I do not see any way to view this query. Please let me know your thoughts!!

Ah gotcha, good point. I'll leave this ticket open as an enhancement request.

You can always open the network tab in the browser developer tools:

image

@lukasolson , this must be part of Kibana 6? I do not see such option in Kibana 5.2

@anju-jsl Lukas's screenshot is showing Chrome Dev Tools. You can definitely see the elasticsearch requests in devtools in 5.x

Yeah.. got it now. Definitely would like a Kibana side solution to view the raw query. Not every user (like me) would have the knowledge or even the inclination to use the browser Dev tools.
Thanks,

Yep agreed! I just stumbled across this old issue, which is how we would likely implement this feature, so I'm going to close this as a dupe in favor of the older ticket.

I posted a link to the solution (for Kibana 6.5.x) here: https://github.com/elastic/kibana/issues/1370#issuecomment-478183012

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seti123 picture seti123  路  100Comments

panda87 picture panda87  路  206Comments

hvisage picture hvisage  路  170Comments

JulienPalard picture JulienPalard  路  95Comments

srl295 picture srl295  路  104Comments