From 396b8ae8c40e5eabd8a183110a9201045e509802 Mon Sep 17 00:00:00 2001 From: Hadie Laham Date: Wed, 26 May 2021 09:05:05 -0400 Subject: [PATCH] DATAGO-13861: Adding audit log rotation and shipment to datdog --- templates/logrotate-config-configmap.yaml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 templates/logrotate-config-configmap.yaml diff --git a/templates/logrotate-config-configmap.yaml b/templates/logrotate-config-configmap.yaml deleted file mode 100644 index 02f606e98..000000000 --- a/templates/logrotate-config-configmap.yaml +++ /dev/null @@ -1,20 +0,0 @@ -{{- if .Values.server.logrotate}} -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "vault.fullname" . }}-logrotate-config - namespace: {{ .Release.Namespace }} -data: - logrotate.conf: | - /vault/audit/audit.log { - rotate 1 - copytruncate - size 5M - missingok - compress - postrotate - pkill -HUP -f "vault server" - echo "`date`: Audit log rotated - SIGHUP exit code is $?" > /vault/audit/last-rotate-status - endscript - } -{{ end }} \ No newline at end of file