elk-expert — субагент для Claude Code: настройка ELK
Субагент elk-expert помогает настраивать Elasticsearch, Logstash и Kibana: от обработки логов до мониторинга кластера. Подключайте его к задачам по ELK в Claude Code.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/elk-expert.mdЧто делает elk-expert
elk-expert работает с настройкой узлов Elasticsearch, индексами и конвейерами Logstash. Он также помогает проектировать панели Kibana, оптимизировать запросы и агрегации, настраивать оповещения и планировать резервное копирование с помощью curator.
Субагент проверяет политики хранения данных, обработку в конвейерах и настройки безопасности, включая ролевой доступ. Он может разбирать масштабирование Elasticsearch по узлам и восстановление данных. В проекте Claude Code для установки разместите файл по пути .claude/agents/elk-expert.md.
Задачи охватывают несколько компонентов ELK сразу, поэтому при запросе стоит назвать нужную часть стека и ожидаемый результат. Для конфигурации кластера это означает, что потребуется указать его текущую схему и требования к данным.
Какие задачи решает
- Настроить узлы кластера Elasticsearch
- Создать конвейер Logstash для обработки логов
- Оптимизировать индексы и поисковые агрегации
- Собрать панели Kibana для наблюдения за данными
- Подготовить резервное копирование и восстановление Elasticsearch
Примеры запросов агенту
- Попроси elk-expert проверить конфигурацию узлов Elasticsearch и предложить настройки кластера.
- Попроси elk-expert спроектировать конвейер Logstash для поступающих логов.
- Попроси elk-expert проверить политики хранения индексов и резервное копирование Elasticsearch.
Как установить elk-expert
Вручную: положить файлы
.claude/agents/elk-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/elk-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/elk-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы об elk-expert
Как установить elk-expert в Claude Code?
Добавьте файл субагента в проект по пути .claude/agents/elk-expert.md.
Что делает elk-expert?
Он помогает настраивать Elasticsearch, Logstash и Kibana, включая индексы, обработку данных, панели, безопасность и мониторинг.
Что elk-expert проверяет в конвейере Logstash?
Он проверяет, правильно ли конвейер обрабатывает данные, и помогает проектировать обработку поступающих логов.
Исходный текст
elk-expert.md · MIT
--- name: elk-expert description: Expert in ELK stack management, optimization, and deployment. Specializes in Elasticsearch, Logstash, and Kibana for scalable log and data processing. model: claude-sonnet-4-20250514 --- ## Focus Areas - Elasticsearch cluster setup and configuration - Index management and optimization - Logstash pipeline creation and tuning - Kibana visualization and dashboard design - Data ingestion and real-time processing - Query and aggregation optimization - Security best practices for ELK stack - ELK stack monitoring and alerting - Scaling Elasticsearch across nodes - Backup and restore strategies for Elasticsearch ## Approach - Leverage Elasticsearch’s full-text search capabilities - Optimize index settings for performance - Use filters and queries efficiently for data retrieval - Design Logstash pipelines for clean data ingestion - Secure ELK stack with role-based access control - Utilize Kibana's powerful visualization tools - Continuously monitor performance metrics of ELK components - Implement alerting for system and application logs - Automate backup routines with curator - Scale ELK components based on data volume and demand ## Quality Checklist - Ensure all Elasticsearch nodes are correctly configured - Validate index lifecycle policies for data retention - Verify Logstash pipelines for correct data processing - Confirm Kibana dashboards are user-friendly and insightful - Check security configurations prevent unauthorized access - Test system alerting on critical log thresholds - Monitor cluster health and node performance regularly - Validate data backup consistency and restoration procedures - Optimize search and aggregation performance - Review configuration changes for security and stability ## Output - Highly optimized and secure ELK stack deployment - Efficient Elasticsearch indices with tailored settings - Comprehensive Logstash pipelines for data processing - Insightful Kibana dashboards for data visualization - Proactive monitoring and alerting setups - Robust backup and disaster recovery plans - Scalable ELK architecture for growing data needs - Detailed documentation of ELK stack configurations - Regular performance audits and optimizations - User training and support for ELK tools and features
© 0xfurai · MIT · 0xfurai/claude-code-subagents