<?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: customize syslog logging in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582983#M230189</link>
    <description>Yes bill, i am getting messages in /var/adm/syslog/critical.log i have tested this with logger.&lt;BR /&gt;&lt;BR /&gt;i have a line like this:&lt;BR /&gt;*.err;*.crit;*alert;*.emerg     /var/adm/syslog/critical.log&lt;BR /&gt;&lt;BR /&gt;i think this is all i need.&lt;BR /&gt;&lt;BR /&gt;phil</description>
    <pubDate>Thu, 14 Jul 2005 13:57:27 GMT</pubDate>
    <dc:creator>Philip J. Priest_1</dc:creator>
    <dc:date>2005-07-14T13:57:27Z</dc:date>
    <item>
      <title>customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582974#M230180</link>
      <description>I have /etc/syslog.conf like this:&lt;BR /&gt;&lt;BR /&gt;*.err;*.crit;*.emerg    /var/adm/syslog/critical.log&lt;BR /&gt;&lt;BR /&gt;I have a shell script that will parse this file. I am looking for things that would be major problems.&lt;BR /&gt;&lt;BR /&gt;Is this going to give me what im looking for?&lt;BR /&gt;What are other sysadm's doing for something like this?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;Phil</description>
      <pubDate>Thu, 14 Jul 2005 12:37:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582974#M230180</guid>
      <dc:creator>Philip J. Priest_1</dc:creator>
      <dc:date>2005-07-14T12:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582975#M230181</link>
      <description>in syslog.conf add this line&lt;BR /&gt;local7 /directory/filename (Where ou want to write)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And restart syslogd daemon&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Thu, 14 Jul 2005 12:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582975#M230181</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2005-07-14T12:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582976#M230182</link>
      <description>Uday what is local7?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;Phil</description>
      <pubDate>Thu, 14 Jul 2005 12:48:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582976#M230182</guid>
      <dc:creator>Philip J. Priest_1</dc:creator>
      <dc:date>2005-07-14T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582977#M230183</link>
      <description>That is to capture customized meassages,  a varialble from  [1-7] can be used. man syslogd for more information&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Thu, 14 Jul 2005 12:58:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582977#M230183</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2005-07-14T12:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582978#M230184</link>
      <description>Phil,&lt;BR /&gt;&lt;BR /&gt;even better, check this page about the syslog.conf details explained a little more detailed than the syslogd man page:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.scrambler.net/syslog.htm" target="_blank"&gt;http://www.scrambler.net/syslog.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2005 13:01:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582978#M230184</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-14T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582979#M230185</link>
      <description>It should be...&lt;BR /&gt;&lt;BR /&gt;local7.info  /outputdir/filename&lt;BR /&gt;local7.warn  /outputdir/filename&lt;BR /&gt;local7.err .... like this you can add &lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2005 13:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582979#M230185</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2005-07-14T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582980#M230186</link>
      <description>local0-7 are facilitys in syslog.&lt;BR /&gt;&lt;BR /&gt;So, developers can write their code to log to them - instead of the default syslog...&lt;BR /&gt;&lt;BR /&gt;Example, ftp can be set to log to local5:&lt;BR /&gt;&lt;BR /&gt;local5.info;mail.none  /var/adm/syslog/ftpd.log&lt;BR /&gt;&lt;BR /&gt;ssh can go to local6:&lt;BR /&gt;&lt;BR /&gt;local6.debug    /var/adm/syslog/sshd.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;Codes are in /usr/include/syslog.h&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2005 13:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582980#M230186</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-07-14T13:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582981#M230187</link>
      <description>Geoff, how do i customize the localX?  i want to know in my log file anything of error and above.&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;Phil</description>
      <pubDate>Thu, 14 Jul 2005 13:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582981#M230187</guid>
      <dc:creator>Philip J. Priest_1</dc:creator>
      <dc:date>2005-07-14T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582982#M230188</link>
      <description>If you are planning to use one of the locals then the application writing to syslog has to know to use that local number.&lt;BR /&gt;&lt;BR /&gt;For example, I've configured network switches and firewalls to write throught the syslog facility on HPUX using one of the locals,  I have to tell the switch [in its syslog config section] to use local0 and the IP address of the 9000 and to log everything at a warning level or higher.&lt;BR /&gt;&lt;BR /&gt;I can then configure syslogd to log all events for local0 (the network stuff) to /var/adm/syslog/network_stuff.log.&lt;BR /&gt;&lt;BR /&gt;From your original question, it sounds like you are trying to get messages that would normally go to syslog but with a warning level or above to go to a special file that your script can parse.  If so then you wouldn't use the local stuff, but would follow your original approach.&lt;BR /&gt;&lt;BR /&gt;It wasn't clear from your message if you were getting entries in critical.log or not.&lt;BR /&gt;It sounded like you were but wanted to know which messages should cause you concern.  Is that correct?</description>
      <pubDate>Thu, 14 Jul 2005 13:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582982#M230188</guid>
      <dc:creator>Bill Costigan</dc:creator>
      <dc:date>2005-07-14T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582983#M230189</link>
      <description>Yes bill, i am getting messages in /var/adm/syslog/critical.log i have tested this with logger.&lt;BR /&gt;&lt;BR /&gt;i have a line like this:&lt;BR /&gt;*.err;*.crit;*alert;*.emerg     /var/adm/syslog/critical.log&lt;BR /&gt;&lt;BR /&gt;i think this is all i need.&lt;BR /&gt;&lt;BR /&gt;phil</description>
      <pubDate>Thu, 14 Jul 2005 13:57:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582983#M230189</guid>
      <dc:creator>Philip J. Priest_1</dc:creator>
      <dc:date>2005-07-14T13:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: customize syslog logging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582984#M230190</link>
      <description>That's good.  I think you should be all set.&lt;BR /&gt;As far as the script, if you are going to do some sort of alerting when you get a message, I would start off alerting for every message and then modify the script to ignore just those messages that you determine to be not important.&lt;BR /&gt;&lt;BR /&gt;That way you will not miss a critical message that you forgot to look for in your script.</description>
      <pubDate>Fri, 15 Jul 2005 05:09:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customize-syslog-logging/m-p/3582984#M230190</guid>
      <dc:creator>Bill Costigan</dc:creator>
      <dc:date>2005-07-15T05:09:13Z</dc:date>
    </item>
  </channel>
</rss>

