Overview - Audit logging
What is it?
Audit logging is the process of recording detailed information about actions and events in a system, especially who did what and when. In Elasticsearch, audit logs capture security-related events like user authentications, access attempts, and changes to data or settings. This helps track activity for security, compliance, and troubleshooting. Audit logs are stored separately from regular logs to keep a clear record of sensitive actions.
Why it matters
Without audit logging, it would be very hard to know if someone accessed or changed data without permission. This can lead to security breaches, data loss, or compliance failures with laws that require tracking user actions. Audit logs provide a trustworthy history that helps detect problems early, prove accountability, and improve system trust. They are essential for protecting sensitive information and meeting legal requirements.
Where it fits
Before learning audit logging, you should understand basic Elasticsearch concepts like clusters, nodes, and how logging works in general. After audit logging, you can explore advanced security features like role-based access control, encryption, and monitoring tools that use audit logs to alert on suspicious activity.