SecAst logs not rotating

Configuring detection parameters, and optimizations
Post Reply
User avatar
CRM User
Posts: 172
Joined: Sun Nov 27, 2016 3:41 pm

SecAst logs not rotating

Post by CRM User » Sun Nov 27, 2016 6:10 pm

SecAst logs do not rotate when logrotate runs every night. How do I fix this?
Account for questions transferred from CRM system
User avatar
Telium Support
Posts: 233
Joined: Sun Nov 27, 2016 3:27 pm

Re: SecAst logs not rotating

Post by Telium Support » Sun Nov 27, 2016 6:52 pm

The SecAst log file or its parent directory has world write permissions, and newer versions of logrotate do not allow this to rotate. Manually running logrotate shows the results below:

$logrotate -d -v secast
reading config file secast
Handling 1 logs
rotating pattern: /var/log/secast after 1 days (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/secast
error: skipping "/var/log/secast" because parent directory has insecure permissions

The solution is to uncomment the line in the /etc/logrotate.d/secast file to allow rotating regardless of permission:

Code: Select all

su root root
Post Reply