Can you advise how we can retrieve the backend KQL query once we filter out data on Kibana Dashboard?
Our requirement is to filter out data using charts and other visualisations are retrieve the query generated in backend. This query should contain the filters added on dashboard. Once we run the query on Dev tools it should give us all results.
I don't believe such an API exists. I'm not sure how you will capture temporary filters since they only exist in the user's browser at that point in time in Kibana - how will these be visible to your UI?
I'd suggest opening a feature request on the Kibana GitHub detailing what you need.