Using JSON in Kibana Search

When searching from Kibana, you usually enter the actual query string into the top bar, as we saw in the tutorial. If the query string is not enough for what you need, you also have the option to write JSON on that string.





You can write a JSON object that you would attach to the "query" key when interacting with Elasticsearch in this field, for example:





{ "range": { "numeric": { "gte": 10 } } }
      
      



numeric:>=10



. , , JSON-, .





: JSON query_string



(, lowercase_expanded_terms



),  Kibana JSON , ( enter) “” JSON. , , enter , , JSON, .





, : " , , , ".





Elasticseach .





, , , , , .





Elasticsearch ignore_above



, . , , Elasticsearch , ignore_above



, . , , .





, ? Elasticsearch, <your-elasticsearch-domain>/<your-index-name>/_mapping



. JSON - , :





"fieldName": {
  "type": "string",
  "ignore_above": 15
}
      
      



15 , .





: , Elasticsearch:





{ "fieldName": "short string" }
{ "fieldName": "a string longer as ignore_above" }
      
      



( Kibana Elasticsearch), , - , . fieldName:longer



, ( fieldName:short



). Elasticsearch , " ignore_above" 15 , , , , .





, .

, , author:foo



, foo



, , , "" default_field



. Elasticsearch foo. , _all



.





, index.query.default_field



- , Elasticsearch _all



, .





, _all



, , - . _all



(, fieldName



_all



) / _all



.






OTUS "DevOps ". .





, OTUS DevOps .












All Articles