Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Neu im Elastic Stack

Neu im Elastic Stack

Überblick der Neuerungen im Elastic Stack: Reindex-API, Shrink-API, Ingest-Nodes, Monitoring in Logstash, neues Kibana-Interface, Timelion,...

Philipp Krenn

October 06, 2016
Tweet

More Decks by Philipp Krenn

Other Decks in Programming

Transcript

  1. Reindex API POST /_reindex { "source": { "index": "old_index", "query":

    { "match":{ "user": "my_user" } } }, "dest": { "index": "new_index" } }
  2. Task Managment API GET /_tasks GET /_tasks?nodes=nodeId1,nodeId2 GET /_tasks?nodes=nodeId1,nodeId2&actions=cluster:* GET

    /_tasks/taskId1 GET /_tasks?parent_task_id=parentTaskId1 GET /_tasks/taskId1?wait_for_completion=true&timeout=10s POST /_tasks/taskId1/_cancel
  3. Ingest Node { "description": "mysql pipeline", "processors": [ { "grok"

    : { "field" : "message", "pattern" : "..." } }, { "remove" : { "field" : "message" } } ] }
  4. Painless Scripting {"name":"Philipp","goals":[9,27,15],"assists":[0,0,0]} GET /hockey-stats/_search { "query": { "function_score": {

    "script_score": { "script": { "lang": "painless", "inline": "int total = 0; for (int i = 0; i < input.doc.goals.size(); ++i) { total += input.doc.goals[i]; } return total;" } } } } }
  5. $ curl -XGET 'localhost:9200/_analyze?tokenzier=keyword&filter=lowercase&text=this+is+a+test&pretty=true' { "error" : { "root_cause" :

    [ { "type" : "illegal_argument_exception", "reason" : "request [/_analyze] contains unrecognized parameter: [tokenzier] -> did you mean [tokenizer]?" } ], "type" : "illegal_argument_exception", "reason" : "request [/_analyze] contains unrecognized parameter: [tokenzier] -> did you mean [tokenizer]?" }, "status" : 400 }
  6. UI