
In this article, we provide a step-by-step guide on how to collect an Elasticsearch diagnostic bundle. This guide is designed for users with administrative access to an Elasticsearch cluster, with specific information related to version 8.2.6 of Support Diagnostics. Newer versions may be available and compatible, so feel free to check Elastic Support Diagnostics on GitHub for more details.
Step 1: Check your Java version
Make sure that the machine used to collect the data has the correct version of Java :
- Oracle or OpenJDK : versions 1.8 to 13.
Order this check with :
java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Step 2: Create a working directory
mkdir -p ~/temp/es-support-diagnostics
cd ~/temp/es-support-diagnostics
Step 3: Download the latest version of diagnostic support
curl -L -O https://github.com/elastic/support-diagnostics/releases/download/v8.4.3/diagnostics-8.4.3-dist.zip
Step 4: Unzip the diagnostic media
unzip diagnostics-8.4.3-dist.zip
Step 5: Change the current directory
unzip diagnostics-8.4.3-dist.zip
Step 6: Change the current directory
Run the diagnostics (run without "--type remote" if on the same host as elasticsearch)
NOTE: Windows users use .\diagnostics.bat instead of ./diagnostics.sh
./diagnostics.sh --ssl --type api --host <elasticsearch-host> --port <port> -u <username> -p
Example: ./diagnostics.sh --ssl --type api --archiveType any --host localhost --port
9200 -u elastic -p
Enter password in prompt
Step 7: Check Archive Size
Verify that tar.gz or zip is greater than 1MB and hold for the upload step at the end.

Upload to Elastic (5 min)
Step 1:
Step 2:
Get the secure link from Elastic Support (for security purpose, don’t share the link with someone). For example, we suppose the link we received from Elastic Support is:
https://upload.elastic.co/u/2e6896fa-1068-4036-9f7e-3ab2704a83f3
Step 3:
Click on the secure link and you will get a page in the below format to upload your diagnostic bundle file:

Step 4:
Verify that you uploaded the right file.

Step 5:
Once uploaded, the support team will receive an email with the token and url below to download your file.

Optimizing your data
At Insitu, we're proud to be an official Elastic Professional Services partner in Canada. Our certified expertise guarantees you optimum support for managing, diagnosing and optimizing your Elasticsearch clusters. Trust our specialists to maximize the performance of your systems and ensure a successful migration to Elastic.
Contact us today for a free consultation with our Elastic experts!

Discover more recent posts

Complete Guide: Installing and Configuring SSL/TLS Certificates on Elasticsearch and Kibana

FAQ – Why is data essential to modern mining management?

How to Install and Configure a Master Node for Your Elastic Cluster?

