# Logrotate configuration for ja4sentinel
# Install to: /etc/logrotate.d/ja4sentinel

/var/log/ja4sentinel/*.log {
    daily
    missingok
    rotate 7
    compress
    delaycompress
    notifempty
    create 0600 root root
    sharedscripts
    postrotate
        # Send SIGHUP to ja4sentinel to reopen log files
        /bin/systemctl reload ja4sentinel 2>/dev/null || true
    endscript
}
