<?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: to clear syslogs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145774#M686027</link>
    <description>You can also run the syslogd stop/start script manually.  Running this script will stop the syslog daemon, copy /var/adm/syslog/syslog.log to /var/adm/syslog/OLDsyslog.log, clean out syslog.log and then restart the syslog daemon.&lt;BR /&gt;&lt;BR /&gt;After you run this, you can always rename OLDsyslog.log to something else if you desire.&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/syslogd stop&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/syslogd start&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Dec 2008 19:22:00 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2008-12-10T19:22:00Z</dc:date>
    <item>
      <title>to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145767#M686020</link>
      <description>how to clear the syslogs&lt;BR /&gt;which is stored in /var/adm/syslog/syslog/log.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and please tell me the command to clear the logs</description>
      <pubDate>Wed, 10 Dec 2008 18:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145767#M686020</guid>
      <dc:creator>Veera.Rao</dc:creator>
      <dc:date>2008-12-10T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145768#M686021</link>
      <description>Usually a reboot of the system causes the contents of syslog to be moved to OLDsyslog.log and syslog itself to be nulled out.  If you wish to do that without rebooting, simply do:&lt;BR /&gt;&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log&lt;BR /&gt;&amp;gt; /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;That will save syslog and then null it out for you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 10 Dec 2008 19:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145768#M686021</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-12-10T19:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145769#M686022</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;can i do it without rebooting the server</description>
      <pubDate>Wed, 10 Dec 2008 19:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145769#M686022</guid>
      <dc:creator>Veera.Rao</dc:creator>
      <dc:date>2008-12-10T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145770#M686023</link>
      <description>This could be done without reboot&lt;BR /&gt;&lt;BR /&gt;Take backup of syslog.log if required&lt;BR /&gt;Trim it..&lt;BR /&gt;&amp;gt;/var/adm/syslog/syslog.log</description>
      <pubDate>Wed, 10 Dec 2008 19:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145770#M686023</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2008-12-10T19:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145771#M686024</link>
      <description>can you please tell me how to trim.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Dec 2008 19:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145771#M686024</guid>
      <dc:creator>Veera.Rao</dc:creator>
      <dc:date>2008-12-10T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145772#M686025</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;you *don't* want to move ('mv') the log file; rather you want to *copy* it and then truncate the original.  This keeps logging working into the originally named file and not the renamed backup!&lt;BR /&gt;&lt;BR /&gt;# cp /var/adm/syslog/syslog.log /var/adm/syslog/syslog.log.old&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Another way to do this is to do:&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/syslogd stop&lt;BR /&gt;# /sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Dec 2008 19:13:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145772#M686025</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-10T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145773#M686026</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;having trimmed a/the syslog-file(s), I recommend to inform a running syslogd about it via&lt;BR /&gt;kill -HUP `cat /var/run/syslog.pid`&lt;BR /&gt;&lt;BR /&gt;You should get an entry in the new base syslog-file from syslog about a restart as well.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 10 Dec 2008 19:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145773#M686026</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-12-10T19:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145774#M686027</link>
      <description>You can also run the syslogd stop/start script manually.  Running this script will stop the syslog daemon, copy /var/adm/syslog/syslog.log to /var/adm/syslog/OLDsyslog.log, clean out syslog.log and then restart the syslog daemon.&lt;BR /&gt;&lt;BR /&gt;After you run this, you can always rename OLDsyslog.log to something else if you desire.&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/syslogd stop&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/syslogd start&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Dec 2008 19:22:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145774#M686027</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-12-10T19:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145775#M686028</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now my server is in production (LIVE).&lt;BR /&gt;&lt;BR /&gt;if i stop and start the below script, is there  any critical for running server.&lt;BR /&gt;kindly confirm and i will be very thankful to you all &lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/syslogd stop&lt;BR /&gt;# /sbin/init.d/syslogd start</description>
      <pubDate>Wed, 10 Dec 2008 22:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145775#M686028</guid>
      <dc:creator>Veera.Rao</dc:creator>
      <dc:date>2008-12-10T22:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145776#M686029</link>
      <description>hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Now my server is in production (LIVE). if i stop and start the below script, is there any critical for running server?&lt;BR /&gt;&lt;BR /&gt;No, this is absolutely safe.  At most you might lose a few seconds of logged information while the 'syslogd' isn't active.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Dec 2008 22:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145776#M686029</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-10T22:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145777#M686030</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Interesting timing for this question :)&lt;BR /&gt;&lt;BR /&gt;I am presenting a world-wide webinar at HP this week. The topics is:&lt;BR /&gt;&lt;BR /&gt;Comparison of log file management tools in&lt;BR /&gt;AIX, HP-UX, Solaris, and Linux&lt;BR /&gt;&lt;BR /&gt;I plan to release a public version of it&lt;BR /&gt;in next several months. It will be on&lt;BR /&gt;my home web page.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Wed, 10 Dec 2008 22:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145777#M686030</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-12-10T22:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: to clear syslogs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145778#M686031</link>
      <description>thanks all for the support</description>
      <pubDate>Wed, 10 Dec 2008 23:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-clear-syslogs/m-p/5145778#M686031</guid>
      <dc:creator>Veera.Rao</dc:creator>
      <dc:date>2008-12-10T23:29:32Z</dc:date>
    </item>
  </channel>
</rss>

