Visualize: no [query] registered for [query]


#1

I'm trying to follow Setting Up Field and Document Level Security | X-Pack for the Elastic Stack [6.0] | Elastic and running into a bit of the issue there...

I logged into Kibana, generated a filter that I'd like to apply for Security (see below):

{
  "query": {
    "bool": {
      "should": [
        {
          "match_phrase": {
            "fqdn": "X"
          }
        },
        {
          "match_phrase": {
            "fqdn": "Y"
          }
        }
      ],
      "minimum_should_match": 1
    }
  }
}

then I copy and paste query into Granted Documents Query under my role, and now whenever I log into Kibana, I get following error:

Visualize: no [query] registered for [query]

Please advise.


(David Pilato) #2

Try:

{
    "bool": {
      "should": [
        {
          "match_phrase": {
            "fqdn": "X"
          }
        },
        {
          "match_phrase": {
            "fqdn": "Y"
          }
        }
      ],
      "minimum_should_match": 1
    }
  }

#3

haha, I noticed that after I post as well) and now I see you already replied with same answer)

Thanks!


(system) #4

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