#!/bin/bash
#
find /var/log -type f -regextype posix-egrep -regex ".*\.(1|gz|xz|old)$" -exec rm -f {} +
#
find /var/log -type f -name "*" -exec truncate -s 0 {} +
#
/usr/bin/journalctl --rotate --vacuum-time=1s
#
