<?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: How Do I set the filesize for the cron logs in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946577#M46522</link>
    <description>change the timing on cron so that logrotate doesn't run as often.,</description>
    <pubDate>Wed, 14 Dec 2005 10:36:31 GMT</pubDate>
    <dc:creator>Alan_152</dc:creator>
    <dc:date>2005-12-14T10:36:31Z</dc:date>
    <item>
      <title>How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946570#M46515</link>
      <description>Hello all,&lt;BR /&gt;I'm running "Linux 2.4.18-6mdk" and compressing logs every week using logrotate.&lt;BR /&gt;My problem is that the cron logs only hold about 1.5 days information, acting as a circular buffer.&lt;BR /&gt;&lt;BR /&gt;Where/How can I specify the cron (or any other) log to be sequential and unlimited size?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Dec 2005 13:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946570#M46515</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2005-12-13T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946571#M46516</link>
      <description>Shalom Raynald,&lt;BR /&gt;&lt;BR /&gt;You might want to look at /etc/syslog.conf&lt;BR /&gt;&lt;BR /&gt;I've never heard of a setup like this.&lt;BR /&gt;&lt;BR /&gt;It may be that the system is running logrotate.&lt;BR /&gt;&lt;BR /&gt;If its a logroate configuration problem its probably in /etc/logroate.d&lt;BR /&gt;&lt;BR /&gt;There are a series of files in there named for the daemon log they are controlling.&lt;BR /&gt;&lt;BR /&gt;Check ou the one for cron and perhaps post it. Also determine if logroate is running. For red hat compatibles: chkconfig --list | grep logrotate&lt;BR /&gt;&lt;BR /&gt;I'm wondering if the setup was done to limit log size. Its certainly possible to locate these logs on NFS or other external storage.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 13 Dec 2005 16:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946571#M46516</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-12-13T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946572#M46517</link>
      <description>You are right, we are using logrotate.&lt;BR /&gt;It works great, weekly.  &lt;BR /&gt;My problem is that the /var/log/cron/info files only contain the latest 1.5 day's info.  It looks like the cron writer is using a circular buffer.&lt;BR /&gt;&lt;BR /&gt;Here is the /etc/logrotate.d/cron file:&lt;BR /&gt;&lt;BR /&gt;/var/log/cron {&lt;BR /&gt;    missingok&lt;BR /&gt;    notifempty&lt;BR /&gt;    postrotate&lt;BR /&gt;        /bin/kill -HUP `/bin/cat /var/run/crond.pid`&lt;BR /&gt;    endscript&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;and the /etc/logrotate.conf with comments removed&lt;BR /&gt;&lt;BR /&gt;weekly&lt;BR /&gt;rotate 4&lt;BR /&gt;create&lt;BR /&gt;compress&lt;BR /&gt;include /etc/logrotate.d&lt;BR /&gt;/var/log/wtmp {&lt;BR /&gt;    monthly&lt;BR /&gt;    create 0664 root utmp&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;/var/log/lastlog {&lt;BR /&gt;    monthly&lt;BR /&gt;    rotate 1&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Weird&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Dec 2005 16:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946572#M46517</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2005-12-13T16:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946573#M46518</link>
      <description>May be you just don't have cronjobs on Sunday-Thursday? &lt;BR /&gt;&lt;BR /&gt;There is no size limitation in cron daemon itself. We can limit log size using logratete, but in default configuration it's unlimited. [in fact, logratete size limit will just activate log rotation when logfile reaches the limit. it won't drop some part of log]&lt;BR /&gt;&lt;BR /&gt;Can you please remove (comment) cron logs rotation in logrotate?&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Dec 2005 02:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946573#M46518</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2005-12-14T02:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946574#M46519</link>
      <description>There is something extrange:&lt;BR /&gt;&lt;BR /&gt;The logrotate configuration is:&lt;BR /&gt;&lt;BR /&gt;/var/log/cron {&lt;BR /&gt;missingok&lt;BR /&gt;notifempty&lt;BR /&gt;postrotate&lt;BR /&gt;/bin/kill -HUP `/bin/cat /var/run/crond.pid`&lt;BR /&gt;endscript&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;That means that the file to be proceses is /var/log/cron&lt;BR /&gt;&lt;BR /&gt;And you are talking about a file in the directory /var/log/cron called info (/var/log/cron/info)&lt;BR /&gt;&lt;BR /&gt;So, I think that logrotate is not working because it won't act over directories. And I don't ever heard about the /var/log/cron/info file. Normally, cron logs are in the /var/log/cron file.&lt;BR /&gt;&lt;BR /&gt;What is your Linux distribution?</description>
      <pubDate>Wed, 14 Dec 2005 06:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946574#M46519</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-12-14T06:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946575#M46520</link>
      <description>Distribution is Mandrake 9.2.&lt;BR /&gt;Logrotate is working as seen below... Notice how all files are rotated on Sundays. I don't know what happened today to info.1...&lt;BR /&gt;&lt;BR /&gt;# ll cron&lt;BR /&gt;total 176&lt;BR /&gt;-rw-r-----    1 root     root            0 Dec 11 01:02 errors&lt;BR /&gt;-rw-r-----    1 root     root           29 Dec  4 01:02 errors.1.gz&lt;BR /&gt;-rw-r-----    1 root     root           29 Nov 27 01:02 errors.2.gz&lt;BR /&gt;-rw-r-----    1 root     root           29 Nov 20 01:02 errors.3.gz&lt;BR /&gt;-rw-r-----    1 root     root           29 Nov 13 01:02 errors.4.gz&lt;BR /&gt;-rw-r-----    1 root     root           29 Nov  6 01:02 errors.5.gz&lt;BR /&gt;-rw-r-----    1 root     root        85991 Dec 14 09:45 info&lt;BR /&gt;-rw-r-----    1 root     root            0 Dec 14 02:30 info.1&lt;BR /&gt;-rw-r-----    1 root     root        15748 Dec  4 01:02 info.2.gz&lt;BR /&gt;-rw-r-----    1 root     root        16186 Nov 27 01:02 info.3.gz&lt;BR /&gt;-rw-r-----    1 root     root            0 Nov 23 02:30 info.4.gz&lt;BR /&gt;-rw-r-----    1 root     root        16068 Nov 13 01:02 info.5.gz&lt;BR /&gt;-rw-r-----    1 root     root            0 Dec 11 01:02 warnings&lt;BR /&gt;-rw-r-----    1 root     root           31 Dec  4 01:02 warnings.1.gz&lt;BR /&gt;-rw-r-----    1 root     root           31 Nov 27 01:02 warnings.2.gz&lt;BR /&gt;-rw-r-----    1 root     root           31 Nov 20 01:02 warnings.3.gz&lt;BR /&gt;-rw-r-----    1 root     root           31 Nov 13 01:02 warnings.4.gz&lt;BR /&gt;-rw-r-----    1 root     root           31 Nov  6 01:02 warnings.5.gz&lt;BR /&gt;# pwd&lt;BR /&gt;/var/log</description>
      <pubDate>Wed, 14 Dec 2005 08:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946575#M46520</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2005-12-14T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946576#M46521</link>
      <description>- Can you send us cron-related strings from /etc/syslog.conf?&lt;BR /&gt;- Check root's inbox box emails with notifications from cron</description>
      <pubDate>Wed, 14 Dec 2005 10:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946576#M46521</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2005-12-14T10:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946577#M46522</link>
      <description>change the timing on cron so that logrotate doesn't run as often.,</description>
      <pubDate>Wed, 14 Dec 2005 10:36:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946577#M46522</guid>
      <dc:creator>Alan_152</dc:creator>
      <dc:date>2005-12-14T10:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946578#M46523</link>
      <description># grep cron /etc/syslog.conf&lt;BR /&gt;cron.=debug;cron.=info;cron.=notice                             -/var/log/cron/info&lt;BR /&gt;cron.=warn                                                      -/var/log/cron/warnings&lt;BR /&gt;cron.err                                                        -/var/log/cron/errors</description>
      <pubDate>Wed, 14 Dec 2005 10:38:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946578#M46523</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2005-12-14T10:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I set the filesize for the cron logs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946579#M46524</link>
      <description>Thank you Vitaly.&lt;BR /&gt;You put me on the right track.&lt;BR /&gt;&lt;BR /&gt;Turns out that our old server had a home grown log purge that truncated (daily) the cron logs after they got bigger than 16K.&lt;BR /&gt;We implemented logrotate when we upgraded but forgot to remove the old truncate entry.&lt;BR /&gt;&lt;BR /&gt;Let's see how many others there are...&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;RayB</description>
      <pubDate>Wed, 14 Dec 2005 10:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-set-the-filesize-for-the-cron-logs/m-p/4946579#M46524</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2005-12-14T10:57:37Z</dc:date>
    </item>
  </channel>
</rss>

