<?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 Cleaning system log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033641#M301828</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My system's /var/adm/syslog/mail.log file was large, I cleared the file with : &amp;gt;mail.log&lt;BR /&gt;&lt;BR /&gt;Is this the correct way of clearing system log files ? Do I need to stop the mail daemon before clearing the logs.</description>
    <pubDate>Sat, 07 Jul 2007 02:23:09 GMT</pubDate>
    <dc:creator>vicky_10_1</dc:creator>
    <dc:date>2007-07-07T02:23:09Z</dc:date>
    <item>
      <title>Cleaning system log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033641#M301828</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My system's /var/adm/syslog/mail.log file was large, I cleared the file with : &amp;gt;mail.log&lt;BR /&gt;&lt;BR /&gt;Is this the correct way of clearing system log files ? Do I need to stop the mail daemon before clearing the logs.</description>
      <pubDate>Sat, 07 Jul 2007 02:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033641#M301828</guid>
      <dc:creator>vicky_10_1</dc:creator>
      <dc:date>2007-07-07T02:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning system log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033642#M301829</link>
      <description>check your previous thread&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1142690" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1142690&lt;/A&gt;</description>
      <pubDate>Sat, 07 Jul 2007 02:45:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033642#M301829</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-07-07T02:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning system log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033643#M301830</link>
      <description>Hi Vicky,&lt;BR /&gt;&lt;BR /&gt;if you decide to clear mail.log remember that this file is locked by syslogd and not by sendmail.&lt;BR /&gt;&lt;BR /&gt;If you check /etc/syslog.conf file you see that mail.log is managed by syslogd.&lt;BR /&gt;&lt;BR /&gt;This test in my machine:&lt;BR /&gt;&lt;BR /&gt;fuser /var/adm/syslog/mail.log&lt;BR /&gt;/var/adm/syslog/mail.log:      584o&lt;BR /&gt;&lt;BR /&gt;ps -ef |grep 584&lt;BR /&gt;    root   584     1  0  Dec  5  ?         0:10 /usr/sbin/syslogd -D&lt;BR /&gt;&lt;BR /&gt;This means that /var/adm/syslog/mail.log is in open state by syslogd daemon.&lt;BR /&gt;&lt;BR /&gt;Following this step to clear mail.log:&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;/sbin/init.d/syslogd stop&lt;BR /&gt;mv mail.log mail.log.old&lt;BR /&gt;touch mail.log&lt;BR /&gt;/sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;If you want to do every time mail.log grow bigger then &lt;SIZE&gt; bytes you can use logrotate utility.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SIZE&gt;</description>
      <pubDate>Sat, 07 Jul 2007 10:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033643#M301830</guid>
      <dc:creator>Fat Scrape</dc:creator>
      <dc:date>2007-07-07T10:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning system log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033644#M301831</link>
      <description>Vicky:&lt;BR /&gt;&lt;BR /&gt;You could also use SAM if it's easier for you.&lt;BR /&gt;Just go to Routine Tasks, then System Lof Files, and should be able to select the logs that you would like to clear.&lt;BR /&gt;Then go to Actions--Trim.&lt;BR /&gt;&lt;BR /&gt;That should take care of that.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;NM</description>
      <pubDate>Wed, 11 Jul 2007 12:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-system-log/m-p/4033644#M301831</guid>
      <dc:creator>NMory</dc:creator>
      <dc:date>2007-07-11T12:33:32Z</dc:date>
    </item>
  </channel>
</rss>

