Updating a search log – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 64

Google Search Appliance: Administrative API Developer’s Guide: Protocol
64
A search log entry with logContent (if content is ready) returns:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/searchLog/aaa%40default_collection</id>
<updated>2009-03-26T06:22:41.416Z</updated>
<app:edited xmlns:app=’http://purl.org/atom/app#’>
2009-03-26T06:22:41.416Z
</app:edited>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/searchLog/aaa%40default_collection’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/searchLog/aaa%40default_collection’/>
<gsa:content name=’entryID’>aaa@default_collection</gsa:content>
<gsa:content name=’toLine’>2</gsa:content>
<gsa:content name=’logContent’>
127.0.0.2!127.0.0.1 - - [25/Mar/2009:23:18:43 -0800] "GET
/search?q=document&btnG=Google+Search&access=p&
client=default_frontend&output=xml_no_dtd&
proxystylesheet=default_frontend&sort=date%3AD%3AL%3Ad1&
entqr=0&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&
ip=172.30.120.197 HTTP/1.1" 200 2432 3 0.02
127.0.0.2!127.0.0.1 - - [25/Mar/2009:23:18:14 -0800] "GET
/search?q=document&btnG=Google+Search&access=p&
client=default_frontend&output=xml_no_dtd&
proxystylesheet=default_frontend&sort=date%3AD%3AL%3Ad1&
entqr=0&oe=UTF-8&ie=UTF-8&ud=1&site=default_collection&
ip=172.30.120.197 HTTP/1.1" 200 2432 3 0.02
</gsa:content>
<gsa:content name=’reportState’>2</gsa:content>
<gsa:content name=’fromLine’>1</gsa:content>
<gsa:content name=’totalLines’>2</gsa:content>
<gsa:content name=’reportCreationDate’>
March 25, 2009 11:20:20 PM PDT
</gsa:content>
<gsa:content name=’reportDate’>date_3_25_2009</gsa:content>
<gsa:content name=’isFinal’>false</gsa:content>
</entry>
Updating a Search Log
To update the search log status and get search log content, send an authenticated PUT request to a
search log entry of the searchLog feed. There are no properties for this use of the searchLog feed:
http://Search_Appliance:8000/feeds/searchLog/bbb@default_collection
Specify a request with content:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
</entry>