Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Connector (CLI)

A lightweight, detection-centric CLI toolkit for interacting with Elasticsearch.

The Elasticsearch Connector is a simple, interactive command-line tool designed for detection engineers and platform engineers who need quick, reliable access to Elasticsearch for validation, exploration, and operational tasks. It provides a focused set of commands to test connectivity, inspect cluster health, explore indices and schemas, execute ES|QL queries, and perform basic data ingestion and deletion. The tool is intentionally stateless, easy to run locally, and optimized for manual workflows such as detection testing, debugging, and research. Rather than abstracting Elasticsearch behind heavy services, this connector exposes Elasticsearch capabilities directly through a clean CLI interface.


Features

  • Test Connection Validate Elasticsearch connectivity and authentication using configured credentials.

  • Fetch Cluster Health Retrieve a high-level summary of cluster status, node count, and shard health.

  • List Indices Display all indices available in the connected Elasticsearch cluster.

  • Fetch Index Schema Inspect index mappings and field definitions for one or all indices.

  • Test ES|QL Query Validate that an ES|QL query executes successfully without returning full results.

  • Run ES|QL Query Execute an ES|QL query and display query results directly in the CLI.

  • Ingest Documents Create an index if missing and ingest documents from JSON files.

  • Delete Data Delete an entire index or perform delete-by-query using a JSON query.


High-Level Architecture Overview

CLI Usage Guide


Documentation

For detailed usage and internal flow, refer to the following pages:


License

This project is licensed under the MIT License.
See the LICENSE file for details.


About

A lightweight, CLI-based Elasticsearch connector for testing connections, exploring indices and schemas, running queries, and ingesting data.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages