Thursday, May 18, 2023

Logrotate

 

```

# cat /etc/logrotate.d/vault

/opt/vault/audit/audit.log {

    daily

    rotate 365

    compress

    missingok

    notifempty

    dateext

    dateformat %Y-%m-%d.

    create 0600 vault vault

    postrotate

        /bin/kill -HUP `cat /run/vault/vault.pid 2>/dev/null` 2> /dev/null || true

    endscript

}

```

No comments:

Post a Comment