pfSense: the clog command

Translation of the original in Catalan. Read it in: CatalàCastellano

pfsense logo

As it could not be otherwise pfSense uses

logrotate

to keep the

logs

. That is, if we do a

cat

on its log files we are not searching the whole record of information but only the last part that has not yet been packaged, often the part corresponding to the current day. Well then the pfSense people have created a tool in the form of a command:

clog

that allows looking at a log file and at all its compressed packages with information from previous days.

Moreover, a very common feature in

logs

files especially when we are debugging is to use the command "

tail -f

". Which allows us to see in real time the contents that are being added to a log file, well then, if we decide to have this file in a console for several days monitoring the file we are interested in since this one will be packaged by logrotate the "

tail -f

" will be truncated. That is also solved with the new "

clog

" command, we only have to use the "

-f

" parameter to monitor what is being added to a

log

file. That is, "

clog -f nom_fitxer.log

". If you want to take a look at the wiki page where I found it:

clog

.

1 comment

Comments from the old blog, as they were written. Comments are closed.

  1. JDG

    o.0 quin blog no tenia ni ideia de que havesin blogs de geeks catalans tinc tot el cap de semana per anar llegin...