<?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 syslog in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754070#M835124</link>
    <description>I saw the syslog.log keeps 4 day info. and&lt;BR /&gt;after 4 days, it will be moved to OLDsyslog.log&lt;BR /&gt;now I want the syslog.log keeps only one day&lt;BR /&gt;info. how can I do?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
    <pubDate>Fri, 28 Jun 2002 04:18:46 GMT</pubDate>
    <dc:creator>Michael_33</dc:creator>
    <dc:date>2002-06-28T04:18:46Z</dc:date>
    <item>
      <title>syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754070#M835124</link>
      <description>I saw the syslog.log keeps 4 day info. and&lt;BR /&gt;after 4 days, it will be moved to OLDsyslog.log&lt;BR /&gt;now I want the syslog.log keeps only one day&lt;BR /&gt;info. how can I do?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 28 Jun 2002 04:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754070#M835124</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2002-06-28T04:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754071#M835125</link>
      <description>maybe needs a script?</description>
      <pubDate>Fri, 28 Jun 2002 04:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754071#M835125</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2002-06-28T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754072#M835126</link>
      <description>There wasn't a system reboot as this will cause a copy of syslog.log to OLDsyslog.log and create a new syslog file?&lt;BR /&gt;&lt;BR /&gt;Kurt</description>
      <pubDate>Fri, 28 Jun 2002 04:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754072#M835126</guid>
      <dc:creator>Kurt Beyers.</dc:creator>
      <dc:date>2002-06-28T04:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754073#M835127</link>
      <description>You are right!&lt;BR /&gt;but I want the syslog.log keeps only one day&lt;BR /&gt;info. the other will keep in OLDsyslog.log. &lt;BR /&gt;how can I do?</description>
      <pubDate>Fri, 28 Jun 2002 04:26:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754073#M835127</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2002-06-28T04:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754074#M835128</link>
      <description>You are right!&lt;BR /&gt;but I want the syslog.log keeps only one day&lt;BR /&gt;info. the other will keep in OLDsyslog.log. &lt;BR /&gt;how can I do?</description>
      <pubDate>Fri, 28 Jun 2002 04:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754074#M835128</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2002-06-28T04:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754075#M835129</link>
      <description>You are right!&lt;BR /&gt;but I want the syslog.log keeps only one day&lt;BR /&gt;info. the other will keep in OLDsyslog.log. &lt;BR /&gt;how can I do?</description>
      <pubDate>Fri, 28 Jun 2002 04:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754075#M835129</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2002-06-28T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754076#M835130</link>
      <description>You are right!&lt;BR /&gt;but I want the syslog.log keeps only one day&lt;BR /&gt;info. the other will keep in OLDsyslog.log. &lt;BR /&gt;how can I do?</description>
      <pubDate>Fri, 28 Jun 2002 04:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754076#M835130</guid>
      <dc:creator>Michael_33</dc:creator>
      <dc:date>2002-06-28T04:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754077#M835131</link>
      <description>You will find an answer in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x77928cc5e03fd6118fff0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x77928cc5e03fd6118fff0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hartmut</description>
      <pubDate>Fri, 28 Jun 2002 05:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754077#M835131</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-06-28T05:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754078#M835132</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;you should just write a simple script, which can do this for you:&lt;BR /&gt;&lt;BR /&gt;cp /var/adm/syslog/syslog.log /var/adm/syslog/syslog.old&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;The first line makes a copy of your existing logfile, the second line trims the syslog.log file to zero. Put this into a cron job, which you run each day on midnight. That should do it for you!&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jun 2002 05:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754078#M835132</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-06-28T05:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754079#M835133</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;First create a shell script &lt;BR /&gt;flush_syslog as shown below. &lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;cp /var/adm/syslog/syslog.log /var/adm/syslog/syslog.`date +%d%b%y`&lt;BR /&gt;&amp;gt;/var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;This above script will create a syslog file for each day with the time stamp.&lt;BR /&gt;&lt;BR /&gt;And later schedule a cronjob for root as below which is executed everyday.&lt;BR /&gt;&lt;BR /&gt;59 23 * * * sh /usr/sbin/flush_syslog&lt;BR /&gt;&lt;BR /&gt;-Sukant</description>
      <pubDate>Fri, 28 Jun 2002 05:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/2754079#M835133</guid>
      <dc:creator>Sukant Naik</dc:creator>
      <dc:date>2002-06-28T05:37:19Z</dc:date>
    </item>
  </channel>
</rss>

