Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a pfSense firewall in our datacentre. By default, pfSense is only storing 500K of firewall filter logs, which is only a few hours for us. How can I increase this?

pfSense uses clog rather than the usual BSD newsyslog.

I only want the log for debugging firewall rules, not compliance or anything, and the firewall has 100GB of spare disk space, so I'd rather have the logs on the firewall itself than set up a syslog server.

share|improve this question
up vote 2 down vote accepted

There are several ways to do this. Why don't you read the excellent and useful mailing archives for pfsense, or check their forums?

Anyway, there are two ways to increase logs. First, you can increase the size of the clog files by re-initializing them. Another way is to install a regular syslogger which captures logs in the regular way. You can then use that syslogger to forward logs to a central point. If you are in a secure environment where you have to guarantee to retain all logs, then having the clog + local syslog + remote syslog is best.

You may need to read this:

and for the syslog-ng.conf:,7793.0.html

share|improve this answer

Log rotation on FreeBSD is typically controlled with 'newsyslog'. You can edit the config file (/etc/newsyslog.conf) to control various aspects of how long logs are kept and how big the files may be kept. Read the man page for newsyslog for full details.

share|improve this answer
Unfortunately pfSense does not use newsyslog, it uses clog. There are some complicated sounding methods to convert it, but I couldn't even work out where to start. – Colin Pickard May 20 '11 at 10:23
Maybe you could configure it to use remote syslog, but to the same server rather than remote? – barryj May 20 '11 at 11:35
Is it straightforward to set up a syslog server on the pfsense server? Again, my google skills seem to be failing me here. – Colin Pickard May 23 '11 at 15:01

You can use an other server to receive and store files. First you must determine remote Server IP in your pfsense to send event on remote machine. in Server side you must enable remote log fetching in rsyslog.conf ( help : in this scenario I more explain:

Pfasense(A) Remote Server (B) --------- ----------- Set to send syslog to B Config rsyslog.con help link

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.