<?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: syslog in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791732#M265152</link>
    <description>For me, at least, there are a lot of things I don't care about in syslog.  I have a script that calls 'sed' to strip out irrelevant details.&lt;BR /&gt;&lt;BR /&gt;The sequence that seems to work well is&lt;BR /&gt;&lt;BR /&gt;#syslog.sed &amp;gt; syslog&lt;DATESTAMP&gt;.sed&lt;BR /&gt;#cat /dev/null &amp;gt; syslog.log&lt;BR /&gt;&lt;BR /&gt;If there aren't any unuseful things in the log, just copy syslog.log to a datesamp file and cat the null onto it.&lt;/DATESTAMP&gt;</description>
    <pubDate>Mon, 22 May 2006 13:58:24 GMT</pubDate>
    <dc:creator>Michael D. Zorn</dc:creator>
    <dc:date>2006-05-22T13:58:24Z</dc:date>
    <item>
      <title>syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791724#M265144</link>
      <description>dears,&lt;BR /&gt;&lt;BR /&gt;how to change syslog from syslog.log to oldsyslog.log file what one more thing what are the log files are to be monitored &lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;siva</description>
      <pubDate>Sat, 20 May 2006 14:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791724#M265144</guid>
      <dc:creator>siva baskaran</dc:creator>
      <dc:date>2006-05-20T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791725#M265145</link>
      <description>Do you want to "rotate" the syslog.log file and reduce the size?&lt;BR /&gt;&lt;BR /&gt;The most easy way is to use SAM -&amp;gt; routine tasks and "trim" the file. You also can copy the content to another file (if needed) and clear the content of the original file with any kind of unix tools, e.g. "cp syslog.log myoldsyslog.log" and "cat /dev/null &amp;gt;syslog.log"</description>
      <pubDate>Sat, 20 May 2006 15:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791725#M265145</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-05-20T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791726#M265146</link>
      <description>BTW, in the SAM-&amp;gt; routine tasks -&amp;gt; trim area you'll find a list of all relevant log files.&lt;BR /&gt;(e.g. syslog, software distributor, cron, reboot, ...)</description>
      <pubDate>Sat, 20 May 2006 15:31:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791726#M265146</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-05-20T15:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791727#M265147</link>
      <description>Hi Siva,&lt;BR /&gt;&lt;BR /&gt;The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://packages.debian.org/cgi-bin/download.pl?arch=hppa&amp;amp;file=pool%2Fmain%2Fl%2Flogrotate%2Flogrotate_3.7.1-3_hppa.deb&amp;amp;md5sum=b4ff419979984d0d9778aff1733a5330&amp;amp;arch=hppa&amp;amp;type=main" target="_blank"&gt;http://packages.debian.org/cgi-bin/download.pl?arch=hppa&amp;amp;file=pool%2Fmain%2Fl%2Flogrotate%2Flogrotate_3.7.1-3_hppa.deb&amp;amp;md5sum=b4ff419979984d0d9778aff1733a5330&amp;amp;arch=hppa&amp;amp;type=main&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck&lt;BR /&gt;&lt;BR /&gt;Darrel&lt;BR /&gt;</description>
      <pubDate>Sat, 20 May 2006 17:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791727#M265147</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2006-05-20T17:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791728#M265148</link>
      <description>Log files to monitor (check if any error message is there):&lt;BR /&gt;&lt;BR /&gt;Syslog /var/adm/syslog/syslog.log  &lt;BR /&gt;Old Syslog /var/adm/syslog/OLDsyslog.log  &lt;BR /&gt;Console messages dmesg  (its a command)&lt;BR /&gt;Stm chasis code error log /var/stm/log/os/ccerrlog  &lt;BR /&gt;Rc script log /etc/rc.log  &lt;BR /&gt;Old rc script log /etc/rc.log.old  &lt;BR /&gt;EMS events log /var/opt/resmon/log/event.log</description>
      <pubDate>Sat, 20 May 2006 22:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791728#M265148</guid>
      <dc:creator>Mridul Shrivastava</dc:creator>
      <dc:date>2006-05-20T22:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791729#M265149</link>
      <description>Hi,&lt;BR /&gt;The simplest way if you have enough space to copy the syslog file is&lt;BR /&gt;cd /var/adm/syslog&lt;BR /&gt;cp syslog.log oldsyslog.log&lt;BR /&gt;cat /dev/null &amp;gt; syslog.log&lt;BR /&gt;&lt;BR /&gt;If you do not have enough space to have the original syslog file + copy of syslogfile(which you will name as oldsyslog), then stop the syslog daemon, mv the syslogfile &lt;BR /&gt;You can stop the syslog daemon as &lt;BR /&gt;/sbin/init.d/syslogd stop&lt;BR /&gt;ls -l syslog.log [ Note the permissions and ownership of the syslog.log file ]&lt;BR /&gt;mv /var/adm/syslog/syslog.log /var/adm/syslog/oldsyslog.log&lt;BR /&gt;touch syslog.log&lt;BR /&gt;Use chmod and chown to set the permission and ownership of the syslog file as original&lt;BR /&gt;/sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;The various log file you should monitor are&lt;BR /&gt;/var/adm/messages&lt;BR /&gt;/etc/rc.log [ Usually only after a system startup ]&lt;BR /&gt;/var/adm/syslog/syslog.log&lt;BR /&gt;Also check your /etc/syslog.conf to see if its been configured to log to any other files than syslog.log&lt;BR /&gt;Also its worth writing a small script which will monitor thr filesystem usage and mail you whenever any critical filesystems/any filesystem is greater then say 90%&lt;BR /&gt;You should also check the mails to root using mailx&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Sun, 21 May 2006 04:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791729#M265149</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-21T04:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791730#M265150</link>
      <description>&lt;BR /&gt;Hi Siva baskaran,&lt;BR /&gt;&lt;BR /&gt;You can also copy the current syslog file to diff filename( oldsyslog.log) when the server is running and latter you can nullify the syslog.log file. ( by #  &amp;gt; syslog.log )&lt;BR /&gt;&lt;BR /&gt;Normally this happens during a reboot. ie, syslog will be coppiedn as OLDsyslog.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Sun, 21 May 2006 08:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791730#M265150</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2006-05-21T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791731#M265151</link>
      <description>And the other important logs to monitor could be&lt;BR /&gt;&lt;BR /&gt;run control  script log --&amp;gt;&lt;BR /&gt;/etc/rc.log &lt;BR /&gt;&lt;BR /&gt;EMS events log-- /var/opt/resmon/log/event.log&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;/etc/shutdownlog&lt;BR /&gt;&lt;BR /&gt;also sulog --&amp;gt; for security reasons&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Sun, 21 May 2006 09:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791731#M265151</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2006-05-21T09:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791732#M265152</link>
      <description>For me, at least, there are a lot of things I don't care about in syslog.  I have a script that calls 'sed' to strip out irrelevant details.&lt;BR /&gt;&lt;BR /&gt;The sequence that seems to work well is&lt;BR /&gt;&lt;BR /&gt;#syslog.sed &amp;gt; syslog&lt;DATESTAMP&gt;.sed&lt;BR /&gt;#cat /dev/null &amp;gt; syslog.log&lt;BR /&gt;&lt;BR /&gt;If there aren't any unuseful things in the log, just copy syslog.log to a datesamp file and cat the null onto it.&lt;/DATESTAMP&gt;</description>
      <pubDate>Mon, 22 May 2006 13:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791732#M265152</guid>
      <dc:creator>Michael D. Zorn</dc:creator>
      <dc:date>2006-05-22T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791733#M265153</link>
      <description>The logrotate utility is a very handy tool for keeping your log files in check - otherwise they can grow without bounds.&lt;BR /&gt;&lt;BR /&gt;The syslog.log file gets changed to OLDsyslog.log when the system is rebooted - manually or the result of a crash. Look into the /sbin/init.d/syslogd file. &lt;BR /&gt;&lt;BR /&gt;/var/adm/wtmp&lt;BR /&gt;/var/adm/cron/log&lt;BR /&gt;/var/adm/snmpd.log&lt;BR /&gt;/var/adm/sulog&lt;BR /&gt;/var/adm/syslog/sudo.log&lt;BR /&gt;/var/adm/syslog/xferlog&lt;BR /&gt;/var/adm/syslog/mail.log&lt;BR /&gt;/var/adm/syslog/syslog.log&lt;BR /&gt;/var/adm/syslog/ssh.log&lt;BR /&gt;&lt;BR /&gt;Here is an incomplete list. The logs you rotate will depend on your environment. Example, not everybody runs Secure Shell so there will not be a ssh.log file. Also look into the EMS logs, the rc.log, etc.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 May 2006 14:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog/m-p/3791733#M265153</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-05-22T14:12:48Z</dc:date>
    </item>
  </channel>
</rss>

