<?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: purging syslog.log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802596#M266791</link>
    <description>Hi,&lt;BR /&gt;if you want to rotate the syslog files, you can restart the syslogd daemon:&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;OLDsyslog.log will be remove, syslog.log will move to OLDsyslog.log.&lt;BR /&gt;&lt;BR /&gt;Enrico</description>
    <pubDate>Thu, 08 Jun 2006 09:43:03 GMT</pubDate>
    <dc:creator>Enrico P.</dc:creator>
    <dc:date>2006-06-08T09:43:03Z</dc:date>
    <item>
      <title>purging syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802595#M266790</link>
      <description>Hi people, well my syslog.log has become really big, so how do i go about purging it. Should i just rm it and the next entry in it will re generate it???.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 08 Jun 2006 09:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802595#M266790</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-06-08T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: purging syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802596#M266791</link>
      <description>Hi,&lt;BR /&gt;if you want to rotate the syslog files, you can restart the syslogd daemon:&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;OLDsyslog.log will be remove, syslog.log will move to OLDsyslog.log.&lt;BR /&gt;&lt;BR /&gt;Enrico</description>
      <pubDate>Thu, 08 Jun 2006 09:43:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802596#M266791</guid>
      <dc:creator>Enrico P.</dc:creator>
      <dc:date>2006-06-08T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: purging syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802597#M266792</link>
      <description>Khilari,&lt;BR /&gt;&lt;BR /&gt;Copy it first to save location&lt;BR /&gt;# cp /var/adm/syslog/syslog.log /tmp/syslog.old&lt;BR /&gt;# cp /dev/null /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 08 Jun 2006 09:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802597#M266792</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-06-08T09:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: purging syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802598#M266793</link>
      <description>The syslog.log is just 1 of the log files to be aware of - there are others that grow without bounds unless they are managed in some way.&lt;BR /&gt;&lt;BR /&gt;One tool available on the &lt;A href="http://gate.cs.utah.edu" target="_blank"&gt;http://gate.cs.utah.edu&lt;/A&gt; site is "logrotate"&lt;BR /&gt;&lt;BR /&gt;You can input the names of the logfiles, how oftern to rotate, how many copies to keep, if you want to roatate on file size, etc.&lt;BR /&gt;&lt;BR /&gt;SAM is avail to purge log files as well but this reuires manual intervention.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jun 2006 09:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802598#M266793</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-06-08T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: purging syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802599#M266794</link>
      <description>Khilari,&lt;BR /&gt;&lt;BR /&gt;To prevent this from happening in the future, you could cron something like the following to run just before midnight:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;set -u&lt;BR /&gt;DATE=`date +%Y%m%d`&lt;BR /&gt;###############################&lt;BR /&gt;# syslog&lt;BR /&gt;###############################&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;rm syslog.yester.log&lt;BR /&gt;cp syslog.log syslog.$DATE.log&lt;BR /&gt;ln -s syslog.$DATE.log syslog.yester.log&lt;BR /&gt;cat /dev/null &amp;gt; syslog.log&lt;BR /&gt;find /var/adm/syslog -name 'syslog.*.log' -mtime +90 -exec rm -f {} \;&lt;BR /&gt;&lt;BR /&gt;This way, you have one syslog file per day, and syslog.yester.log is a symlink to yesterday's log, which is useful in scripts and command aliases (I have an alias which does a more on syslog.yester.log and syslog.log).  If you find you have too many files or too much space is being taken up, you may scale back on the 90-day retention, or compress logsfiles.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 08 Jun 2006 10:08:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802599#M266794</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-08T10:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: purging syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802600#M266795</link>
      <description>Checking the contents of the syslog should be part of your daily sys admin duties. Once you have checked it, go into SAM -&amp;gt; routine tasks -&amp;gt; system log files and trim the syslog to its recommended size. In reality, this will create a trimmed file of the recommended size and empty the syslog.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 08 Jun 2006 10:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/purging-syslog-log/m-p/3802600#M266795</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-06-08T10:20:11Z</dc:date>
    </item>
  </channel>
</rss>

