# Suggestion: Adding diagnostic tools to the Elasticsearch Docker image

**URL:** https://discuss.elastic.co/t/suggestion-adding-diagnostic-tools-to-the-elasticsearch-docker-image/95361
**Category:** Elasticsearch
**Created:** [August 1, 2017, 2:48pm UTC](https://discuss.elastic.co/t/suggestion-adding-diagnostic-tools-to-the-elasticsearch-docker-image/95361 "2017-08-01T14:48:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![victorvess](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@victorvess](https://discuss.elastic.co/u/victorvess)
#### Post date: [August 1, 2017, 2:48pm UTC](https://discuss.elastic.co/t/suggestion-adding-diagnostic-tools-to-the-elasticsearch-docker-image/95361/1 "2017-08-01T14:48:35Z")

</div>

I am working through an open support ticket, and one of the requests from the engineer was to pull diagnostics ([GitHub - elastic/support-diagnostics: Support diagnostics utility for elasticsearch and logstash](https://github.com/elastic/elasticsearch-support-diagnostics)) for my cluster. It got me thinking this might be a worthwhile enhancement:

Our cluster uses the official Elasticsearch docker image. I know I could just use the "remote" option on diagnostics, but that disables collection of logs/configs. I'd like to avoid that if possible and collect as much as I can.

I am wondering if it would make sense to include a build of the diagnostics tool (and dependencies) inside the official ES Docker image? I found it a bit awkward to mount the diagnostics into the container to run inside, and when I do so some of the tool dependencies are missing from the alpine container (e.g. jps, jstack, ss/netstat).

Maybe also allow the diagnostic tool to stream the output to stdout, so I can do something like "docker exec -it Elasticsearch diagnostics.sh --host localhost --stdout" to be able to pipe it into something outside the running container?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 29, 2017, 2:49pm UTC](https://discuss.elastic.co/t/suggestion-adding-diagnostic-tools-to-the-elasticsearch-docker-image/95361/2 "2017-08-29T14:49:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
