€cdocutils.nodes document q)q}q(U nametypesq}qX event loggingqNsUsubstitution_defsq}qUparse_messagesq ]q Ucurrent_sourceq NU decorationq NUautofootnote_startq KUnameidsq}qhU event-loggingqsUchildrenq]qcdocutils.nodes section q)q}q(U rawsourceqUUparentqhUsourceqX[/var/lib/jenkins/jobs/metacat-unstable/workspace/docs/user/metacat/source/event-logging.rstqUtagnameqUsectionqU attributesq}q(Udupnamesq]Uclassesq]Ubackrefsq ]Uidsq!]q"haUnamesq#]q$hauUlineq%KUdocumentq&hh]q'(cdocutils.nodes title q()q)}q*(hX Event Loggingq+hhhhhUtitleq,h}q-(h]h]h ]h!]h#]uh%Kh&hh]q.cdocutils.nodes Text q/X Event Loggingq0…q1}q2(hh+hh)ubaubcdocutils.nodes paragraph q3)q4}q5(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.q6hhhhhU paragraphq7h}q8(h]h]h ]h!]h#]uh%Kh&hh]q9h/X…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.q:…q;}q<(hh6hh4ubaubh3)q=}q>(hXsThe following URL is used to return the basic log- an XML-formatted log of all events since the log was initiated::hhhhhh7h}q?(h]h]h ]h!]h#]uh%K h&hh]q@h/XrThe following URL is used to return the basic log- an XML-formatted log of all events since the log was initiated:qA…qB}qC(hXrThe following URL is used to return the basic log- an XML-formatted log of all events since the log was initiated:hh=ubaubcdocutils.nodes literal_block qD)qE}qF(hX6http://some.metacat.host/context/metacat?action=getloghhhhhU literal_blockqGh}qH(U xml:spaceqIUpreserveqJh!]h ]h]h]h#]uh%K h&hh]qKh/X6http://some.metacat.host/context/metacat?action=getlogqL…qM}qN(hUhhEubaubh3)qO}qP(hX»Note 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.qQhhhhhh7h}qR(h]h]h ]h!]h#]uh%Kh&hh]qSh/X»Note 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.qT…qU}qV(hhQhhOubaubhD)qW}qX(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 hhhhhhGh}qY(hIhJh!]h ]h]h]h#]uh%Kh&hh]qZh/X 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 q[…q\}q](hUhhWubaubh3)q^}q_(hX«The 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.q`hhhhhh7h}qa(h]h]h ]h!]h#]uh%K h&hh]qbh/X«The 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.qc…qd}qe(hh`hh^ubaubcdocutils.nodes table qf)qg}qh(hUhhhhhUtableqih}qj(h]h]h ]h!]h#]uh%Nh&hh]qkcdocutils.nodes tgroup ql)qm}qn(hUh}qo(h!]h ]h]h]h#]UcolsKuhhgh]qp(cdocutils.nodes colspec qq)qr}qs(hUh}qt(h!]h ]h]h]h#]UcolwidthK uhhmh]hUcolspecquubhq)qv}qw(hUh}qx(h!]h ]h]h]h#]UcolwidthK5uhhmh]hhuubcdocutils.nodes thead qy)qz}q{(hUh}q|(h]h]h ]h!]h#]uhhmh]q}cdocutils.nodes row q~)q}q€(hUh}q(h]h]h ]h!]h#]uhhzh]q‚(cdocutils.nodes entry qƒ)q„}q…(hUh}q†(h]h]h ]h!]h#]uhhh]q‡h3)qˆ}q‰(hX ParameterqŠhh„hhhh7h}q‹(h]h]h ]h!]h#]uh%K%h]qŒh/X Parameterq…qŽ}q(hhŠhhˆubaubahUentryqubhƒ)q‘}q’(hUh}q“(h]h]h ]h!]h#]uhhh]q”h3)q•}q–(hXDescription and Valuesq—hh‘hhhh7h}q˜(h]h]h ]h!]h#]uh%K%h]q™h/XDescription and Valuesqš…q›}qœ(hh—hh•ubaubahhubehUrowqubahUtheadqžubcdocutils.nodes tbody qŸ)q }q¡(hUh}q¢(h]h]h ]h!]h#]uhhmh]q£(h~)q¤}q¥(hUh}q¦(h]h]h ]h!]h#]uhh h]q§(hƒ)q¨}q©(hUh}qª(h]h]h ]h!]h#]uhh¤h]q«h3)q¬}q­(hX ipAddressq®hh¨hhhh7h}q¯(h]h]h ]h!]h#]uh%K'h]q°h/X ipAddressq±…q²}q³(hh®hh¬ubaubahhubhƒ)q´}qµ(hUh}q¶(h]h]h ]h!]h#]uhh¤h]q·h3)q¸}q¹(hX3Restrict the report to this IP Address (repeatable)qºhh´hhhh7h}q»(h]h]h ]h!]h#]uh%K'h]q¼h/X3Restrict the report to this IP Address (repeatable)q½…q¾}q¿(hhºhh¸ubaubahhubehhubh~)qÀ}qÁ(hUh}qÂ(h]h]h ]h!]h#]uhh h]qÃ(hƒ)qÄ}qÅ(hUh}qÆ(h]h]h ]h!]h#]uhhÀh]qÇh3)qÈ}qÉ(hX principalqÊhhÄhhhh7h}qË(h]h]h ]h!]h#]uh%K)h]qÌh/X principalqÍ…qÎ}qÏ(hhÊhhÈubaubahhubhƒ)qÐ}qÑ(hUh}qÒ(h]h]h ]h!]h#]uhhÀh]qÓh3)qÔ}qÕ(hX-Restrict the report to this user (repeatable)qÖhhÐhhhh7h}q×(h]h]h ]h!]h#]uh%K)h]qØh/X-Restrict the report to this user (repeatable)qÙ…qÚ}qÛ(hhÖhhÔubaubahhubehhubh~)qÜ}qÝ(hUh}qÞ(h]h]h ]h!]h#]uhh h]qß(hƒ)qà}qá(hUh}qâ(h]h]h ]h!]h#]uhhÜh]qãh3)qä}qå(hXdocidqæhhàhhhh7h}qç(h]h]h ]h!]h#]uh%K+h]qèh/Xdocidqé…qê}që(hhæhhäubaubahhubhƒ)qì}qí(hUh}qî(h]h]h ]h!]h#]uhhÜh]qïh3)qð}qñ(hX.Restrict the report to this docid (repeatable)qòhhìhhhh7h}qó(h]h]h ]h!]h#]uh%K+h]qôh/X.Restrict the report to this docid (repeatable)qõ…qö}q÷(hhòhhðubaubahhubehhubh~)qø}qù(hUh}qú(h]h]h ]h!]h#]uhh h]qû(hƒ)qü}qý(hUh}qþ(h]h]h ]h!]h#]uhhøh]qÿh3)r}r(hXeventrhhühhhh7h}r(h]h]h ]h!]h#]uh%K-h]rh/Xeventr…r}r(hjhjubaubahhubhƒ)r}r (hUh}r (h]h]h ]h!]h#]uhhøh]r h3)r }r (hXXRestrict the report to this event type (repeatable) Values: insert, update, delete, readrhjhhhh7h}r(h]h]h ]h!]h#]uh%K-h]rh/XXRestrict the report to this event type (repeatable) Values: insert, update, delete, readr…r}r(hjhj ubaubahhubehhubh~)r}r(hUh}r(h]h]h ]h!]h#]uhh h]r(hƒ)r}r(hUh}r(h]h]h ]h!]h#]uhjh]rh3)r}r(hXstartrhjhhhh7h}r(h]h]h ]h!]h#]uh%K0h]r h/Xstartr!…r"}r#(hjhjubaubahhubhƒ)r$}r%(hUh}r&(h]h]h ]h!]h#]uhjh]r'h3)r(}r)(hXHRestrict the report to events after this date Value: YYYY-MM-DD+hh:mm:ssr*hj$hhhh7h}r+(h]h]h ]h!]h#]uh%K0h]r,h/XHRestrict the report to events after this date Value: YYYY-MM-DD+hh:mm:ssr-…r.}r/(hj*hj(ubaubahhubehhubh~)r0}r1(hUh}r2(h]h]h ]h!]h#]uhh h]r3(hƒ)r4}r5(hUh}r6(h]h]h ]h!]h#]uhj0h]r7h3)r8}r9(hXendr:hj4hhhh7h}r;(h]h]h ]h!]h#]uh%K3h]r<h/Xendr=…r>}r?(hj:hj8ubaubahhubhƒ)r@}rA(hUh}rB(h]h]h ]h!]h#]uhj0h]rCh3)rD}rE(hXJRestrict the report to events before this date. Value: YYYY-MM-DD+hh:mm:ssrFhj@hhhh7h}rG(h]h]h ]h!]h#]uh%K3h]rHh/XJRestrict the report to events before this date. Value: YYYY-MM-DD+hh:mm:ssrI…rJ}rK(hjFhjDubaubahhubehhubehUtbodyrLubehUtgrouprMubaubh3)rN}rO(hX0To view only the 'read' events, use a URL like::rPhhhhhh7h}rQ(h]h]h ]h!]h#]uh%K7h&hh]rRh/X/To view only the 'read' events, use a URL like:rS…rT}rU(hX/To view only the 'read' events, use a URL like:hjNubaubhD)rV}rW(hXAhttp://some.metacat.host/context/metacat?action=getlog&event=readhhhhhhGh}rX(hIhJh!]h ]h]h]h#]uh%K9h&hh]rYh/XAhttp://some.metacat.host/context/metacat?action=getlog&event=readrZ…r[}r\(hUhjVubaubh3)r]}r^(hXETo view only the events for a particular IP address, use a URL like::r_hhhhhh7h}r`(h]h]h ]h!]h#]uh%Kh&hh]rhh/XKhttp://some.metacat.host/context/metacat?action=getlog&ipaddress=107.9.1.31ri…rj}rk(hUhjeubaubh3)rl}rm(hX:To view only the events for a given user, use a URL like::rnhhhhhh7h}ro(h]h]h ]h!]h#]uh%KAh&hh]rph/X9To view only the events for a given user, use a URL like:rq…rr}rs(hX9To view only the events for a given user, use a URL like:hjlubaubhD)rt}ru(hXmhttp://some.metacat.host/context/metacat?action=getlog&principal=uid=johndoe,o=NCEAS,dc=ecoinformatics,dc=orghhhhhhGh}rv(hIhJh!]h ]h]h]h#]uh%KCh&hh]rwh/Xmhttp://some.metacat.host/context/metacat?action=getlog&principal=uid=johndoe,o=NCEAS,dc=ecoinformatics,dc=orgrx…ry}rz(hUhjtubaubh3)r{}r|(hXCTo view only the events for a particular document, use a URL like::r}hhhhhh7h}r~(h]h]h ]h!]h#]uh%KFh&hh]rh/XBTo view only the events for a particular document, use a URL like:r€…r}r‚(hXBTo view only the events for a particular document, use a URL like:hj{ubaubhD)rƒ}r„(hXDhttp://some.metacat.host/context/metacat?action=getlog&docid=knb.5.1hhhhhhGh}r…(hIhJh!]h ]h]h]h#]uh%KHh&hh]r†h/XDhttp://some.metacat.host/context/metacat?action=getlog&docid=knb.5.1r‡…rˆ}r‰(hUhjƒubaubh3)rŠ}r‹(hX<To view only the events after a given date, use a URL like::rŒhhhhhh7h}r(h]h]h ]h!]h#]uh%KKh&hh]rŽh/X;To view only the events after a given date, use a URL like:r…r}r‘(hX;To view only the events after a given date, use a URL like:hjŠubaubhD)r’}r“(hXPhttp://some.metacat.host/context/metacat?action=getlog&start=2004-09-15+12:00:00hhhhhhGh}r”(hIhJh!]h ]h]h]h#]uh%KMh&hh]r•h/XPhttp://some.metacat.host/context/metacat?action=getlog&start=2004-09-15+12:00:00r–…r—}r˜(hUhj’ubaubh3)r™}rš(hX=To view only the events before a given date, use a URL like::r›hhhhhh7h}rœ(h]h]h ]h!]h#]uh%KPh&hh]rh/X<To view only the events before a given date, use a URL like:rž…rŸ}r (hX<To view only the events before a given date, use a URL like:hj™ubaubhD)r¡}r¢(hXNhttp://some.metacat.host/context/metacat?action=getlog&end=2004-09-15+12:00:00hhhhhhGh}r£(hIhJh!]h ]h]h]h#]uh%KRh&hh]r¤h/XNhttp://some.metacat.host/context/metacat?action=getlog&end=2004-09-15+12:00:00r¥…r¦}r§(hUhj¡ubaubh3)r¨}r©(hX]To view the 'insert' events for September 2004 (i.e., to combine parameters) use a URL like::rªhhhhhh7h}r«(h]h]h ]h!]h#]uh%KUh&hh]r¬h/X\To view the 'insert' events for September 2004 (i.e., to combine parameters) use a URL like:r­…r®}r¯(hX\To view the 'insert' events for September 2004 (i.e., to combine parameters) use a URL like:hj¨ubaubhD)r°}r±(hXuhttp://some.metacat.host/context/metacat?action=getlog&event=insert&start=2004-09-01+12:00:00&end=2004-09-30+23:59:59hhhhhhGh}r²(hIhJh!]h ]h]h]h#]uh%KWh&hh]r³h/Xuhttp://some.metacat.host/context/metacat?action=getlog&event=insert&start=2004-09-01+12:00:00&end=2004-09-30+23:59:59r´…rµ}r¶(hUhj°ubaubeubahUU transformerr·NU footnote_refsr¸}r¹Urefnamesrº}r»Usymbol_footnotesr¼]r½Uautofootnote_refsr¾]r¿Usymbol_footnote_refsrÀ]rÁU citationsrÂ]rÃh&hU current_linerÄNUtransform_messagesrÅ]rÆUreporterrÇNUid_startrÈKU autofootnotesrÉ]rÊU citation_refsrË}rÌUindirect_targetsrÍ]rÎUsettingsrÏ(cdocutils.frontend Values rÐorÑ}rÒ(Ufootnote_backlinksrÓKUrecord_dependenciesrÔNU rfc_base_urlrÕUhttps://tools.ietf.org/html/rÖU tracebackr׈Upep_referencesrØNUstrip_commentsrÙNU toc_backlinksrÚhU language_coderÛUenrÜU datestamprÝNU report_levelrÞKU _destinationrßNU halt_levelràKU strip_classesráNh,NUerror_encoding_error_handlerrâUbackslashreplacerãUdebugräNUembed_stylesheetrå‰Uoutput_encoding_error_handlerræUstrictrçU sectnum_xformrèKUdump_transformsréNU docinfo_xformrêKUwarning_streamrëNUpep_file_url_templaterìUpep-%04dríUexit_status_levelrîKUconfigrïNUstrict_visitorrðNUcloak_email_addressesrñˆUtrim_footnote_reference_spacerò‰UenvróNUdump_pseudo_xmlrôNUexpose_internalsrõNUsectsubtitle_xformrö‰U source_linkr÷NUrfc_referencesrøNUoutput_encodingrùUutf-8rúU source_urlrûNUinput_encodingrüU utf-8-sigrýU_disable_configrþNU id_prefixrÿUU tab_widthrKUerror_encodingrUUTF-8rU_sourcerhUgettext_compactrˆU generatorrNUdump_internalsrNU smart_quotesr‰U pep_base_urlrU https://www.python.org/dev/peps/r Usyntax_highlightr Ulongr Uinput_encoding_error_handlerr jçUauto_id_prefixr UidrUdoctitle_xformr‰Ustrip_elements_with_classesrNU _config_filesr]Ufile_insertion_enabledrˆU raw_enabledrKU dump_settingsrNubUsymbol_footnote_startrKh!}rhhsUsubstitution_namesr}rhh&h}r(h]h!]h ]Usourcehh]h#]uU footnotesr]rUrefidsr}rub.