What you will learn in this TP
- The role of Dev Tools
- Access Dev Tools
- get a curl request from Dev Tools
- Use autocompletion
- use the Elasticsearch API
- get the status of the Elasticsearch cluster
- work with your data and configurations
All steps and instructions are shown. Recommended for this lab: semi-guided
Prerequisites #
Context. Before administering a cluster, you must know how to query it. You get to grips with Dev Tools and the API to read node roles, the master, tasks and pipelines.
Prerequisites: an Elasticsearch cluster and Kibana (lab "Installing Elasticsearch"), Dev Tools · Estimated time: 30 min
You need an Elasticsearch cluster with a Kibana instance connected to it. If that is not yet the case, we invite you to complete the lab on installing Elasticsearch.Discovering Dev Tools #
What you will learn in this section
- The role of Dev Tools
- Access Dev Tools
- get a curl request from Dev Tools
▶ Review the concept presentation video
Dev Tools is an application available by default in Kibana.
Accessing Dev Tools
You can access Dev Tools in two ways:- Click successively on ☰ Menu -> Dev Tools
- Go to its URL: URLKIBANA/app/dev_tools
Testing Dev Tools
You can use this command to display the state of your cluster:GET _cluster/healthWARNING:
- Dev Tools has autocompletion, so it can automatically suggest options based on what you type.
- Dev Tools caches all the commands you enter in your browser
- For each command, simply click the ▶ ("Click to send request") button to display the result in the right-hand panel.
From Dev Tools to curl
You can run the same commands directly against the Elasticsearch cluster with curl or any other means. To do so, simply click the request actions button (🔧 or ⋮ depending on the version) to get extra options, including converting the command into a curl command.See the Elasticsearch API documentation
Testing the API #
What you will learn in this section
- Use autocompletion
- use the Elasticsearch API
- get the status of the Elasticsearch cluster
- work with your data and configurations
Dev Tools is an application available by default in Kibana. Some information can be obtained from several API commands.
Find the role(s) of node es03
Find the command to display the role(s) assigned to node es03
Display the cluster leader
Find the command to display the cluster leader
Display pending tasks
Find the command to display the pending tasks on the cluster
Display the 'ingest pipelines'
Find the command to display the ingest pipelines
Go further
Use Dev Tools to retrieve and update your configurations.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Recent discussions about this course
- Elasticsearch : supprimer automatiquement les logs de plus de 30 jours✓ solved · 1 reply(ies)
Ask a question about this lesson →See all discussions about this course
Course Glossary
RBAC (Role-Based Access Control)
An access control method where permissions are assigned to specific roles (e.g., admin, reader) rather than directly to individual users.
Authentication
The process of verifying the identity of a user or system (e.g., login/password, tokens, biometrics).
Authorization
The process that occurs after authentication to determine if the entity has the necessary rights and privileges to access a resource.
API Key
A unique alphanumeric code used to identify, authenticate, and authorize access to an Application Programming Interface (API).
Architecture
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
Repository
A centralized storage location. This can refer to a source code repository (e.g., Git) or an artifact and binary repository (e.g., Harbor, Nexus, Arti...
Elasticsearch
A distributed, RESTful search and analytics engine capable of addressing a growing number of use cases, built on Apache Lucene.
Recommended Articles
Elasticsearch monitoring and troubleshooting: health, unassigned shards, JVM, hot threads and slow logs
Diagnose an Elasticsearch cluster: cluster health and CAT APIs, unassigned shards and allocation ...
Elasticsearch performance and capacity planning: shards, heap, indexing and benchmarks
Size and optimize Elasticsearch: shard size and count, JVM heap, caches, indexing settings (refre...
Cross-cluster search and cross-cluster replication: multi-cluster Elasticsearch architectures
Design multi-cluster Elasticsearch architectures: remote clusters, cross-cluster search, cross-cl...
Elasticsearch distributed architecture: node roles, shards, replicas and allocation
Understand how Elasticsearch works as a distributed system: node roles, master nodes and quorum, ...
Automation and infrastructure as code for Elasticsearch: API, Terraform, Ansible and CI/CD
Automate Elasticsearch administration: REST API and clients, the elasticstack Terraform provider ...
Understanding the Elastic Common Schema (ECS)
As always in our consulting engagements, we recommend that companies harmonise and standardise: k...
The OpenSearch cluster in depth: nodes, shards and replication
Understanding how an OpenSearch cluster works inside: node roles, cluster manager election, shard...
Deploying an OpenSearch cluster: Docker, Kubernetes and managed services
Moving from one node to a real OpenSearch cluster: three nodes with Docker Compose, system settin...
Transforms and enrich: summarising and enriching data in Elasticsearch
Build entity-centric indices with pivot and latest transforms, and enrich documents at ingest tim...