Event log, Retrieving the event log – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 72

Google Search Appliance: Administrative API Developer’s Guide: Protocol
72
Event Log
Retrieve the event log for a search appliance using the eventLog entry of the logs feed.
The following properties enable access to log content.
Retrieving the Event Log
Retrieve the event log information for a search appliance by sending an authenticated GET request to
the eventLog feed URL (wrapped for readability):
http://Search_Appliance:8000/feeds/logs/eventLog?
query=User&startLine=Starting_Line&maxLines=Max_Lines
The result is an entry that includes the current event log values for the search appliance:
xmlns:gsa=’http://schemas.google.com/gsa/2007’> href=’http://gsa:8000/feeds/logs/eventLog’/> href=’http://gsa:8000/feeds/logs/eventLog’/> @ 2008/12/11 23:39:40: User logged in: [admin logged in from 172.30.123.69
at 2008_12_11_23_39_40_PST]
@ 2008/12/11 23:39:38: User logged in: [admin logged in from 172.30.123.69
at 2008_12_11_23_39_38_PST]
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.
startLine
The first logContent lines to retrieve. The default value is 1 line.
maxLines
The maximum logContent lines to retrieve. The default value is 50 lines.
Property
Description
fromLine
The starting line of the logContent.
logContent
The log content.
toLine
The ending line of the logContent.
totalLines
Total lines of the logContent.