45docutils.nodesdocument)}( rawsourcechildren]hsection)}(hhh](htitle)}(h Event Loggingh]hText Event Logging}(hhparenthhhsourceNlineNuba attributes}(ids]classes]names]dupnames]backrefs]utagnamehhh hhh_/var/lib/jenkins/jobs/metacat_beta/workspace/metacat/docs/user/metacat/source/event-logging.rsthKubh paragraph)}(hXMetacat 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]hXMetacat 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*hKhh hhubh,)}(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 hh hhubh 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 hh hhhh*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*hKhh hhubhK)}(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)hJhKhh hhhh*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 hh hhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h!]h#]h%]h']colwidthK uh)hhhubh)}(hhh]h}(h]h!]h#]h%]h']colwidthK5uh)hhhubhthead)}(hhh]hrow)}(hhh](hentry)}(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)hhhubhtbody)}(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)}(hjhjubah}(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}(hj0hj.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)}(hjGhjEubah}(h]h!]h#]h%]h']uh)h+hh*hK)hjBubah}(h]h!]h#]h%]h']uh)hhj(ubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(hdocidh]hdocid}(hjghjeubah}(h]h!]h#]h%]h']uh)h+hh*hK+hjbubah}(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+hjyubah}(h]h!]h#]h%]h']uh)hhj_ubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(heventh]hevent}(hjhjubah}(h]h!]h#]h%]h']uh)h+hh*hK-hjubah}(h]h!]h#]h%]h']uh)hhjubh)}(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}(hjhjubah}(h]h!]h#]h%]h']uh)h+hh*hK-hjubah}(h]h!]h#]h%]h']uh)hhjubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(hstarth]hstart}(hjhjubah}(h]h!]h#]h%]h']uh)h+hh*hK0hjubah}(h]h!]h#]h%]h']uh)hhjubh)}(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}(hjhjubah}(h]h!]h#]h%]h']uh)h+hh*hK0hjubah}(h]h!]h#]h%]h']uh)hhjubeh}(h]h!]h#]h%]h']uh)hhhubh)}(hhh](h)}(hhh]h,)}(hendh]hend}(hj hj ubah}(h]h!]h#]h%]h']uh)h+hh*hK3hjubah}(h]h!]h#]h%]h']uh)hhjubh)}(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*hK3hjubah}(h]h!]h#]h%]h']uh)hhjubeh}(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)hhh hhhh*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:hjNhhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hK7hh hhubhK)}(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)hJhK9hh hhhh*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:hjkhhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hKhh hhhh*ubh,)}(h:To view only the events for a given user, use a URL like::h]h9To view only the events for a given user, use a URL like:}(h9To view only the events for a given user, use a URL like:hjhhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hKAhh hhubhK)}(hmhttp://some.metacat.host/context/metacat?action=getlog&principal=uid=johndoe,o=NCEAS,dc=ecoinformatics,dc=orgh]hmhttp://some.metacat.host/context/metacat?action=getlog&principal=uid=johndoe,o=NCEAS,dc=ecoinformatics,dc=org}(hhhjubah}(h]h!]h#]h%]h']hZh[uh)hJhKChh hhhh*ubh,)}(hCTo view only the events for a particular document, use a URL like::h]hBTo view only the events for a particular document, use a URL like:}(hBTo view only the events for a particular document, use a URL like:hjhhhNhNubah}(h]h!]h#]h%]h']uh)h+hh*hKFhh hhubhK)}(hDhttp://some.metacat.host/context/metacat?action=getlog&docid=knb.5.1h]hDhttp://some.metacat.host/context/metacat?action=getlog&docid=knb.5.1}(hhhjubah}(h]h!]h#]h%]h']hZh[uh)hJhKHhh hhhh*ubh,)}(h