Author Topic: Logs filling up server  (Read 3428 times)

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Logs filling up server
« on: November 08, 2007, 05:20:42 pm »
I am getting gigs of logs filling up my server. As a fix I am running this script every hour:

#!/bin/sh
rm -rf /usr/pluto/diskless/96/var/log/pluto/*
rm -rf /usr/pluto/diskless/96/var/log/acpid
rm -rf /usr/pluto/diskless/39/var/log/pluto/*
rm -rf /usr/pluto/diskless/39/var/log/acpid

Anyone else?

Chris


Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Logs filling up server
« Reply #1 on: November 08, 2007, 05:50:20 pm »
Might be an idea to look inside the ones getting huge to see what messages they are filling up with, that could indicate a setup or other problem.  Just checked on my cores and the total space they use stays well under 1GiB.

Alternatively I guess you could try editing /etc/pluto.conf and reducing the "LogLevels" parameter.
"Change is inevitable. Progress is optional."
-- Anonymous