45 docutils.nodesdocument)}( rawsource children]h section)}(hhh](h title)}(h
Event Loggingh]h Text
Event Logging}(hhparenthhhsourceNlineNuba
attributes}(ids]classes]names]dupnames]backrefs]utagnamehhhhhh_/var/lib/jenkins/jobs/metacat_beta/workspace/metacat/docs/user/metacat/source/event-logging.rsthKubh paragraph)}(hX Metacat keeps an internal log of events (such as insertions, updates, deletes,
and reads) that can be accessed with the getlog action. Using the getlog action,
event reports can be output from Metacat in XML format, and/or customized to
include only certain events: events from a particular IP address, user, event
type, or that occurred after a specified start date or before an end date.h]hX Metacat keeps an internal log of events (such as insertions, updates, deletes,
and reads) that can be accessed with the getlog action. Using the getlog action,
event reports can be output from Metacat in XML format, and/or customized to
include only certain events: events from a particular IP address, user, event
type, or that occurred after a specified start date or before an end date.}(hh/hh-hhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hKhhhhubh,)}(hsThe following URL is used to return the basic log- an XML-formatted log of all
events since the log was initiated::h]hrThe following URL is used to return the basic log- an XML-formatted log of all
events since the log was initiated:}(hrThe following URL is used to return the basic log- an XML-formatted log of all
events since the log was initiated:hh;hhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hK
hhhhubh
literal_block)}(h6http://some.metacat.host/context/metacat?action=getlogh]h6http://some.metacat.host/context/metacat?action=getlog}(hhhhLubah}(h]h!]h#]h%]h'] xml:spacepreserveuh)hJhK
hhhhhh*ubh,)}(hNote that you must be logged in to Metacat using the HTTP interface or you
will get an error message. For more information about logging in, please see
Logging In with the HTTP Interface.h]hNote that you must be logged in to Metacat using the HTTP interface or you
will get an error message. For more information about logging in, please see
Logging In with the HTTP Interface.}(hh^hh\hhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hKhhhhubhK)}(hX
4434.237.20.142uid=jones,
o=NCEAS,dc=ecoinformatics,dc=orgesa.2.1insert
2004-09-08 19:08:18.16
4734.237.20.142uid=jones,o=NCEAS,
dc=ecoinformatics,dc=orgesa.3.1insert2004-
09-14 19:50:40.61
h]hX
4434.237.20.142uid=jones,
o=NCEAS,dc=ecoinformatics,dc=orgesa.2.1insert
2004-09-08 19:08:18.16
4734.237.20.142uid=jones,o=NCEAS,
dc=ecoinformatics,dc=orgesa.3.1insert2004-
09-14 19:50:40.61
}(hhhhjubah}(h]h!]h#]h%]h']hZh[uh)hJhKhhhhhh*ubh,)}(hThe basic log can be quite extensive. To subset the report, restrict the
matching events using parameters. Query parameters can be combined to further
restrict the report.h]hThe basic log can be quite extensive. To subset the report, restrict the
matching events using parameters. Query parameters can be combined to further
restrict the report.}(hhzhhxhhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hK hhhhubh table)}(hhh]h tgroup)}(hhh](h colspec)}(hhh]h}(h]h!]h#]h%]h']colwidthKuh)hhhubh)}(hhh]h}(h]h!]h#]h%]h']colwidthK5uh)hhhubh thead)}(hhh]h row)}(hhh](h entry)}(hhh]h,)}(h Parameterh]h Parameter}(hhhhubah}(h]h!]h#]h%]h']uh)h+hh*hK%hhubah}(h]h!]h#]h%]h']uh)hhhubh)}(hhh]h,)}(hDescription and Valuesh]hDescription and Values}(hhhhubah}(h]h!]h#]h%]h']uh)h+hh*hK%hhubah}(h]h!]h#]h%]h']uh)hhhubeh}(h]h!]h#]h%]h']uh)hhhubah}(h]h!]h#]h%]h']uh)hhhubh tbody)}(hhh](h)}(hhh](h)}(hhh]h,)}(h ipAddressh]h ipAddress}(hhhhubah}(h]h!]h#]h%]h']uh)h+hh*hK'hhubah}(h]h!]h#]h%]h']uh)hhhubh)}(hhh]h,)}(h3Restrict the report to this IP Address (repeatable)h]h3Restrict the report to this IP Address (repeatable)}(hj hj ubah}(h]h!]h#]h%]h']uh)h+hh*hK'hj ubah}(h]h!]h#]h%]h']uh)hhhubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(h principalh]h principal}(hj0 hj. ubah}(h]h!]h#]h%]h']uh)h+hh*hK)hj+ ubah}(h]h!]h#]h%]h']uh)hhj( ubh)}(hhh]h,)}(h-Restrict the report to this user (repeatable)h]h-Restrict the report to this user (repeatable)}(hjG hjE ubah}(h]h!]h#]h%]h']uh)h+hh*hK)hjB ubah}(h]h!]h#]h%]h']uh)hhj( ubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(hdocidh]hdocid}(hjg hje ubah}(h]h!]h#]h%]h']uh)h+hh*hK+hjb ubah}(h]h!]h#]h%]h']uh)hhj_ ubh)}(hhh]h,)}(h.Restrict the report to this docid (repeatable)h]h.Restrict the report to this docid (repeatable)}(hj~ hj| ubah}(h]h!]h#]h%]h']uh)h+hh*hK+hjy ubah}(h]h!]h#]h%]h']uh)hhj_ ubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(heventh]hevent}(hj hj ubah}(h]h!]h#]h%]h']uh)h+hh*hK-hj ubah}(h]h!]h#]h%]h']uh)hhj ubh)}(hhh]h,)}(hXRestrict the report to this event type (repeatable)
Values: insert, update, delete, readh]hXRestrict the report to this event type (repeatable)
Values: insert, update, delete, read}(hj hj ubah}(h]h!]h#]h%]h']uh)h+hh*hK-hj ubah}(h]h!]h#]h%]h']uh)hhj ubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(hstarth]hstart}(hj hj ubah}(h]h!]h#]h%]h']uh)h+hh*hK0hj ubah}(h]h!]h#]h%]h']uh)hhj ubh)}(hhh]h,)}(hHRestrict the report to events after this date
Value: YYYY-MM-DD+hh:mm:ssh]hHRestrict the report to events after this date
Value: YYYY-MM-DD+hh:mm:ss}(hj hj ubah}(h]h!]h#]h%]h']uh)h+hh*hK0hj ubah}(h]h!]h#]h%]h']uh)hhj ubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(hendh]hend}(hj hj
ubah}(h]h!]h#]h%]h']uh)h+hh*hK3hj ubah}(h]h!]h#]h%]h']uh)hhj ubh)}(hhh]h,)}(hJRestrict the report to events before this date.
Value: YYYY-MM-DD+hh:mm:ssh]hJRestrict the report to events before this date.
Value: YYYY-MM-DD+hh:mm:ss}(hj# hj! ubah}(h]h!]h#]h%]h']uh)h+hh*hK3hj ubah}(h]h!]h#]h%]h']uh)hhj ubeh}(h]h!]h#]h%]h']uh)hhhubeh}(h]h!]h#]h%]h']uh)hhhubeh}(h]h!]h#]h%]h']colsKuh)hhhubah}(h]h!]h#]h%]h']uh)hhhhhhh*hNubh,)}(h0To view only the 'read' events, use a URL like::h]h3To view only the ‘read’ events, use a URL like:}(h/To view only the 'read' events, use a URL like:hjN hhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hK7hhhhubhK)}(hAhttp://some.metacat.host/context/metacat?action=getlog&event=readh]hAhttp://some.metacat.host/context/metacat?action=getlog&event=read}(hhhj] ubah}(h]h!]h#]h%]h']hZh[uh)hJhK9hhhhhh*ubh,)}(hETo view only the events for a particular IP address, use a URL like::h]hDTo view only the events for a particular IP address, use a URL like:}(hDTo view only the events for a particular IP address, use a URL like:hjk hhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hK