Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huge logs #56

Open
pbt39ppc opened this issue Jan 9, 2018 · 2 comments
Open

huge logs #56

pbt39ppc opened this issue Jan 9, 2018 · 2 comments

Comments

@pbt39ppc
Copy link

pbt39ppc commented Jan 9, 2018

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

@pmitchev
Copy link

pmitchev commented Jan 9, 2018

Yes, you should use logrotate or another log management system

@pbt39ppc
Copy link
Author

pbt39ppc commented Jan 9, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants