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!!
Is this the caret you're looking for?

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:

@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
Most helpful comment
You can always open the network tab in the browser developer tools: