elasticsearch

Configure Elasticsearch index templates and lifecycle management for audit logging.

Updated Oct 28, 2025
One-click install
npx skills add https://github.com/kaxuna1/ecomsite --skill elasticsearch-kaxuna1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elasticsearch
Source: https://github.com/kaxuna1/ecomsite/tree/main/.claude/skills/elasticsearch
Command: npx skills add https://github.com/kaxuna1/ecomsite --skill elasticsearch-kaxuna1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill configures Elasticsearch for audit logging, full-text search, and analytics within the platform, enabling fast investigations of admin actions and security events.

Core Features & Use Cases

  • Index templates and ILM to reliably manage audit-log indices over time.
  • Search & analytics through Elasticsearch queries, dashboards, and debugging workflows across audit events.
  • Hybrid patterns with PostgreSQL for transaction integrity and fast search results in enterprise apps.

Quick Start

Start Elasticsearch in a development environment (e.g., Docker Compose) and configure the ES URL via ELASTICSEARCH_URL. Refer to the references for monitoring, ILM setup, and integration guidance, then run a sample search to validate audit log queries.

Frequently Asked Questions about elasticsearch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Elasticsearch for fast audit log search and analytics?

Configure Elasticsearch for audit log search by applying index templates and index lifecycle management (ILM) to reliably manage admin and security event indices over time. This enables fast full-text queries and dashboards across large log volumes.

What is the best way to manage large volumes of audit trail indices in Elasticsearch?

Managing large audit trail volumes in Elasticsearch relies on index lifecycle management (ILM) and index templates. ILM automatically handles index retention and rollover, ensuring scalable and reliable search performance as log data grows.

Can I use Elasticsearch with PostgreSQL for hybrid search and transaction integrity?

Yes, you can integrate Elasticsearch with PostgreSQL for hybrid search patterns. This combination maintains PostgreSQL transaction integrity while leveraging Elasticsearch for fast, scalable full-text search results in enterprise applications.

How do I set up Elasticsearch index lifecycle management for security event logs?

Set up Elasticsearch index lifecycle management (ILM) for security logs by defining policies for index rollover and retention, then applying index templates. This ensures audit trails remain searchable and manageable as data volumes scale.

Does Elasticsearch work with Docker Compose for audit log monitoring in development?

Yes, Elasticsearch works with Docker Compose for development. You can start the environment, configure the ELASTICSEARCH_URL variable, and run sample searches to validate audit log queries and monitoring workflows before production deployment.