Skip to content

Instantly share code, notes, and snippets.

@denzhel
Last active May 28, 2025 06:05
Show Gist options
  • Save denzhel/4d73c38c7c5e76d7b882beb582f82a69 to your computer and use it in GitHub Desktop.
Save denzhel/4d73c38c7c5e76d7b882beb582f82a69 to your computer and use it in GitHub Desktop.
elasticsearch: get slow queries

To get the slow queries in Elasticsearch, use the following command:

curl -s 'http://<hostNameorIP>:9200/_tasks?detailed&pretty' | jq '.nodes[] | .tasks[] | select(.running_time_in_nanos > 10000000000) | {task_id, action, running_time_in_nanos, description}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment