Hello Erik,
Have you already checked this answer here?
To get the usage, this may help you:
POST .kibana_usage_counters*/_search?size=1000
{
"query": {
"bool": {
"must": [
{
"term": {
"usage-counter.counterName": {
"value": "{id}"
}
}
}
]
}
}
}
Best regards
Wolfram