Get saved object id through Search API of Kibana

Hi!

Is there any query I can make in console of Kibana that I can get the id of a specific Dashboard, visualization, index-pattern and search?

For example with :
GET .kibana/_search
{
"_source": ["dashboard.title"],
"query": {
"term": {
"type": "dashboard"
}
}
}

I can get alls the dashboards I have in the below format:

"hits" : [
{
"_index" : ".kibana_1",
"_type" : "_doc",
"_id" : "dashboard:40284570-3dfe-11ea-ad1f-5b09c073c7d3",
"_score" : 1.2321436,
"_source" : {
"dashboard" : {
"title" : "Logs Dashboard"
}
}
},...
Is there any way to "extract" from that JSON only 40284570-3dfe-11ea-ad1f-5b09c073c7d3 when "title" is "Logs Dashboard" ?

Thank you in advance!

Hi

I'm not sure what you mean by "extracting" from that JSON? if you want to find "Logs Dashboard", you should execute the following:

GET .kibana/_search
{
  "_source": [
    "dashboard.title"
  ],
  "query": {
    "term": {
      "dashboard.title": "Logs Dashboard"
    }
  }
}

Best,
Matthias

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