<?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: Scheduling logrotate in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168667#M9254</link>
    <description>I almost sure there is some option in logrotate config itself in order to do what you want.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Vitaly</description>
    <pubDate>Wed, 21 Jan 2004 09:35:19 GMT</pubDate>
    <dc:creator>Vitaly Karasik_1</dc:creator>
    <dc:date>2004-01-21T09:35:19Z</dc:date>
    <item>
      <title>Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168664#M9251</link>
      <description>Good day all,&lt;BR /&gt;&lt;BR /&gt;Where and how do you tell logrotate which day to perform weekly or monthly rotations?&lt;BR /&gt;Is there a separate parameter file or do you have to schedule it at different times with different configuration files.&lt;BR /&gt;&lt;BR /&gt;We run logrotate daily via cron and the weeklies are performed on Sunday.  I beleive the default for monthly would be the 1st of the month.  &lt;BR /&gt;What if you want to rotate logs on the first Sturday of the weekl or the first non business day of the month? &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2004 10:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168664#M9251</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2004-01-20T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168665#M9252</link>
      <description>Just change the cron schedule&lt;BR /&gt;&lt;BR /&gt;logroate is custom, I've never heard of it before.  I wrote my own.&lt;BR /&gt;&lt;BR /&gt;man cron&lt;BR /&gt;&lt;BR /&gt;The third column on cron times is day iof the month.&lt;BR /&gt;&lt;BR /&gt;To have your logroate run on the first day of the month at 4 14 am it looks like this&lt;BR /&gt;&lt;BR /&gt;15 4 1 * * /usr/contrib/bin/logroate&lt;BR /&gt;&lt;BR /&gt;Let me know if I need to elaborate further.&lt;BR /&gt;&lt;BR /&gt;The system will rotate logs on its own, perhaps thats a program called logrotate, I've not bothered to check.  Mine get to big, so I do it more often.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Jan 2004 10:39:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168665#M9252</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-20T10:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168666#M9253</link>
      <description>Well, looking at the man page on my SuSE system it seems that this is a Redhat package ;-)&lt;BR /&gt;&lt;BR /&gt;The explanation for monthly is pretty clear:&lt;BR /&gt;&lt;BR /&gt;       monthly&lt;BR /&gt;              Log  files  are rotated the first time logrotate is&lt;BR /&gt;              run in a month (this is normally on the  first  day&lt;BR /&gt;              of the month).&lt;BR /&gt;&lt;BR /&gt;One way around this might be to break your daily, weekly, and monthly logrotate activities out to different configuration files and shedule these independently using cron.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2004 14:48:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168666#M9253</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-01-20T14:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168667#M9254</link>
      <description>I almost sure there is some option in logrotate config itself in order to do what you want.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Vitaly</description>
      <pubDate>Wed, 21 Jan 2004 09:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168667#M9254</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2004-01-21T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168668#M9255</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From the logrotate manual:&lt;BR /&gt;monthly&lt;BR /&gt;Log  files are rotated the first time logrotate is run in a month (this is normally on the first day of the month).&lt;BR /&gt;&lt;BR /&gt;That means that if you're running a RedHat installation logrotate is scheduled every day:&lt;BR /&gt;/etc/cron.daily/logrotate&lt;BR /&gt;&lt;BR /&gt;All this does is run logrotate with a config file, /etc/logrotate.conf. &lt;BR /&gt;You can easily fix your problem as follows:&lt;BR /&gt;- move the monthly config files from /etc/logrotate.d/ directory (or they will still be run on a normal schedule), place them in /etc/logrotate_monthly.d/, &lt;BR /&gt;- create a new config file /etc/logrotate_monthly.conf and point the include to /etc/logrotate_monthly.d/.&lt;BR /&gt;- Remove any parts not owned by any package.&lt;BR /&gt;&lt;BR /&gt;Now schedule this new logrotate process to run whenever you want it to, using crontab for instance.</description>
      <pubDate>Wed, 21 Jan 2004 09:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168668#M9255</guid>
      <dc:creator>Robert Binkhorst</dc:creator>
      <dc:date>2004-01-21T09:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168669#M9256</link>
      <description>So I gather there is no hidden parameter file and "non standard" rotations must be scheduled otherwise.&lt;BR /&gt;&lt;BR /&gt;Thanks for the answers.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jan 2004 10:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168669#M9256</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2004-01-21T10:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling logrotate</title>
      <link>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168670#M9257</link>
      <description>logroate -f&lt;BR /&gt;&lt;BR /&gt;for force, meaning rotate now.&lt;BR /&gt;&lt;BR /&gt;You can have your cron daemon run logrotate with the -f parameter on any schedule you set(see my first post on cron).&lt;BR /&gt;&lt;BR /&gt;I didn't know that until I researched your thread.&lt;BR /&gt;&lt;BR /&gt;There seems to be no underlying parameter file.&lt;BR /&gt;&lt;BR /&gt;cron is a good enough tool to run logroate more often. I'm probably going to switch my log rotation script to run logroate instead for the sake of simplicity.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 21 Jan 2004 11:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/scheduling-logrotate/m-p/3168670#M9257</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-21T11:35:28Z</dc:date>
    </item>
  </channel>
</rss>

