[OPEN-ILS-DEV] how to extract user queries from logs?
Melissa Belvadi
mbelvadi at upei.ca
Thu Jan 28 09:37:33 EST 2010
Thanks, I was indeed looking at the wrong log file.
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?
Thanks,
Melissa
>>> Bill Erickson <erickson at esilibrary.com> 1/26/2010 03:32 PM >>>
On Tue, Jan 26, 2010 at 12:43 PM, Melissa Belvadi <mbelvadi at upei.ca>
wrote:
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).
First, am I looking in the correct log file?
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.
Hi Melissa,
The most common OPAC searches (patron and staff) can be found with
something like this:
grep osrf_json activity.log | grep multiclass
More information about the Open-ils-dev
mailing list