No subject
Thu May 28 17:10:26 EDT 2009
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
--001636284d80edf42d047e16575e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<br><div class=3D"gmail_quote">On Tue, Jan 26, 2010 at 12:43 PM, Melissa Be=
lvadi <span dir=3D"ltr"><<a href=3D"mailto:mbelvadi at upei.ca">mbelvadi at up=
ei.ca</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"b=
order-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; paddin=
g-left: 1ex;">
=20
=20
<div style=3D"margin: 4px 4px 1px; line-height: normal; font-variant: nor=
mal;">
<p style=3D"margin-bottom: 0pt; margin-top: 0pt;">
<font face=3D"Verdana" size=3D"3">Hi, I'm looking at one day'=
s opensrf.log trying to figure out how I can extract from this a list of wh=
at actual user queries (search strings) users have done through the normal =
interface (eg not z3950).</font> </p>
<p style=3D"margin-bottom: 0pt; margin-top: 0pt;">
<font face=3D"Verdana" size=3D"3">First, am I looking in the correct =
log file?</font> </p>
<p style=3D"margin-bottom: 0pt; margin-top: 0pt;">
<font face=3D"Verdana" size=3D"3">Second, can anyone tell me what kin=
d of pattern to look for to grep out just the lines that contain the user&#=
39;s keyword string? Once I know I'm looking at the right kinds of line=
s, I can figure out how to extract the query string out from the rest of th=
e line.</font></p>
</div></blockquote><div><br>Hi Melissa,<br><br>The most common OPAC searche=
s (patron and staff) can be found with something like this:<br><br>grep osr=
f_json activity.log | grep multiclass<br><br>From there you can slice and d=
ice 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.=C2=A0 If you don't have=
such a file, the same data will be in the "gateway.log" file. <b=
r>
<br>Hope this helps.<br><br>-b <br clear=3D"all"></div></div><br>-- <br>Bil=
l Erickson<br>| VP, Software Development & Integration<br>| Equinox Sof=
tware, 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.com</a><=
br>
--001636284d80edf42d047e16575e--
More information about the Open-ils-dev
mailing list