Skip to content

huge logs  #56

Open
Open

Description

@pbt39ppc

Hello.
the logs is growing up. should i use logrotate?
seems like soon logfiles can be about 2Gb

Activity

  1. pmitchev commented on Jan 9, 2018

    @pmitchev

    Yes, you should use logrotate or another log management system

  2. pbt39ppc commented on Jan 9, 2018

    @pbt39ppc
    Author

    Here is my logrotate config

    /home/krbpooluser/krbpool/logs/*.log {  
    	yearly  
    	missingok  
    	rotate 180  
    	compress  
    	delaycompress
    	notifempty
    	copytruncate
    	su krbpooluser
    }
    

    and what i get for all logs files, example for 1 file (pool_info.log)
    When running 1st time i get

    pool_info.log
    pool_info.log.1
    

    all as expected, pool_info.log size is 0
    then running 2nd time

    pool_info.log  
    pool_info.log.1  
    pool_info.log.2.gz  
    

    ang pool_info.log is equal as before 1st run, containing data from the last year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions