<?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: logrotate in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098857#M62081</link>
    <description>thank you, &lt;BR /&gt;&lt;BR /&gt;my configuration was correct but while testing i was not using -f option. &lt;BR /&gt;&lt;BR /&gt;thanks again..</description>
    <pubDate>Thu, 20 Mar 2008 17:57:43 GMT</pubDate>
    <dc:creator>chakri</dc:creator>
    <dc:date>2008-03-20T17:57:43Z</dc:date>
    <item>
      <title>logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098853#M62077</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;i would like to logrotate system logs /var/log/* every day and delete 7 days older logs. &lt;BR /&gt;&lt;BR /&gt;this is not happening in my linux machine. logs are getting rotated every day but 7 days older logs are not getting deleted. &lt;BR /&gt;&lt;BR /&gt;could you please let me know what could be the issue. &lt;BR /&gt;&lt;BR /&gt;logrotate.conf &lt;BR /&gt;--------&lt;BR /&gt;# see "man logrotate" for details&lt;BR /&gt;# rotate log files weekly&lt;BR /&gt;daily&lt;BR /&gt;&lt;BR /&gt;# keep 7 days worth of backlogs&lt;BR /&gt;rotate 7&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;# Rotate log if it is bigger than SIZE&lt;BR /&gt;#size=100M&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;# RPM 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;    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 also be configured here.&lt;BR /&gt;/var/log/kern.log /var/log/debug /var/log/auth.log /var/log/daemon.log /var/log/messages /var/log/user.log /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn /var/log/uucp.log /var/log/faillog /var/log/dmesg {&lt;BR /&gt;        daily&lt;BR /&gt;        create 0640 root logadm&lt;BR /&gt;        postrotate&lt;BR /&gt;                /etc/init.d/syslog restart&lt;BR /&gt;        endscript&lt;BR /&gt;        rotate 7&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Mar 2008 23:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098853#M62077</guid>
      <dc:creator>chakri</dc:creator>
      <dc:date>2008-03-19T23:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098854#M62078</link>
      <description>Change the "dayly" option to "weekly".&lt;BR /&gt;&lt;BR /&gt;ogrotate.conf&lt;BR /&gt;--------&lt;BR /&gt;# see "man logrotate" for details&lt;BR /&gt;# rotate log files weekly&lt;BR /&gt;# daily&lt;BR /&gt;weekly</description>
      <pubDate>Thu, 20 Mar 2008 02:51:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098854#M62078</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-03-20T02:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098855#M62079</link>
      <description>could some one please explain me what does rotate &lt;COUNT&gt; will do,, doest it rotate logs so many times daily/weekly or it will delete logs after &lt;COUNT&gt; days???&lt;BR /&gt;&lt;BR /&gt;also in my problem how does changing to weekly will help?&lt;/COUNT&gt;&lt;/COUNT&gt;</description>
      <pubDate>Thu, 20 Mar 2008 10:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098855#M62079</guid>
      <dc:creator>chakri</dc:creator>
      <dc:date>2008-03-20T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098856#M62080</link>
      <description>&amp;gt;&amp;gt;&amp;gt; could some one please explain me what does rotate &lt;COUNT&gt; will do,, doest it rotate logs so many times daily/weekly or it will delete logs after &lt;COUNT&gt; days???&lt;BR /&gt;&lt;BR /&gt;Log rotate will rotate the files at the interval specified. If you specify "daily" and "rotate 6", you will have 6 copies of your log files rotated daily, that is, the 6 most recent, or 6 days.&lt;BR /&gt;&lt;BR /&gt;If you specify weekly, and rotate 1, for example, you will have one log file containing logs for the entire week.&lt;BR /&gt;&lt;BR /&gt;Probably I understand wrong your first post. How many logs do you have in your log directory with "daily" and "rotate 7" options? &lt;BR /&gt;&lt;BR /&gt;Have you manually added the section under:&lt;BR /&gt;# system-specific logs may be also be configured here.&lt;BR /&gt;&lt;BR /&gt;This should be not neccesary as in /etc/logrotate.d, which is included in the configuration file, you have the syslog configuration file which rotates system logs.&lt;BR /&gt;&lt;BR /&gt;You can force a rotation with:&lt;BR /&gt;&lt;BR /&gt;logrotate -f /etc/logrotate.conf&lt;BR /&gt;&lt;BR /&gt;Check also /var/lib/logrotate.status&lt;/COUNT&gt;&lt;/COUNT&gt;</description>
      <pubDate>Thu, 20 Mar 2008 11:37:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098856#M62080</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-03-20T11:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098857#M62081</link>
      <description>thank you, &lt;BR /&gt;&lt;BR /&gt;my configuration was correct but while testing i was not using -f option. &lt;BR /&gt;&lt;BR /&gt;thanks again..</description>
      <pubDate>Thu, 20 Mar 2008 17:57:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098857#M62081</guid>
      <dc:creator>chakri</dc:creator>
      <dc:date>2008-03-20T17:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098858#M62082</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm a new guy to linux, and trying to create a log rotation for one of my logs, can you tell me how to do this... I have tried so many site with their comments.. &lt;BR /&gt;&lt;BR /&gt;Location of my file : /usr/local/lbx/xl_wat/wasp65/bin/output.log&lt;BR /&gt;&lt;BR /&gt;please help me...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2008 11:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/5098858#M62082</guid>
      <dc:creator>Nirudaka Netthasinghe</dc:creator>
      <dc:date>2008-05-13T11:38:32Z</dc:date>
    </item>
  </channel>
</rss>

