<?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 Re: delete all old syslog.x.gz files automatically in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570772#M18325</link>
    <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;write a small script which includes find command(see man pages of find). Get a list of older syslog files and compress them or delete them. schedule this script in cron.&lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;eknath</description>
    <pubDate>Sat, 25 Jun 2005 19:18:12 GMT</pubDate>
    <dc:creator>Eknath</dc:creator>
    <dc:date>2005-06-25T19:18:12Z</dc:date>
    <item>
      <title>delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570769#M18322</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;howto delete all old syslog.x.gz files in /var/log automatically ?&lt;BR /&gt;my Debian Sarge Stable server produced many syslog files.&lt;BR /&gt;&lt;BR /&gt;I'd like to delte all syslog.gz files older then 1 week.&lt;BR /&gt;&lt;BR /&gt;in /etc/logrotate.d I cannot find syslog:&lt;BR /&gt;&lt;BR /&gt;# cd /etc/logrotate.d&lt;BR /&gt;ns1:/etc/logrotate.d# ls -la&lt;BR /&gt;insgesamt 44&lt;BR /&gt;drwxr-xr-x    2 root root 4096 2005-06-25 18:40 .&lt;BR /&gt;drwxr-xr-x  104 root root 4096 2005-06-25 18:17 ..&lt;BR /&gt;-rw-r--r--    1 root root  240 2005-05-12 07:36 apache2&lt;BR /&gt;-rw-r--r--    1 root root   79 2005-04-07 15:43 aptitude&lt;BR /&gt;-rw-r--r--    1 root root  384 2005-05-15 21:00 base-config&lt;BR /&gt;-rw-r--r--    1 root root  172 2005-04-19 16:27 cupsys&lt;BR /&gt;-rw-r--r--    1 root root  124 2005-04-19 21:05 dirmngr&lt;BR /&gt;-rw-r--r--    1 root root  170 2005-05-27 10:10 exim4-base&lt;BR /&gt;-rw-r--r--    1 root root   94 2005-05-05 19:32 ppp&lt;BR /&gt;-rw-r--r--    1 root root   68 2005-04-17 12:00 scrollkeeper&lt;BR /&gt;-rw-r--r--    1 root root  301 2005-05-30 00:30 squid&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
      <pubDate>Sat, 25 Jun 2005 12:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570769#M18322</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-06-25T12:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570770#M18323</link>
      <description>Hrm, I'm not 100% sure where Debian sets all the logrotate rules, but it'll either be in '/etc/logrotate.d' (as you've already seen) or in '/etc/logrotate.conf'.&lt;BR /&gt;&lt;BR /&gt;If you look in '/etc/logrotate.conf', you should see entries which start with the keyword 'include'.  These are the directories Logrotate will search for configuration.&lt;BR /&gt;&lt;BR /&gt;Log file rotation entires can also be set in the conf file.&lt;BR /&gt;&lt;BR /&gt;When you do find your syslog entries, you need to change the 'rotate' value to something smaller for the affected logs (i.e. to 1).  This will allow you to keep one weeks worth of compressed logs.</description>
      <pubDate>Sat, 25 Jun 2005 13:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570770#M18323</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-25T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570771#M18324</link>
      <description>my logrotate.conf looks:&lt;BR /&gt;&lt;BR /&gt;# vi /etc/logrotate.conf&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;# see "man logrotate" for details&lt;BR /&gt;# rotate log files weekly&lt;BR /&gt;weekly&lt;BR /&gt;&lt;BR /&gt;# keep 4 weeks worth of backlogs&lt;BR /&gt;rotate 4&lt;BR /&gt;&lt;BR /&gt;# create new (empty) log files after rotating old ones&lt;BR /&gt;create&lt;BR /&gt;&lt;BR /&gt;# uncomment this if you want your log files compressed&lt;BR /&gt;#compress&lt;BR /&gt;&lt;BR /&gt;# packages drop log rotation information into this directory&lt;BR /&gt;include /etc/logrotate.d&lt;BR /&gt;&lt;BR /&gt;# no packages own wtmp, or btmp -- we'll rotate them here&lt;BR /&gt;/var/log/wtmp {&lt;BR /&gt;    missingok&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0664 root utmp&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/var/log/btmp {&lt;BR /&gt;    missingok&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0664 root utmp&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# system-specific logs may be configured here&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;you mean to change:&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;# keep 4 weeks worth of backlogs&lt;BR /&gt;rotate 4&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;rotate 1 ?&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Jun 2005 17:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570771#M18324</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-06-25T17:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570772#M18325</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;write a small script which includes find command(see man pages of find). Get a list of older syslog files and compress them or delete them. schedule this script in cron.&lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;eknath</description>
      <pubDate>Sat, 25 Jun 2005 19:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570772#M18325</guid>
      <dc:creator>Eknath</dc:creator>
      <dc:date>2005-06-25T19:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570773#M18326</link>
      <description>Well, not in there.  Did you 'grep syslog /etc/logrotate.d/*' ?&lt;BR /&gt;&lt;BR /&gt;My guess would be that it's in 'base-config' since it's not directly in the .conf file.</description>
      <pubDate>Sat, 25 Jun 2005 19:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570773#M18326</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-25T19:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570774#M18327</link>
      <description>Chris, for you system deletes logs after 4 weeks, you may replace it to "1".</description>
      <pubDate>Sun, 26 Jun 2005 01:31:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570774#M18327</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2005-06-26T01:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: delete all old syslog.x.gz files automatically</title>
      <link>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570775#M18328</link>
      <description>&lt;BR /&gt;From your logrotate.conf&lt;BR /&gt;&lt;BR /&gt;# keep 4 weeks worth of backlogs&lt;BR /&gt;rotate 4&lt;BR /&gt;&lt;BR /&gt;which means it will keep 4 weeks of log files, just reduce it to 1 and it will keep only one week of log files.&lt;BR /&gt;&lt;BR /&gt;you can also change the weekly to daily so that your log files will get archived daily and more than 1 week file (set rotate 7) will get purged&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Mon, 27 Jun 2005 01:52:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/delete-all-old-syslog-x-gz-files-automatically/m-p/3570775#M18328</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-27T01:52:03Z</dc:date>
    </item>
  </channel>
</rss>

