Good morning
I would like to check which Visualizations on kibana are using a certain index pattern. I am trying to query it on .kibana indice but I'am doing something wrong. I am running the query on DevTools of Kibana:
GET /.kibana/_search
{
"query" : {
"match" : { "kibanaSavedObjectMeta.searchSourceJSON.index": "imap-cxp-*" }
}
}
THe query above returns o Objects, but it was supposed to return something because matching just by _type: "visualization" One of the records returned as we can see below:
{
"_index": ".kibana",
"_type": "visualization",
"_id": "0c62a2a0-34c2-11e7-871a-37e0d55ebfb9",
"_score": 1,
"_source": {
"title": "GazlinuxLogs - Falha envio Hostopia",
"visState": """{"title":"GazlinuxLogs - Falha envio","type":"metric","params":{"handleNoResults":true,"fontSize":60},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{"customLabel":"Erro envio"}}],"listeners":{}}""",
"uiStateJSON": "{}",
"description": "",
"version": 1,
"kibanaSavedObjectMeta": {
"searchSourceJSON": """{"index":"imap-cxp-*","query":{"query_string":{"query":"subject: (+\"ERRO ao tentar enviar\")","analyze_wildcard":true}},"filter":[]}"""
}
}
},
Thanks for the attention
Regards
Alexandre