<?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: about syslog in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702163#M58161</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use swatch for this purpose of parsing the syslog file for alerting.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oit.ucsb.edu/~eta/swatch/" target="_blank"&gt;http://www.oit.ucsb.edu/~eta/swatch/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The description is available at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oit.ucsb.edu/~eta/swatch/README" target="_blank"&gt;http://www.oit.ucsb.edu/~eta/swatch/README&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Fri, 12 Apr 2002 06:30:15 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-04-12T06:30:15Z</dc:date>
    <item>
      <title>about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702162#M58160</link>
      <description>i wanna know which messages in syslog.log that i should care,is there some shell script could check syslog automatic?</description>
      <pubDate>Fri, 12 Apr 2002 06:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702162#M58160</guid>
      <dc:creator>iambluegary</dc:creator>
      <dc:date>2002-04-12T06:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702163#M58161</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use swatch for this purpose of parsing the syslog file for alerting.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oit.ucsb.edu/~eta/swatch/" target="_blank"&gt;http://www.oit.ucsb.edu/~eta/swatch/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The description is available at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oit.ucsb.edu/~eta/swatch/README" target="_blank"&gt;http://www.oit.ucsb.edu/~eta/swatch/README&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 12 Apr 2002 06:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702163#M58161</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-12T06:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702164#M58162</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First of all, you can decide what comes in the syslog, see man syslog for details and /etc/syslog.conf.&lt;BR /&gt;I don't have a script available but am sure someone else will.&lt;BR /&gt;&lt;BR /&gt;HtH, Emiel</description>
      <pubDate>Fri, 12 Apr 2002 06:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702164#M58162</guid>
      <dc:creator>Emiel van Grinsven</dc:creator>
      <dc:date>2002-04-12T06:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702165#M58163</link>
      <description>Found at&lt;BR /&gt;&lt;A href="http://www.samag.com/documents/s=1146/sam0109m/0109m_l1.htm" target="_blank"&gt;http://www.samag.com/documents/s=1146/sam0109m/0109m_l1.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/awk -f&lt;BR /&gt;#&lt;BR /&gt;# looks for basic syslog items: failed logins, block connects (via tcpd)&lt;BR /&gt;# and bad su's (confirmed in sulog)&lt;BR /&gt;#&lt;BR /&gt;# copyright(c) 2001 jose nazario&lt;BR /&gt;#&lt;BR /&gt;BEGIN {&lt;BR /&gt;  print "\n\tChecking the syslog"&lt;BR /&gt;  print "\t-------------------"&lt;BR /&gt;  failed=0&lt;BR /&gt;  blocked=0&lt;BR /&gt;  badsu=0&lt;BR /&gt;  notmine=0&lt;BR /&gt;  shellcode=0&lt;BR /&gt;  binsh=0&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;  if ($5 ~ /login*/) {&lt;BR /&gt;# useful for IRIX&lt;BR /&gt;    if ($6 ~ /failed*/) {&lt;BR /&gt;      print "failed login: "$9"\tat "$1" "$2" "$3" from\t"$7&lt;BR /&gt;      failed=failed+1&lt;BR /&gt;    }&lt;BR /&gt;# useful for Linux&lt;BR /&gt;    if ($0 ~ /LOGIN.FAILURE/) {&lt;BR /&gt;      print "failed login: "$11"\tat "$1" "$2" "$3" from\t"$10&lt;BR /&gt;      failed=failed+1&lt;BR /&gt;    }&lt;BR /&gt;# also useful for Linux&lt;BR /&gt;     if ($0 ~ /FAILED.LOGIN/) {&lt;BR /&gt;       print "failed login: "$10"\tat "$1" "$2" "$3" from\t"$12&lt;BR /&gt;       failed=failed+1&lt;BR /&gt;     }&lt;BR /&gt;  } # end if $5 == login...&lt;BR /&gt;&lt;BR /&gt;#looking for failed sshd1 logins, openssh2 format&lt;BR /&gt;  if ($5~ /sshd*/) {&lt;BR /&gt;    if ($6 == "Failed"){&lt;BR /&gt;      print "failed login: "$9"\tat "$1" "$2" "$3" from\t"$11&lt;BR /&gt;      failed=failed+1&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;# tcp wrappers check&lt;BR /&gt;  if ($6 ~ /refused/) {&lt;BR /&gt;    source=$9&lt;BR /&gt;    printf("blocked %-32s\tto "$5" at\t"$1" "$2" "$3"\n", source)&lt;BR /&gt;    blocked=blocked+1&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;# syslog su checking (backed up in sulog on IRIX, Solaris)&lt;BR /&gt;# IRIX, Solaris, Linux&lt;BR /&gt;  if (($5 ~ /su\[*/) &amp;amp;&amp;amp; ($6 ~ /failed*/)) {&lt;BR /&gt;    badsu=badsu+1&lt;BR /&gt;    printf("failed su from "$10" to "$12" at \t"$1" "$2" "$3"\n")&lt;BR /&gt;  }&lt;BR /&gt;# Linux using PAM (ie RedHat)&lt;BR /&gt;  if (($12 ~ /su/) &amp;amp;&amp;amp; ($7 ~ /failure*/)) {&lt;BR /&gt;    badsu=badsu+1&lt;BR /&gt;    print "failed su from "$8" to "$10" at \t"$1" "$2" "$3&lt;BR /&gt;  }&lt;BR /&gt;# HPUX 10.20&lt;BR /&gt;  if (($6 == "su") &amp;amp;&amp;amp; ($7 == "-")) {&lt;BR /&gt;    badsu=badsu+1&lt;BR /&gt;    print "failed su: "$9" at \t"$1" "$2" "$3&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;# looking for not local syslog messages&lt;BR /&gt;  if ($4 != "$HOSTNAME") {&lt;BR /&gt;    notmine=notmine+1&lt;BR /&gt;    print "nonlocal syslog entry:" &lt;BR /&gt;    print $0 &lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;# looking for possible exloit signatures&lt;BR /&gt;&lt;BR /&gt;# \x90 is x86 only!&lt;BR /&gt;  if ($0 ~ /\x90/) {&lt;BR /&gt;    shellcode=shellcode+1&lt;BR /&gt;    print "----------------- Possible buffer overflow at line "NR&lt;BR /&gt;    print "time: "$1" "$2" "$3" process was "$5&lt;BR /&gt;    }&lt;BR /&gt;  if ($0 ~ /bin.sh/) {&lt;BR /&gt;    binsh=binsh+1&lt;BR /&gt;    print "------------- Possible call to /bin/sh at line "NR&lt;BR /&gt;    print "time: "$1" "$2" "$3" process was "$5&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;END {&lt;BR /&gt;print "\t----------------------------------------"&lt;BR /&gt;printf("\trecords processed:\t%15d\n", NR)&lt;BR /&gt;printf("\tnumber of failed logins:%15d\n", failed)&lt;BR /&gt;printf("\tblocked connections:\t%15d\n", blocked)&lt;BR /&gt;printf("\tnumber of failed su's:\t%15d\n", badsu)&lt;BR /&gt;printf("\tlines not from localhost:%15d\n", notmine)&lt;BR /&gt;printf("\tpossible shellcode found:%15d\n", shellcode)&lt;BR /&gt;printf("\tpossible /bin/sh calls:%15d\n\n", binsh)&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Apr 2002 06:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702165#M58163</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-04-12T06:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702166#M58164</link>
      <description>Hi Bluegary,&lt;BR /&gt;&lt;BR /&gt;you could simply use the grep- command to find keywords in your syslog- file:&lt;BR /&gt;&lt;BR /&gt;grep -i keyword /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;the -i option ignores case sensitivity. You could make a cron job which is run at desired times, which would send you a mail to roots mail account.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 12 Apr 2002 06:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702166#M58164</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-04-12T06:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702167#M58165</link>
      <description>i know about grep,i just wanna to know which kind of message i should take care of.&lt;BR /&gt;my syslog.conf is :mail.debug              /var/adm/syslog/mail.log&lt;BR /&gt;*.info;mail.none        /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert                 /dev/console&lt;BR /&gt;*.alert                 root&lt;BR /&gt;*.emerg                 *&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Apr 2002 07:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702167#M58165</guid>
      <dc:creator>iambluegary</dc:creator>
      <dc:date>2002-04-12T07:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702168#M58166</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;First let the system run for a while and see what kind of error come often, then make sure you recieve aknowledgement when something happens. You can always grep for [error] ofcourse and warning etcetera.&lt;BR /&gt;&lt;BR /&gt;GL, E.</description>
      <pubDate>Fri, 12 Apr 2002 07:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702168#M58166</guid>
      <dc:creator>Emiel van Grinsven</dc:creator>
      <dc:date>2002-04-12T07:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702169#M58167</link>
      <description>Hi,&lt;BR /&gt;It is a very common thing put a crontab :&lt;BR /&gt;&lt;BR /&gt;00,10,20,30,40,50 * * * * /usr/sbin/dmesg - &amp;gt; /var/adm/messages&lt;BR /&gt;&lt;BR /&gt;With it, you can make a script that check the content of tho output file " messages ", looking for keywords or errors.&lt;BR /&gt;&lt;BR /&gt;I hope this help.&lt;BR /&gt;&lt;BR /&gt;Juanma.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Apr 2002 07:53:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702169#M58167</guid>
      <dc:creator>Juan Manuel López</dc:creator>
      <dc:date>2002-04-12T07:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702170#M58168</link>
      <description>Are you not happy with the answers?</description>
      <pubDate>Fri, 12 Apr 2002 08:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702170#M58168</guid>
      <dc:creator>Emiel van Grinsven</dc:creator>
      <dc:date>2002-04-12T08:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702171#M58169</link>
      <description>As my pal said, Are you not happy with the answers ?&lt;BR /&gt;Please, do not forget to give us points.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Juanma.</description>
      <pubDate>Fri, 12 Apr 2002 08:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702171#M58169</guid>
      <dc:creator>Juan Manuel López</dc:creator>
      <dc:date>2002-04-12T08:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702172#M58170</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think iambluegary is in the process of installing swatch, like Steven Sim Kok Leong recommended.  &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mateja</description>
      <pubDate>Fri, 12 Apr 2002 08:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702172#M58170</guid>
      <dc:creator>Mateja Bezjak</dc:creator>
      <dc:date>2002-04-12T08:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702173#M58171</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You might as well think about using HP-ITO or a program lik Big Brother&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bb4.com/" target="_blank"&gt;http://bb4.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;C.</description>
      <pubDate>Fri, 12 Apr 2002 08:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702173#M58171</guid>
      <dc:creator>Clemens van Everdingen</dc:creator>
      <dc:date>2002-04-12T08:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: about syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702174#M58172</link>
      <description>You're probably right, it was meant mostly funny :-)&lt;BR /&gt;&lt;BR /&gt;grtz, E.</description>
      <pubDate>Fri, 12 Apr 2002 08:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-syslog/m-p/2702174#M58172</guid>
      <dc:creator>Emiel van Grinsven</dc:creator>
      <dc:date>2002-04-12T08:24:09Z</dc:date>
    </item>
  </channel>
</rss>

