Audit logging is disabled by default. To enable it:
plugins.security.audit.type: internal_opensearch
systemctl restart wazuh-indexer
2. Enable Audit Logs in Wazuh Dashboard
On the Wazuh dashboard, click on the hamburger icon (top left).
Navigate to: Indexer Management > Security > Audit Logs.
Make sure audit logging is enabled. If not, enable it.
From this page, you can also edit the settings for audit logs.
For example, if you want Authenticated Events to appear, ensure this option is not disabled in General Settings.
For a full list of event types, check this documentation: https://opensearch.org/docs/1.2/security-plugin/audit-logs/index/#tracked-events
On the Wazuh dashboard, click the hamburger icon (top left).
Go to: Dashboard Management > Index Patterns > Create Index Pattern.
Add this index pattern: security-auditlog-*
On the Wazuh dashboard, click the hamburger icon (top left).
Go to: Explore > Discover.
On the top left, change the index from wazuh-alerts-* to security-auditlog-*.
This will show the dashboard user activity events.
