No subject


Thu May 28 17:10:26 EDT 2009


into various forms.

Also, note, in a syslog environment, there is usually an "activity.log"
file where the web requests come in. If you don't have such a file, the
same data will be in the "gateway.log" file.

Hope this helps.

-b


--
Bill Erickson
| VP, Software Development & Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: erickson at esilibrary.com
| web: http://esilibrary.com

--=__PartDEF4F93D.0__=
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<html>
  <head>

  </head>
  <body style=3D"margin-top: 4px; line-height: normal; margin-left: 4px; =
font-variant: normal; margin-bottom: 1px; margin-right: 4px">
    <p style=3D"margin-bottom: 0; margin-top: 0">
      <font size=3D"3" face=3D"Verdana">Thanks&#44; I was indeed looking =
at the wrong log file.</font>    </p>
<br>     =20
    <p style=3D"margin-bottom: 0; margin-top: 0">
      <font size=3D"3" face=3D"Verdana">Before I re-invent the wheel&#44; =
does anyone have a little perl/awk/whatever script they&#39;ve written to =
&#39;slice and dice&#39; the user query from the lines described by Bill =
that they can share&#63;</font>    </p>
<br>     =20
    <p style=3D"margin-bottom: 0; margin-top: 0">
      <font size=3D"3" face=3D"Verdana">Thanks&#44;</font>    </p>
<br>     =20
    <p style=3D"margin-bottom: 0; margin-top: 0">
      <font size=3D"3" face=3D"Verdana">Melissa</font><br><br>&gt;&gt;&gt; =
Bill Erickson &lt;erickson at esilibrary.com&gt; 1/26/2010 03:32 PM &gt;&gt;&g=
t;<br><br>    </p>
    <div class=3D"gmail_quote">
      <p style=3D"margin-bottom: 0; margin-top: 0">
        On Tue&#44; Jan 26&#44; 2010 at 12:43 PM&#44; Melissa Belvadi =
<span dir=3D"ltr">&lt;<a href=3D"mailto:mbelvadi at upei.ca">mbelvadi at upei.ca<=
/a>&gt;</span>&nbsp;wrote:<br>      </p>
      <blockquote class=3D"gmail_quote" style=3D"margin-top: 0pt; =
padding-left: 0; border-left: 1px solid rgb(204, 204, 204); margin-left: =
0; margin-bottom: 0pt; margin-right: 0pt">
        <div style=3D"margin-top: 4px; line-height: normal; margin-left: =
4px; font-variant: normal; margin-bottom: 1px; margin-right: 4px">
          <p style=3D"margin-bottom: 0; margin-top: 0">
            <font size=3D"3" face=3D"Verdana">Hi&#44; I&#39;m looking at =
one day&#39;s opensrf.log trying to figure out how I can extract from this =
a list of what actual user queries &#40;search strings&#41; users have =
done through the normal interface &#40;eg not z3950&#41;.</font>          =
</p>
          <p style=3D"margin-bottom: 0; margin-top: 0">
            <font size=3D"3" face=3D"Verdana">First&#44; am I looking in =
the correct log file&#63;</font>          </p>
          <p style=3D"margin-bottom: 0; margin-top: 0">
            <font size=3D"3" face=3D"Verdana">Second&#44; can anyone tell =
me what kind of pattern to look for to grep out just the lines that =
contain the user&#39;s keyword string&#63; Once I know I&#39;m looking at =
the right kinds of lines&#44; I can figure out how to extract the query =
string out from the rest of the line.</font>          </p>
        </div>
      </blockquote>
      <div>
        <p style=3D"margin-bottom: 0; margin-top: 0">
          <br>
          Hi Melissa&#44;<br><br>The most common OPAC searches &#40;patron =
and staff&#41; can be found with something like this:<br><br>grep =
osrf_json activity.log&#32;&#124;&#32;grep multiclass<br><br>From there =
you can slice and dice the query &#40;which is JSON encoded&#41; into =
various forms.<br><br>Also&#44; note&#44; in a syslog environment&#44; =
there is usually an &quot;activity.log&quot; file where the web requests =
come in. If you don&#39;t have such a file&#44; the same data will be in =
the &quot;gateway.log&quot; file.<br><br>Hope this helps.<br><br>-b<br =
clear=3D"all">        </p>
      </div>
    </div>
    <p style=3D"margin-bottom: 0; margin-top: 0">
      <br>
      --<br>Bill Erickson<br>&#124;&#32;VP&#44; Software Development &amp; =
Integration<br>&#124;&#32;Equinox Software&#44; Inc. / The Evergreen =
Experts<br>&#124;&#32;phone: 877-OPEN-ILS &#40;673-6457&#41;<br>&#124;&#32;=
email: <a href=3D"mailto:erickson at esilibrary.com">erickson at esilibrary.com</=
a><br>&#124;&#32;web: <a href=3D"http://esilibrary.com">http://esilibrary.c=
om</a><br>
    </p>
  </body>
</html>

--=__PartDEF4F93D.0__=--


More information about the Open-ils-dev mailing list