[OPEN-ILS-DEV] how to extract user queries from logs?

Bill Erickson erickson at esilibrary.com
Tue Jan 26 14:32:16 EST 2010


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