Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filter data based on some fields in Kibana Dashboard using URL

I am using the .net application and using iframe to show the kibana dashboard. So just had control over URL to show the data on Kibana dashboard.

http://localhost:5601/#/dashboard/Name-Dashboard?embed=true&_g=(time:(from:now-6M,mode:quick,to:now),title:'Name%20Dashboard')

Now i want to filter the dashboard based on some application logic. So user will be shown data based on his settings. So need to add some query or filter to URL mentioned above. I checked the documentation for elastic search and there is provision for adding the query parameters from URL

http://localhost:9200/indexname/type/_search?q=field:fieldValue

But how I can add the query string in kibana so that the values will be passed to elastic search and dashboard is shown appropriately

like image 664
Mahesh Malpani Avatar asked Nov 29 '25 16:11

Mahesh Malpani


1 Answers

http://localhost:5601/#/dashboard/Name-Dashboard?embed=true&_g=(time:(from:now-6M,mode:quick,to:now),title:'Name%20Dashboard')&_a=(query:(query_string:(analyze_wildcard:!t,query:'Field1:Value1)))

using _a query parameter we can add the filter

like image 54
Mahesh Malpani Avatar answered Dec 02 '25 06:12

Mahesh Malpani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!