Access the filters in search bar from within plugin

I am using Elastic stack 7.6.3.

I want to access the entered queries in the search bar of Kibana from inside my visualization plugin:

I have managed to get the time filter and the filter queries, but the only thing I am unable to access is the queries entered into the search bar. I have tried to access it through the vis object in my plugin, but cannot find it, only saved queries etc.

I would highly appreciate if anyone can help me with this.

Hey @Elaak!

The state of a Dashboard comes from a few different sources. The current search query is saved in the URL. As an example, you can see lots of usage of the search state in discover.js

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