Project

General

Profile

Bug #6047

syslog-ng does not logrotate

Added by Orsiris de Jong almost 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
syslog-ng
Target version:
-
Start date:
03/31/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
Affected Architecture:

Description

Hello,

I have syslog-ng 1.1.2_1 installed and configured to rotate my logs, but it obviously doesn't.
Checking for logrotate gives:

find / -iname "*logrotate*" 
/usr/local/etc/logrotate.conf

So I guess logrotate isn't installed anymore with the package.
This bug might be related to #4612, but as the packaging format changed for 2.3, maybe the dependancy is missing.

For now I have enabled the freeBSD repo and installed logrotate via pkg; but then I don't know if I have to add some file to /usr/local/etc/periodic or elsewnere.

Using pfSense 2.3-Beta built on Tue Mar 29 01:50:40 CDT 2016.

History

#1 Updated by Jim Thompson almost 4 years ago

  • Assignee set to Renato Botelho

#2 Updated by Martin Hansen almost 4 years ago

I can word this, logs ain't getting rotated.

#3 Updated by Jim Pingle over 3 years ago

Looks like the dependency on sysutils/logrotate was listed in ports_before on the old 2.2.x package but that didn't get carried over into sysutils/pfSense-pkg-syslog-ng/Makefile so it isn't being built or included. Should be an easy fix.

#4 Updated by Renato Botelho over 3 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Please try 1.1.2_3, I pushed a fix

#5 Updated by Kill Bill about 3 years ago

Well, this still does not work properly at least with bzip2, because:

error: /usr/local/etc/logrotate.conf:7 compression program bzip2 is not an executable file
error: found error in /var/syslog-ng/default.log , skipping

Fix at https://github.com/pfsense/FreeBSD-ports/pull/218

#6 Updated by Kill Bill about 3 years ago

All working now.

#7 Updated by Renato Botelho about 3 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF