<?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/2784082#M2192</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;Why don't you check &lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/logrotate.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/logrotate.html&lt;/A&gt;&lt;BR /&gt;before you start to invent the wheel one more time.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Aug 2002 23:49:46 GMT</pubDate>
    <dc:creator>I_M</dc:creator>
    <dc:date>2002-08-12T23:49:46Z</dc:date>
    <item>
      <title>Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784081#M2191</link>
      <description>Thinking about implementing logrotate but wanted the forum's expert opinion on it beforehand.&lt;BR /&gt;&lt;BR /&gt;Looking for opinions on usage and/or example scripts, links, etc.... for HP-UX v11.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;..Joe</description>
      <pubDate>Mon, 12 Aug 2002 13:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784081#M2191</guid>
      <dc:creator>Joe Profaizer</dc:creator>
      <dc:date>2002-08-12T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784082#M2192</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;Why don't you check &lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/logrotate.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/logrotate.html&lt;/A&gt;&lt;BR /&gt;before you start to invent the wheel one more time.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 23:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784082#M2192</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-08-12T23:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784083#M2193</link>
      <description>Joe,&lt;BR /&gt;&lt;BR /&gt;Here is another url for you to check out&lt;BR /&gt;&lt;A href="http://www.interhack.net/projects/rotatelog/" target="_blank"&gt;http://www.interhack.net/projects/rotatelog/&lt;/A&gt;&lt;BR /&gt;it's another log rotating tool, works pretty well for me and easily configured.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Wed, 14 Aug 2002 15:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784083#M2193</guid>
      <dc:creator>Jeffrey S. Sims</dc:creator>
      <dc:date>2002-08-14T15:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784084#M2194</link>
      <description>I run logrotate from the porting center.  It makes &lt;BR /&gt;life a lot easier as logs &lt;BR /&gt;don't grow out of control.&lt;BR /&gt;&lt;BR /&gt;HP-UX 10.20 rotates a couple of logs on reboot. This makes&lt;BR /&gt;following log history a bit &lt;BR /&gt;difficult for these logs.&lt;BR /&gt;&lt;BR /&gt;I combine this with logcheck&lt;BR /&gt;to scan through the log for&lt;BR /&gt;items I should be aware of.&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Aug 2002 14:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784084#M2194</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-08-15T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784085#M2195</link>
      <description>for implementing logrotate in linux you have configured /etc/logrotate.d &lt;BR /&gt;for rotate of log apache configured:&lt;BR /&gt;/var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log {&lt;BR /&gt;    missingok&lt;BR /&gt;    sharedscripts&lt;BR /&gt;    postrotate&lt;BR /&gt; /bin/kill -HUP `cat /var/run/httpd.pid 2&amp;gt;/dev/null` 2&amp;gt; /dev/null || true&lt;BR /&gt;    endscript&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;posrotate or prerotate&lt;BR /&gt;defeat before executing something you can write scrip tor commandos in these lines&lt;BR /&gt;&lt;BR /&gt;in /etc/cron.daily or cron.hourly &lt;BR /&gt;Copy the file logrotate that contains the following thing &lt;BR /&gt; &lt;BR /&gt; !/bin/sh&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/logrotate /etc/logrotate.conf&lt;BR /&gt;chmod 500 logrotate.conf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and logrotate.conf contains the following:&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;# 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 -- 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;</description>
      <pubDate>Thu, 15 Aug 2002 15:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logrotate/m-p/2784085#M2195</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2002-08-15T15:23:15Z</dc:date>
    </item>
  </channel>
</rss>

