Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525946 - app-admin/syslog-ng: missing entry in the logrotate file
Summary: app-admin/syslog-ng: missing entry in the logrotate file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-20 07:12 UTC by Agostino Sarubbo
Modified: 2014-10-20 07:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2014-10-20 07:12:26 UTC
While I'm using syslog-ng with hardened conf, I notice that we have:

auth.log
audit.log
daemon.log

and so on, but the syslog file in logrotate.d shows only messages, so not all files are rotated.

vrt ~ # cat /etc/logrotate.d/syslog-ng 
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate.in,v 1.1 2014/01/22 04:25:35 mr_bones_ Exp $                                                                                                                                                  
#                                                                                                                                                                                                                                                                              
# Syslog-ng logrotate snippet for Gentoo Linux                                                                                                                                                                                                                                 
# contributed by Michael Sterrett                                                                                                                                                                                                                                              
#                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                               
/var/log/messages {                                                                                                                                                                                                                                                            
    missingok                                                                                                                                                                                                                                                                  
    sharedscripts                                                                                                                                                                                                                                                              
    postrotate                                                                                                                                                                                                                                                                 
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true                                                                                                                                                                                                                  
    endscript                                                                                                                                                                                                                                                                  
}
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2014-10-20 07:16:05 UTC
hardened is pretty much unmaintained.  You can use /usr/share/doc/syslog-ng-3.5.6/syslog-ng.logrotate.hardened.bz2 as the start for customizing the logrotate config to suite your needs.