Download for macOS
Skill

elasticsearch-audit

@elastic Updated 2026-07-22

Enable, configure, and query Elasticsearch security audit logs. Use when the task involves audit logging setup, event filtering, or investigating security incidents like failed logins.

Install

git clone https://github.com/elastic/agent-skills /tmp/agent-skills && ln -s /tmp/agent-skills/skills/elasticsearch/elasticsearch-audit ~/.claude/skills/elasticsearch-audit

From README

Elasticsearch Audit Logging Enable and configure security audit logging for Elasticsearch via the cluster settings API. Audit logs record security events such as authentication attempts, access grants and denials, role changes, and API key operations — essential for compliance and incident investigation. For Kibana audit logging (saved object access, login/logout, space operations), see kibana-audit. For authentication and API key management, see elasticsearch-authn. For roles and user management, see elasticsearch-authz. For diagnosing security errors, see elasticsearch-security-troubleshooting. For detailed API endpoints and event types, see references/api-reference.md. Deployment note: Audit logging configuration differs across deployment types. See Deployment Compatibility for details.