Accessing Query Object within my code

Hi all,

I'm just wondering if there's a way for me to grab the current query that's been run on a dashboard or visualization, and use it within a plugin that i'm developing.

Thanks,
Paul

Hello @Paul_Gege,

Its certainly possible but the answer may depend upon the type of plugin you're developing. What are you building and which version of the elastic stack are you targeting?

I'm developing a plugin that allows the user to save the query on a dashboard visualization, this query can then be used to run an elasticsearch query in order to get the data and convert it to csv format. I'm using Kibana 7.7.0 as well.

This pr provides a good interface but won't be available until 7.10. Still, it might show you how you might solve the problem yourself. https://github.com/elastic/kibana/pull/72093

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.