<?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: trimming syslogs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339654#M190471</link>
    <description>Use SAM - under routine tasks, there's a log trimming facility that will trim them down to a specified size.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Fri, 23 Jul 2004 07:00:22 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2004-07-23T07:00:22Z</dc:date>
    <item>
      <title>trimming syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339653#M190470</link>
      <description>I have mail.log and syslog.log with data going back to 2002. What is the safest way of trimming these logs without impacting my system?</description>
      <pubDate>Fri, 23 Jul 2004 06:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339653#M190470</guid>
      <dc:creator>frederick hannah</dc:creator>
      <dc:date>2004-07-23T06:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: trimming syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339654#M190471</link>
      <description>Use SAM - under routine tasks, there's a log trimming facility that will trim them down to a specified size.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 23 Jul 2004 07:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339654#M190471</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-07-23T07:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: trimming syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339655#M190472</link>
      <description>Hi,&lt;BR /&gt;Another command line option ...&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /var/adm/syslog/syslog.log&lt;BR /&gt;# &amp;gt; /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;This will empty the file completely.&lt;BR /&gt;&lt;BR /&gt;If you want to trimm the file percentage wise SAM is an better option.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 23 Jul 2004 07:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339655#M190472</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-07-23T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: trimming syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339656#M190473</link>
      <description>...or if you just want the last xxx number of lines..you could:&lt;BR /&gt;&lt;BR /&gt;tail -500 /var/adm/syslog/syslog.log &amp;gt; /var/adm/syslog/syslog.tmp&lt;BR /&gt;mv /var/adm/syslog/syslog.tmp /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Simple tail out and move back....but the 'Safest' is what Pete first mentioned...use SAM.&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2004 07:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339656#M190473</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2004-07-23T07:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: trimming syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339657#M190474</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want you can save the file with a different name before emptying it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jul 2004 07:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339657#M190474</guid>
      <dc:creator>Shaikh Imran</dc:creator>
      <dc:date>2004-07-23T07:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: trimming syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339658#M190475</link>
      <description>It seems SAM is the best way to go. Thanks for the quick response.</description>
      <pubDate>Fri, 23 Jul 2004 07:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trimming-syslogs/m-p/3339658#M190475</guid>
      <dc:creator>frederick hannah</dc:creator>
      <dc:date>2004-07-23T07:18:35Z</dc:date>
    </item>
  </channel>
</rss>

