Complete Guide: Gather Elasticsearch Diagnostic Bundle

October 22, 2024

Complete Guide Diagnostic Bundle Elastic

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.


Preparing for diagnosis

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.  

Image

Upload to Elastic (5 min)

Step 1:

Contact Elastic Support to create a secure customer link on Elastic Upload Service : Login with salesforce ticket if necessary.  

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:

Image

Step 4:

Verify that you uploaded the right file.

Image

Step 5:

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

Kubernetes ge

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!

Contact us
Placeholder Image

Discover more recent posts

Image

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

This guide will walk you step by step through the installation of certificates on Elastic within your infrastructure. We will...
Read more
Why is data essential modern mining management

FAQ – Why is data essential to modern mining management?

Why has data become so central to mining? In an article published by Kelsey Kidd, Sales Director at Worldsensing, we...
Read more
Installation and configuration of an Elastic master node

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

As part of deploying a high-performance and secure Elastic cluster, configuring a master node is a crucial step. This node...
Read more
A simple guide for Elastic installation

Elastic Installation: Simple Guide

In a world where data volumes are skyrocketing, having a powerful and fast search engine is essential. Elastic is a...
Read more