This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Audit logging
editAudit logging
editAudit logs are collected and shipped to the monitoring cluster referenced in the monitoring.logs
section when audit logging is enabled (it is disabled by default).
apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch spec: monitoring: metrics: elasticsearchRefs: - name: monitoring namespace: observability logs: elasticsearchRefs: - name: monitoring namespace: observability nodeSets: - name: default config: # https://www.elastic.co/guide/en/elasticsearch/reference/current/enable-audit-logging.html xpack.security.audit.enabled: true --- apiVersion: kibana.k8s.elastic.co/v1 kind: Kibana spec: monitoring: metrics: elasticsearchRefs: - name: monitoring namespace: observability logs: elasticsearchRefs: - name: monitoring namespace: observability config: # https://www.elastic.co/guide/en/kibana/current/xpack-security-audit-logging.html xpack.security.audit.enabled: true