<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic limit and delete daily syslog files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575233#M18474</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;I have Debian Sarge Stable and I would like to limit &lt;BR /&gt;and delete daily syslog files.&lt;BR /&gt;&lt;BR /&gt;in /etc/logrotate.conf I've created following entries:&lt;BR /&gt;&lt;BR /&gt;/var/log/syslog {&lt;BR /&gt;           daily&lt;BR /&gt;           size=100k&lt;BR /&gt;           missingok&lt;BR /&gt;           create 0664 root utmp&lt;BR /&gt;           rotate 1&lt;BR /&gt;       }&lt;BR /&gt;&lt;BR /&gt;but it seems not to work.&lt;BR /&gt;&lt;BR /&gt;howto restart logrotate to check syntax ?&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
    <pubDate>Sat, 02 Jul 2005 08:32:49 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2005-07-02T08:32:49Z</dc:date>
    <item>
      <title>limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575233#M18474</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I have Debian Sarge Stable and I would like to limit &lt;BR /&gt;and delete daily syslog files.&lt;BR /&gt;&lt;BR /&gt;in /etc/logrotate.conf I've created following entries:&lt;BR /&gt;&lt;BR /&gt;/var/log/syslog {&lt;BR /&gt;           daily&lt;BR /&gt;           size=100k&lt;BR /&gt;           missingok&lt;BR /&gt;           create 0664 root utmp&lt;BR /&gt;           rotate 1&lt;BR /&gt;       }&lt;BR /&gt;&lt;BR /&gt;but it seems not to work.&lt;BR /&gt;&lt;BR /&gt;howto restart logrotate to check syntax ?&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
      <pubDate>Sat, 02 Jul 2005 08:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575233#M18474</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-02T08:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575234#M18475</link>
      <description>What's in '/etc/logrotate.d/baseconf' ?</description>
      <pubDate>Sat, 02 Jul 2005 09:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575234#M18475</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-02T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575235#M18476</link>
      <description>Hrm.. found a debian system, that's not the right file.&lt;BR /&gt;&lt;BR /&gt;'syslog' isn't rotated by 'logrotate' on a debian box.&lt;BR /&gt;&lt;BR /&gt;It's rotated by '/etc/cron.daily/sysklogd'.&lt;BR /&gt;&lt;BR /&gt;There's a line in there that says something like:&lt;BR /&gt;&lt;BR /&gt;savelog -g adm -m 640 -u root -c 7 $LOG &amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;This does pretty much exactally what it reads like.&lt;BR /&gt;&lt;BR /&gt;It saves a log file (i.e. '/var/log/syslog') with group 'adm', owner 'root', permissions 0640, keeping 7 'cycles' worth of log for backup.&lt;BR /&gt;&lt;BR /&gt;'savelog' compresses by default.&lt;BR /&gt;&lt;BR /&gt;So you want only 1 days worth? change the 7 to a 1.&lt;BR /&gt;&lt;BR /&gt;See 'man savelog' for more details, and remove that entry from '/etc/logrotate.conf'.</description>
      <pubDate>Sat, 02 Jul 2005 09:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575235#M18476</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-02T09:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575236#M18477</link>
      <description>thanks&lt;BR /&gt;&lt;BR /&gt;# vi /etc/logrotate.d/base-config&lt;BR /&gt;------------------------------------------------------------------------------------------------&lt;BR /&gt;# This is the log file for the installation of debian, and for base-config.&lt;BR /&gt;# Useful mainly for post-morten debugging, and if the install went ok, it&lt;BR /&gt;# will normally be deleted after one month.&lt;BR /&gt;/var/log/base-config.log {&lt;BR /&gt; rotate 4&lt;BR /&gt; weekly&lt;BR /&gt; compress&lt;BR /&gt; delaycompress&lt;BR /&gt; missingok&lt;BR /&gt; nocreate&lt;BR /&gt;}&lt;BR /&gt;/var/log/base-config.timings {&lt;BR /&gt; rotate 4&lt;BR /&gt; weekly&lt;BR /&gt; compress&lt;BR /&gt; delaycompress&lt;BR /&gt; missingok&lt;BR /&gt; nocreate&lt;BR /&gt;}&lt;BR /&gt;------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;but howto limit these logfiles to 100k ?</description>
      <pubDate>Sat, 02 Jul 2005 10:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575236#M18477</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-02T10:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575237#M18478</link>
      <description>As the logs only get checked/rotated once a day, then you really can't with the current setup.&lt;BR /&gt;&lt;BR /&gt;'syslogd' doesn't have the ability to limit a logfile's size.&lt;BR /&gt;&lt;BR /&gt;If you really wanted to limit it's size, you'd have to use 'logrotate', and run it far more regularly than daily, but it still wouldn't hit it accurately.&lt;BR /&gt;&lt;BR /&gt;In reality though, why the hell are you trying to limit it to 100kb?  That's really not much!&lt;BR /&gt;&lt;BR /&gt;Are you that desperate to save file-system space?  But if you're getting that many errors, I'd be more inclined to *FIX* the errors to stop them from getting into the logs!  They should really only be 10-15kb a day on a busy system!&lt;BR /&gt;&lt;BR /&gt;If too much is being logged to that file, then restrict what's being written to the file in '/etc/syslog.conf' so you aren't getting double information.</description>
      <pubDate>Sat, 02 Jul 2005 19:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575237#M18478</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-02T19:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575238#M18479</link>
      <description>sorry, I would like to limit to 2000k      &lt;BR /&gt;&lt;BR /&gt;100k is much easier for a test, if it's working or not.&lt;BR /&gt;&lt;BR /&gt;is it not possible to put size 2000k &lt;BR /&gt;or something similar to this line:&lt;BR /&gt;&lt;BR /&gt;savelog -g adm -m 640 -u root -c 1 $LOG &amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;in&lt;BR /&gt;&lt;BR /&gt;/etc/cron.daily/sysklogd ?&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jul 2005 18:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575238#M18479</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-05T18:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: limit and delete daily syslog files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575239#M18480</link>
      <description>Nope.  Besides, even if you did, it would only check once a day, and as you're already rotating once a day, it's kind of pointless.</description>
      <pubDate>Tue, 05 Jul 2005 19:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/limit-and-delete-daily-syslog-files/m-p/3575239#M18480</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-05T19:07:24Z</dc:date>
    </item>
  </channel>
</rss>

