Get task information
- GET /_cat/tasks
Get information about tasks currently running in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.
- Cluster privileges:
monitor
Query Parameters
-
actionsstring The task action names, which are used to limit the response.
-
detailedboolean · default: false If
true, the response includes detailed information about shard recoveries.-
nodesstring Unique node identifiers, which are used to limit the response.
-
parent_task_idstring The parent task identifier, which is used to limit the response.
-
hNames List of columns to appear in the response. Supports simple wildcards.
-
sNames List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting
:ascor:descas a suffix to the column name.-
timeoutstring Duration · default: 30s Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
-
wait_for_completionboolean · default: false If
true, the request blocks until the task has completed.
Response
Response Type: TasksRecord
-
idstring Id -
The identifier of the task with the node.
-
actionstring -
The task action.
-
task_idstring Id -
The unique task identifier.
-
parent_task_idstring -
The parent task identifier.
-
typestring -
The task type.
-
start_timestring -
The start time in milliseconds.
-
timestampstring -
The start time in
HH:MM:SSformat. -
running_time_nsstring -
The running time in nanoseconds.
-
running_timestring -
The running time.
-
node_idstring -
The unique node identifier.
-
ipstring -
The IP address for the node.
-
portstring -
The bound transport port for the node.
-
nodestring -
The node name.
-
versionstring -
The Elasticsearch version.
-
x_opaque_idstring -
The X-Opaque-ID header.
-
descriptionstring -
The task action description.