beautypg.com

Retrieving search log content – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 63

background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

63

A new search log entry generates and returns:


xmlns:gsa=’http://schemas.google.com/gsa/2007’>
http://gsa:8000/feeds/searchLog
2009-03-26T06:42:28.742Z

2009-03-26T06:42:28.742Z


href=’http://gsa:8000/feeds/searchLog’/>

href=’http://gsa:8000/feeds/searchLog’/>

bbb@default_collection
1

March 25, 2009 11:42:28 PM PDT


date_3_25_2009
false

Retrieving Search Log Content

To check the search log status and get search log content, send an authenticated GET request to a
search

log entry of the searchLog feed using the following parameters.

Example:

http://Search_Appliance:8000/feeds/searchLog/

aaa@default_collection?query=document

Parameter

Description

query

Query string for the logContent. The logContent contains many lines of
logs. The query string applies to each line and only lines that contain the
query string are returned.

maxLines

The maximum logContent lines to retrieve. The default value is 50 lines.

startLine

The first logContent lines to retrieve. The default value is 1 line.