Terms aggregation on _field_names field

Does anyone know if it's possible to do terms aggregation on _field_names field in Kibana? I can do it in Sense by hand crafting the query.

GET index1/_search?size=0
{
  "query": {
    "query_string":{
      "query": "*"
    }
  },
  "aggs": {
    "Field names": {
      "terms": {
        "field": "_field_names",
        "size": 0
      }
    }
  }
}

I don't believe so, I tried adding it to Kibana's metaFields list in the advanced settings, but Kibana can't figure out the type for the field, I'm guessing because it doesn't have a mapping in the index like a normal field. Sounds like a cool idea though, I'd encourage you to open a ticket for the idea on our Github: https://github.com/elastic/kibana

https://github.com/elastic/kibana/issues/5914 issue created.

Awesome, thanks! We'll take a look and give it a priority.