<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom audit log for API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-audit-log-for-api/m-p/109202#M30618</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm looking for possibility, how to customize Alfresco Audit Log (or set it properly). In my alfresco-global.properties i have&lt;/P&gt;&lt;PRE&gt;audit.enabled=true
audit.tagging.enabled=true
audit.alfresco-access.enabled=true
audit.alfresco-access.sub-actions.enabled=true
audit.cmischangelog.enabled=true
audit.dod5015.enabled=true&lt;/PRE&gt;&lt;P&gt;but for mimeType&amp;nbsp;"application/octet-stream" is logged only one record and with changing properties will change id but no new record is logged (and no log for access).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="log.png" style="width: 438px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/538iF5180D21A54DBAE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to solve this issues:&lt;/P&gt;&lt;P&gt;1. i need to log every action for access / update if using Alfresco API (even if user don't have permission)&lt;/P&gt;&lt;P&gt;2. i need to have possibility to add custom log (for example if on FE someone will deny access to file i need to log this action in audit log)&lt;/P&gt;&lt;P&gt;3. i have learned Alfresco has one endpoint to get audit log (&lt;EM&gt;GET /nodes/{nodeId}/audit-entries&lt;/EM&gt;) but i need to get more than one nodeId at once. For example, i have one file associated with three more files. User wants to show all history of these files, but he wants to see only last 10 records. In this case i need to call 4 times API and get at least 10 latest records, sorted them and return to the user. I as programmer would like to get all audit logs from somewhere (Search API, SQL, ...) with one request, sorted and limited on the server side.&lt;/P&gt;&lt;P&gt;4. I found out posibility to extend audit log with some module, but i don't want to customize Alfresco Build (with source code), is there possibility to create my own customized enpoint and simply deployed it as custom module to the Alfesco Content Services?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 10:18:36 GMT</pubDate>
    <dc:creator>pdovhomilja</dc:creator>
    <dc:date>2020-04-03T10:18:36Z</dc:date>
    <item>
      <title>Custom audit log for API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-audit-log-for-api/m-p/109202#M30618</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm looking for possibility, how to customize Alfresco Audit Log (or set it properly). In my alfresco-global.properties i have&lt;/P&gt;&lt;PRE&gt;audit.enabled=true
audit.tagging.enabled=true
audit.alfresco-access.enabled=true
audit.alfresco-access.sub-actions.enabled=true
audit.cmischangelog.enabled=true
audit.dod5015.enabled=true&lt;/PRE&gt;&lt;P&gt;but for mimeType&amp;nbsp;"application/octet-stream" is logged only one record and with changing properties will change id but no new record is logged (and no log for access).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="log.png" style="width: 438px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/538iF5180D21A54DBAE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to solve this issues:&lt;/P&gt;&lt;P&gt;1. i need to log every action for access / update if using Alfresco API (even if user don't have permission)&lt;/P&gt;&lt;P&gt;2. i need to have possibility to add custom log (for example if on FE someone will deny access to file i need to log this action in audit log)&lt;/P&gt;&lt;P&gt;3. i have learned Alfresco has one endpoint to get audit log (&lt;EM&gt;GET /nodes/{nodeId}/audit-entries&lt;/EM&gt;) but i need to get more than one nodeId at once. For example, i have one file associated with three more files. User wants to show all history of these files, but he wants to see only last 10 records. In this case i need to call 4 times API and get at least 10 latest records, sorted them and return to the user. I as programmer would like to get all audit logs from somewhere (Search API, SQL, ...) with one request, sorted and limited on the server side.&lt;/P&gt;&lt;P&gt;4. I found out posibility to extend audit log with some module, but i don't want to customize Alfresco Build (with source code), is there possibility to create my own customized enpoint and simply deployed it as custom module to the Alfesco Content Services?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 10:18:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-audit-log-for-api/m-p/109202#M30618</guid>
      <dc:creator>pdovhomilja</dc:creator>
      <dc:date>2020-04-03T10:18:36Z</dc:date>
    </item>
  </channel>
</rss>

