Hi there
How kibana UI request this API for dashboard data.
http://localhost:5601/elasticsearch/_msearch?rest_total_hits_as_int=true&ignore_throttled=true
Hi there
How kibana UI request this API for dashboard data.
http://localhost:5601/elasticsearch/_msearch?rest_total_hits_as_int=true&ignore_throttled=true
I'm not entirely sure what you're asking...
Are you asking how to make a dashboard that has a visualization displaying the result of that query or are you asking why that query is being run in an existing dashboard?
Either way, you might also be interested in knowing that _msearch is going away from within Kibana as it's part of the legacy elasticsearch plugin.
Hi myasonik
My question is we have a dashboard list once I clicked on a specific dashboard all visualization inside that dashboard will be a load if I am not wrong for data some API is invoked. So where this API
http://localhost:5601/elasticsearch/_msearch?rest_total_hits_as_int=true&ignore_throttled=true
is playing the role and how kibana UI is call this API not able to find inside the code.
create_proxy.js
server.route({
method: 'POST',
path: '/elasticsearch/_msearch',
config: {
payload: {
parse: 'gunzip'
}
},
async handler(req, h) {
const { query, payload } = req;
console.log("======PayLoad=======");
console.log(payload.toString('utf8'));
console.log(query);
return callWithRequest(req, 'transport.request', {
path: '/_msearch',
method: 'POST',
query,
body: payload.toString('utf8')
}).finally(r => h.response(r));
}
});
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 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.