<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I am trying to logrotate stats.log file<br><br>My logrotate config for that file is <br>/var/log/suricata/stats.log {<br> missingok<br> notifempty<br> size 20k<br> weekly<br> create 0640 suricata suricata<br>}<br><br>I am not an expert on logrotate but this was working for other system files like syslog.<br><br>So stats.log rotated this past friday but Suricata is still writting to old file.<br>-rw-r----- 1 suricata suricata 0 Jul 6 03:12 stats.log<br>-rw-r----- 1 root root 1019158188 Jul 7 11:01 stats.log-20140706<br><br>Does anybody know how to get logrotation configured with Suricata for stats.log file?<br><br>Thanks.<br> </div></body>
</html>