Dear elastic Team,
With recent release of kibana we noticed that there is a Dashboard views option.
we can create our own dashboard on views per dashboard? However i could never find the source index for the dashboard views.
Thanks,
Shiny
Dear elastic Team,
With recent release of kibana we noticed that there is a Dashboard views option.
we can create our own dashboard on views per dashboard? However i could never find the source index for the dashboard views.
Thanks,
Shiny
Hi Shiny,
At the moment there isn't a full implementation available to access an index with view metrics or analytics, but it's something that we're working on.
In the meanwhile, you can for example run this command in dev tools:
GET kbn:/api/saved_objects/_find?type=usage-counter&filter=usage-counter.attributes.domainId:"dashboard"%20and%20usage-counter.attributes.counterType:"viewed"&per_page=10000
This should give you the views over the last 90 days per dashboard ID.
From here you could try to build your own script to get the updated metrics from this API call and aggregate them into an index/dashboard. Here's a quick python example of just reading the json response in an easier way:
for dashboard in response.json()["saved_objects"]:
print("Dashboard {id} viewd {count} times.".format(id = dashboard["attributes"]["counterName"], count = dashboard["attributes"]["count"]))
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.