Created
          February 16, 2016 21:06 
        
      - 
      
- 
        Save chadothompson/bb08a31e48c792a46620 to your computer and use it in GitHub Desktop. 
    The logrotate rule
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # 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