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, 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, =
does anyone have a little perl/awk/whatever script they've written to =
'slice and dice' the user query from the lines described by Bill =
that they can share?</font> </p>
<br> =20
<p style=3D"margin-bottom: 0; margin-top: 0">
<font size=3D"3" face=3D"Verdana">Thanks,</font> </p>
<br> =20
<p style=3D"margin-bottom: 0; margin-top: 0">
<font size=3D"3" face=3D"Verdana">Melissa</font><br><br>>>> =
Bill Erickson <erickson at esilibrary.com> 1/26/2010 03:32 PM >>&g=
t;<br><br> </p>
<div class=3D"gmail_quote">
<p style=3D"margin-bottom: 0; margin-top: 0">
On Tue, Jan 26, 2010 at 12:43 PM, Melissa Belvadi =
<span dir=3D"ltr"><<a href=3D"mailto:mbelvadi at upei.ca">mbelvadi at upei.ca<=
/a>></span> 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, I'm looking at =
one day's opensrf.log trying to figure out how I can extract from this =
a list of what actual user queries (search strings) users have =
done through the normal interface (eg not z3950).</font> =
</p>
<p style=3D"margin-bottom: 0; margin-top: 0">
<font size=3D"3" face=3D"Verdana">First, am I looking in =
the correct log file?</font> </p>
<p style=3D"margin-bottom: 0; margin-top: 0">
<font size=3D"3" face=3D"Verdana">Second, can anyone tell =
me what kind of pattern to look for to grep out just the lines that =
contain the user's keyword string? Once I know I'm looking at =
the right kinds of lines, 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,<br><br>The most common OPAC searches (patron =
and staff) can be found with something like this:<br><br>grep =
osrf_json activity.log | grep multiclass<br><br>From there =
you can slice and dice the query (which is JSON encoded) into =
various forms.<br><br>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.<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>| VP, Software Development & =
Integration<br>| Equinox Software, Inc. / The Evergreen =
Experts<br>| phone: 877-OPEN-ILS (673-6457)<br>| =
email: <a href=3D"mailto:erickson at esilibrary.com">erickson at esilibrary.com</=
a><br>| 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