1 Pluspunkt 0 Minuspunkte

Ich habe einen Task in Elastic den ich beenden möchte.

{
  "nodes" : {
    "xr17ftnpSCC5hR4_HvSxkg" : {
      "name" : "AUDIT",
      "transport_address" : "127.0.0.1:9300",
      "host" : "127.0.0.1",
      "ip" : "127.0.0.1:9300",
      "roles" : [
        "data",
        "data_cold",
        "data_content",
        "data_frozen",
        "data_hot",
        "data_warm",
        "ingest",
        "master",
        "ml",
        "remote_cluster_client",
        "transform"
      ],
      "attributes" : {
        "ml.config_version" : "12.0.0",
        "ml.max_jvm_size" : "17179869184",
        "ml.allocated_processors_double" : "2.0",
        "ml.allocated_processors" : "2",
        "ml.machine_memory" : "34359132160",
        "transform.config_version" : "10.0.0",
        "xpack.installed" : "true"
      },
      "tasks" : {
        "xr17ftnpSCC5hR4_HvSxkg:3280937" : {
          "node" : "xr17ftnpSCC5hR4_HvSxkg",
          "id" : 3280937,
          "type" : "transport",
          "action" : "indices:data/write/reindex",
          "status" : {
            "total" : 50568682,
            "updated" : 0,
            "created" : 20097000,
            "deleted" : 0,
            "batches" : 20098,
            "version_conflicts" : 0,
            "noops" : 0,
            "retries" : {
              "bulk" : 0,
              "search" : 0
            },
            "throttled_millis" : 0,
            "requests_per_second" : -1.0,
            "throttled_until_millis" : 0
          },
          "description" : "reindex from [.ds-winlogbeat-8.17.4-2025.03.28-000001] to [new-test-index]",
          "start_time_in_millis" : 1743511341001,
          "running_time_in_nanos" : 7122260639800,
          "cancellable" : true,
          "cancelled" : false,
          "headers" : { }
        }
      }
    }
  }
}

Wenn ich ihn beenden möchte kommt  ein Fehler "malformed task id".

curl -X POST "https://172.21.0.134:9200/_tasks/3280937/_cancel" --insecure -u "elastic:------"
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"malformed task id 3280937"}],"type":"illegal_argument_exception","reason":"malformed task id 3280937"},"status":400}
von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Die vollständige Task ID besteht aus Node ID und Task ID. "<node-id>:<task-id>".

curl -X POST "https://172.21.0.134:9200/_tasks/xr17ftnpSCC5hR4_HvSxkg:3280937:3280937/_cancel" --insecure -u "elastic:------"
von (844 Punkte)