Skip to content

Instantly share code, notes, and snippets.

@chadothompson
Created February 16, 2016 21:06
Show Gist options
  • Save chadothompson/bb08a31e48c792a46620 to your computer and use it in GitHub Desktop.
Save chadothompson/bb08a31e48c792a46620 to your computer and use it in GitHub Desktop.
The logrotate rule
# DOCUMENTATION: https://forge.puppetlabs.com/rodjek/logrotate
# FILE: -rw-r--r-- 1 dice dice 3.6G Jan  8 10:03 solr-8983-console.log
logrotate::rule { 'solrlog':
ensure => present,
path => '/opt/solr/latest/server/logs/solr-8983-console.log',
rotate => '4',
rotate_every => 'week',
#size => "4G",
#postrotate => '',
}
##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment