<?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: Remove specific error messages from syslog.log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335376#M683629</link>
    <description>Hi Ryan:&lt;BR /&gt;&lt;BR /&gt;Another way you might want to reduce the size of your 'syslog.log' is to _not_ record too much information in the first place.  Perhaps that is one issue you have.  For instance, you may be retaining part of the previous log with 'PREV_OLDSYSLOG_LINES' or you may have debugging log levels set when you no longer need them.&lt;BR /&gt;&lt;BR /&gt;You can also configure your logging to keep a message class in a separate file other than 'syslog'.&lt;BR /&gt;&lt;BR /&gt;Have a look at the 'syslogd(1M)' manpages for specific details and examples.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60130/syslogd.1M.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60130/syslogd.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 12 Jan 2009 10:31:15 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-01-12T10:31:15Z</dc:date>
    <item>
      <title>Remove specific error messages from syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335374#M683627</link>
      <description>Hi. I trying to find a way to reduce the size of syslog.log by removing certain error messages in the log.&lt;BR /&gt;&lt;BR /&gt;Will it be possible to do this by writing a script which will search for the messages and then cut those messages from syslog.log?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 12 Jan 2009 03:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335374#M683627</guid>
      <dc:creator>Ryan Bernard</dc:creator>
      <dc:date>2009-01-12T03:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific error messages from syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335375#M683628</link>
      <description>Cutting out specific lines will require a program. Scripting can use tools like awk, sed and grep ot filter important messages. However, it is too complex to strip lines from an active file like syslog.log. Instead, you can filter syslog into a smaller file and refer to that file for the interesting messages. AS for syslog's size, every Unix system must have a syslog managament tool. It will grow without bounds so it must be checked weekly and when it gets to be dozens of MB in size, copy it, zero the syslog file,&lt;BR /&gt;then compress the copy.&lt;BR /&gt; &lt;BR /&gt;Here is a quick method to filter intersting messages:&lt;BR /&gt; &lt;BR /&gt;grep -ie fail -e crit -e error -e disable -e lock /var/adm/syslog/syslog.log&lt;BR /&gt; &lt;BR /&gt;Another method to analyze syslog is to look for repeating messages. This will count the number of times the same message is recorded in syslog:&lt;BR /&gt; &lt;BR /&gt;MYHOST=$(hostname)&lt;BR /&gt;cat /var/adm/syslog/syslog.log \&lt;BR /&gt;      | sed -e "s/^.*$MYHOST//" -e 's/\[[0-9]*\]//' \&lt;BR /&gt;      | grep -v "above message repeats" \&lt;BR /&gt;      | sort \&lt;BR /&gt;      | uniq -c \&lt;BR /&gt;      | sort -rn&lt;BR /&gt; &lt;BR /&gt;The above script will point out messages that occur over and over.</description>
      <pubDate>Mon, 12 Jan 2009 04:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335375#M683628</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-01-12T04:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific error messages from syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335376#M683629</link>
      <description>Hi Ryan:&lt;BR /&gt;&lt;BR /&gt;Another way you might want to reduce the size of your 'syslog.log' is to _not_ record too much information in the first place.  Perhaps that is one issue you have.  For instance, you may be retaining part of the previous log with 'PREV_OLDSYSLOG_LINES' or you may have debugging log levels set when you no longer need them.&lt;BR /&gt;&lt;BR /&gt;You can also configure your logging to keep a message class in a separate file other than 'syslog'.&lt;BR /&gt;&lt;BR /&gt;Have a look at the 'syslogd(1M)' manpages for specific details and examples.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60130/syslogd.1M.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60130/syslogd.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 12 Jan 2009 10:31:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335376#M683629</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-01-12T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific error messages from syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335377#M683630</link>
      <description>Thanks to all for your advice. &lt;BR /&gt;&lt;BR /&gt;Currently there is a error msg that keep appearing in syslog.log. This error msg is harmless and can be disregard.&lt;BR /&gt;&lt;BR /&gt;If removing this error message from syslog.log is too complex, is there anyway we can filter the error coming in, such as telling the server that it can disregard this particular error msg?</description>
      <pubDate>Wed, 14 Jan 2009 14:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335377#M683630</guid>
      <dc:creator>Ryan Bernard</dc:creator>
      <dc:date>2009-01-14T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific error messages from syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335378#M683631</link>
      <description>Hi Ryan:&lt;BR /&gt;&lt;BR /&gt;If the message is "harmless" but "annoying" you can modify your '/etc/rc.config.d/syslogd' to enable the facility and priority logging with the message.  Then, you may be able to explictly reconfigure '/etc/syslog.conf' to ignore the message.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 14 Jan 2009 14:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335378#M683631</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-01-14T14:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific error messages from syslog.log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335379#M683632</link>
      <description>What is the error message you are getting ?</description>
      <pubDate>Wed, 14 Jan 2009 14:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-specific-error-messages-from-syslog-log/m-p/4335379#M683632</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-01-14T14:57:17Z</dc:date>
    </item>
  </channel>
</rss>

