How to Query for length with elasticsearch (KQL)

From Kibana UI :

  1. Go to discover app and add anew filter

  1. Click on "Edit as Query DSL"

image

  1. Past the custom DSL query
{
    "script": {
          "script": {
            "source": "doc['zeek.dns.query'].value.length() > 75",
            "lang": "painless"
          }
        }
}
  1. Click on save

1 Like