<?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 logs rotation at 22:15 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/logs-rotation-at-22-15/m-p/5310129#M53113</link>
    <description>&lt;P&gt;how can I rotate logs daily at 22:15﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;following is my syslog-ng configuration in logrotate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿﻿﻿﻿﻿/var/log/vta.log {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateext&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotate 365&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; daily&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; missingok&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; copytruncate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create 640 root root&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; postrotate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/init.d/syslog reload&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endscript&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maaz&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2011 20:57:58 GMT</pubDate>
    <dc:creator>user_smanas</dc:creator>
    <dc:date>2011-08-23T20:57:58Z</dc:date>
    <item>
      <title>logs rotation at 22:15</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logs-rotation-at-22-15/m-p/5310129#M53113</link>
      <description>&lt;P&gt;how can I rotate logs daily at 22:15﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;following is my syslog-ng configuration in logrotate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿﻿﻿﻿﻿/var/log/vta.log {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateext&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotate 365&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; daily&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; missingok&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; copytruncate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create 640 root root&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; postrotate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /etc/init.d/syslog reload&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endscript&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maaz&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 20:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logs-rotation-at-22-15/m-p/5310129#M53113</guid>
      <dc:creator>user_smanas</dc:creator>
      <dc:date>2011-08-23T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: logs rotation at 22:15</title>
      <link>https://community.hpe.com/t5/operating-system-linux/logs-rotation-at-22-15/m-p/5312489#M53120</link>
      <description>&lt;P&gt;If you want to rotate all daily-rotatable logs at 22:15, you should modify the time when your daily logrotate task runs.&lt;/P&gt;&lt;P&gt;Typically, logrotate is started by a script in /etc/cron.daily (or one of the other /etc/cron.* directories). If that is the case, then /etc/crontab (or in some cases, /etc/cron.d/anacron) determines the time when the tasks in /etc/cron.daily and similar directories are run. When you find the right entry, modify it to make it run at the time you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to rotate only a specific set of logfiles at 22:15 daily, make a separate logrotate configuration file in some custom location (e.g. /etc/my-logrotate.conf) for those logfiles, and set up a cron job to start logrotate with that configuration file on 22:15 daily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cron job might look like this:&lt;/P&gt;&lt;PRE&gt;15 22 * * * /usr/sbin/logrotate /etc/my-logrotate.conf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 15:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/logs-rotation-at-22-15/m-p/5312489#M53120</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-08-25T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

