<?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 How to get syslog statistics in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511367#M895510</link>
    <description>I would like to make one command to get statistics of how many users sending mails within certain timing period.&lt;BR /&gt;&lt;BR /&gt;the syslog looks like:&lt;BR /&gt;--------------&lt;BR /&gt;Mar 29 15:10:20 6C: sendmail[10960]: PAA10958: to=&lt;VVVV&gt;, delay=00:00:01, xdelay=00:00:01, mailer=forgnout, relay=mx.mail.rcn.net.  stat=Sent (OK id=14iilq-0005sP-00@mx06.mrf.mail.rcn.net)&lt;BR /&gt;&lt;BR /&gt;Mar 29 15:12:53 6C:IRIS sendmail[10962]: PAA10962: from=&lt;DOCOOK&gt;, size&lt;BR /&gt;=1297, class=0, pri=31297, nrcpts=1, msgid=&lt;FFFB1A2E12EED311906900508BC217410289&gt;&lt;/FFFB1A2E12EED311906900508BC217410289&gt;ED98@iupuimbx04.uits.iupui.edu&amp;gt;, proto=ESMTP, relay=hermes.iupui.edu [134.68.220&lt;BR /&gt;-------------------&lt;BR /&gt;&lt;BR /&gt;I can use 'grep -c username SYSLOG' to find out the total number, but don't know how to use the time periods, such within one day, last two hours, etc.&lt;BR /&gt;&lt;BR /&gt;Your help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Steven&lt;/DOCOOK&gt;&lt;/VVVV&gt;</description>
    <pubDate>Thu, 29 Mar 2001 20:19:34 GMT</pubDate>
    <dc:creator>Steven Chen_1</dc:creator>
    <dc:date>2001-03-29T20:19:34Z</dc:date>
    <item>
      <title>How to get syslog statistics</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511367#M895510</link>
      <description>I would like to make one command to get statistics of how many users sending mails within certain timing period.&lt;BR /&gt;&lt;BR /&gt;the syslog looks like:&lt;BR /&gt;--------------&lt;BR /&gt;Mar 29 15:10:20 6C: sendmail[10960]: PAA10958: to=&lt;VVVV&gt;, delay=00:00:01, xdelay=00:00:01, mailer=forgnout, relay=mx.mail.rcn.net.  stat=Sent (OK id=14iilq-0005sP-00@mx06.mrf.mail.rcn.net)&lt;BR /&gt;&lt;BR /&gt;Mar 29 15:12:53 6C:IRIS sendmail[10962]: PAA10962: from=&lt;DOCOOK&gt;, size&lt;BR /&gt;=1297, class=0, pri=31297, nrcpts=1, msgid=&lt;FFFB1A2E12EED311906900508BC217410289&gt;&lt;/FFFB1A2E12EED311906900508BC217410289&gt;ED98@iupuimbx04.uits.iupui.edu&amp;gt;, proto=ESMTP, relay=hermes.iupui.edu [134.68.220&lt;BR /&gt;-------------------&lt;BR /&gt;&lt;BR /&gt;I can use 'grep -c username SYSLOG' to find out the total number, but don't know how to use the time periods, such within one day, last two hours, etc.&lt;BR /&gt;&lt;BR /&gt;Your help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Steven&lt;/DOCOOK&gt;&lt;/VVVV&gt;</description>
      <pubDate>Thu, 29 Mar 2001 20:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511367#M895510</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2001-03-29T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get syslog statistics</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511368#M895511</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;    You can use both sed and awk for this pupose.&lt;BR /&gt;&lt;BR /&gt;Eg. # grep username SYSLOG &amp;gt; /tmp/sendmail&lt;BR /&gt;      # sed -n '/Mar 25/,/Mar 26/p' /tmp/sendmail | wc -l&lt;BR /&gt;&lt;BR /&gt;I hope this will help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Mar 2001 23:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511368#M895511</guid>
      <dc:creator>Rajeev Tyagi</dc:creator>
      <dc:date>2001-03-29T23:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get syslog statistics</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511369#M895512</link>
      <description>You may use a perl script called ssl againt mail.log&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;&lt;BR /&gt;Felix</description>
      <pubDate>Fri, 30 Mar 2001 06:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511369#M895512</guid>
      <dc:creator>Felix Maurer</dc:creator>
      <dc:date>2001-03-30T06:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get syslog statistics</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511370#M895513</link>
      <description>If you don't need per user statistics (just in bound/outbound statistics for a given time period), mailstats is an effective command.  mailstats gives a count of outbound messages (and bytes transferred) and a count of inbound messages (and bytes transferred) for each mailer you have defined:&lt;BR /&gt;&lt;BR /&gt;# mailstats&lt;BR /&gt;Statistics from Tue Sep 29 19:27:05 1998&lt;BR /&gt; M msgsfr bytes_from  msgsto   bytes_to  Mailer&lt;BR /&gt; 0      0          0K 261684    1050037K  prog&lt;BR /&gt; 1      0          0K   5301      18066K  *file*&lt;BR /&gt; 3 4161328  364780298K 13385581  240319945K  local&lt;BR /&gt; 5 14058647  318345719K 5313552  156255770K  esmtp&lt;BR /&gt; 9      8         77K      3         37K  uucp-old&lt;BR /&gt;========================================&lt;BR /&gt; T 18219983  683126094K 18966121  397643855K&lt;BR /&gt;&lt;BR /&gt;mailstats maintains statistics from the time the &lt;BR /&gt;/etc/mail/sendmail.st&lt;BR /&gt;is created.&lt;BR /&gt;&lt;BR /&gt;You can&lt;BR /&gt;1) periodically truncate this file to see what happens in a given time period.&lt;BR /&gt;or&lt;BR /&gt;2) use a program like mrtg to plot the statistics over time.  mrtg might be used to plot the difference between two consecutive executions of mailstats.  &lt;BR /&gt;&lt;BR /&gt;You might check &lt;A href="http://www.sendmail.org," target="_blank"&gt;www.sendmail.org,&lt;/A&gt; The "Bat book" (sendmail), and a search of the web for mailstats to get some examples/source scripts for folks maintaining mail statisics.</description>
      <pubDate>Fri, 30 Mar 2001 15:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-syslog-statistics/m-p/2511370#M895513</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-03-30T15:33:04Z</dc:date>
    </item>
  </channel>
</rss>

