Google Search Appliance Administrative API Developers Gui Manual de usuario Pagina 72

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 77
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 71
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:
<?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/logs/eventLog</id>
<updated>2008-12-12T09:03:37.294Z</updated>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/logs/eventLog’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/logs/eventLog’/>
<gsa:content name=’entryID’>eventLog</gsa:content>
<gsa:content name=’toLine’>11</gsa:content>
<gsa:content name=’logContent’>
@ 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]
</gsa:content>
<gsa:content name=’fromLine’>10</gsa:content>
<gsa:content name=’totalLines’>67</gsa:content>
</entry>
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
.
Vista de pagina 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77

Comentarios a estos manuales

Sin comentarios