Logrotate testing


If you haven’t 100% to be sure concretely off you configuration . You schould make test

this script increase file ~/test.tmp every 1 second 50KiB

while true; do dd   if=/dev/urandom of=~/test.out.tmp  count=10 bs=5K status=none; sleep 1  ; cat test.out.tmp  >> /var/log/test.tmp   ; clear ; ls -als ~/test.tmp ; done

So yu now schould  make file /etc/logotate.d/test.tmp  and run logrotate every minute check work in different configuration  .

/var/log/test.tmp {
    size 5m
    create 0600 root root


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s