Other Script for deleting Logs in the log folder

digitalosaurs

New Member


Messages: 2

Hi guys I need all of your help,
Iam looking for a script for Cron, which can I use for automising the purifing of the DNS-logs in the log folder of my companies freebsd DNS server. Iam new to Freebsd coming from linux so please have some indulgence with me. :)
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,540
Messages: 30,244

Yep, that would be the preferred solution, it has the same function as Linux' logrotate. Our newsyslog(8) can, despite its name, also rotate non-syslog logs.
 

Datapanic

Well-Known Member

Reaction score: 178
Messages: 365

If you are using named, then named.conf has a directive for rotating the log file.
 
Top