User Tools

Site Tools


elasticsearch

This is an old revision of the document!


Elasticsearch Cheat Sheet

update_by_query

POST /logstash-apache-2018.12.16/_update_by_query
{
  "script": "ctx._source.virtualhost = 'correct value'",
  "query": {
    "term": {
      "virtualhost": "wrong value"
    }
  }
}
elasticsearch.1544956258.txt.gz · Last modified: 2018/12/16 11:30 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki