Add in task api which user is running the task

:bulb: Idea Name

When running “GET _ tasks” the name of the user running the task will appear

:eyes: Example

{
“nodes” : {
“oTUltX4IQMOUUVeiohTt8A” : {
“name” : “H5dfFeA”,
“transport_address” : “127.0.0.1:9300”,
“host” : “127.0.0.1”,
“ip” : “127.0.0.1:9300”,
“tasks” : {
“oTUltX4IQMOUUVeiohTt8A:464” : {
“node” : “oTUltX4IQMOUUVeiohTt8A”,
“id” : 464,
“type” : “transport”,
“action” : “indices:data/read/search”,
“description” : “indices[test], types[test], search_type[QUERY_THEN_FETCH], source[{“query”:…}]”,
“start_time_in_millis” : 1483478610008,
“running_time_in_nanos” : 13991383,
“cancellable” : true
"user":“abc”
}
}
}
}

:rocket: Let’s do this?

  • 1
  • 2
  • 3
  • 4
  • 5

0 voters

For investigating long running tasks this would make sense yes.
But I think only user might not be enough, I would also/either add the matched rule block.

1 Like