<?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 Audit Application is Enabled but audit entry is not visible in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116822#M32346</link>
    <description>&lt;P&gt;Hii all,&lt;/P&gt;&lt;P&gt;I have been working with auditing and have used custom-audit application as mention in docs but only changed pathmapping tag source only. Due to it audit entries has stopped entering my application also i change audit application name in global.properties still it is behaving wrongly please correct me if i had done something wrong.&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;Audit
        xmlns="http://www.alfresco.org/repo/audit/model/3.2"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2 alfresco-audit-3.2.xsd"
        &amp;gt;
    &amp;lt;DataExtractors&amp;gt;
        &amp;lt;DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/&amp;gt;
        &amp;lt;DataExtractor name="nodeName" registeredName="auditModel.extractor.nodeName"/&amp;gt;
        &amp;lt;DataExtractor name="nodeType" registeredName="auditModel.extractor.nodeType"/&amp;gt;

        &amp;lt;!-- Custom data extractor --&amp;gt;
        &amp;lt;DataExtractor name="siteName" class="com.aviva.alf.platformsample.SiteNameDataExtractor"/&amp;gt;
    &amp;lt;/DataExtractors&amp;gt;

    &amp;lt;PathMappings&amp;gt;
        &amp;lt;PathMap source="/share-site-access" target="/share-site-access"/&amp;gt;
    &amp;lt;/PathMappings&amp;gt;

    &amp;lt;Application name="ShareSiteAccess" key="share-site-access"&amp;gt;
        &amp;lt;RecordValue key="access" dataExtractor="simpleValue" dataSource="/share-site-access/transaction/action"
                     dataTrigger="/share-site-access/transaction/action"/&amp;gt;
        &amp;lt;RecordValue key="nodepath" dataExtractor="simpleValue" dataSource="/share-site-access/transaction/path"
                     dataTrigger="/share-site-access/transaction/path"/&amp;gt;
        &amp;lt;RecordValue key="nodename" dataExtractor="nodeName" dataSource="/share-site-access/transaction/node"
                     dataTrigger="/share-site-access/transaction/node"/&amp;gt;
        &amp;lt;RecordValue key="nodetype" dataExtractor="nodeType" dataSource="/share-site-access/transaction/node"
                     dataTrigger="/share-site-access/transaction/node"/&amp;gt;
        &amp;lt;RecordValue key="site" dataExtractor="siteName" dataSource="/share-site-access/transaction/path"
                     dataTrigger="/share-site-access/transaction/path"/&amp;gt;
    &amp;lt;/Application&amp;gt;
&amp;lt;/Audit&amp;gt;&lt;/PRE&gt;&lt;P&gt;Above is my share-site-audit.xml.&lt;/P&gt;&lt;P&gt;Here i have only changed:-&lt;/P&gt;&lt;PRE&gt;&amp;lt;PathMap source="/share-site-access" target="/share-site-access"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;from:-&lt;/P&gt;&lt;PRE&gt;&amp;lt;PathMap source="/alfresco-access" target="/share-site-access"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;As i dont want audit entries to be duplicated in both audit applications that is:- alfresco-access and share-site-access.&lt;/P&gt;&lt;P&gt;Please look at my alfresco-global.properties&lt;/P&gt;&lt;PRE&gt;audit.enabled= true
audit.share-site-access.enabled=true
audit.share-site-access.sub-actions.enabled=false
audit.filter.share-site-access.default.enabled=true
audit.filter.share-site-access.default.user=~System;~null;.*
audit.filter.share-site-access.default.path=/app:company_home/st:sites/.*
audit.filter.share-site-access.transaction.user=~System;~null;.*
audit.filter.share-site-access.transaction.path=/app:company_home/st:sites/.*
audit.filter.share-site-access.transaction.action=updateNodeProperties;CREATE
audit.filter.share-site-access.transaction.type=&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Sep 2020 13:40:21 GMT</pubDate>
    <dc:creator>piyush48</dc:creator>
    <dc:date>2020-09-10T13:40:21Z</dc:date>
    <item>
      <title>Audit Application is Enabled but audit entry is not visible</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116822#M32346</link>
      <description>&lt;P&gt;Hii all,&lt;/P&gt;&lt;P&gt;I have been working with auditing and have used custom-audit application as mention in docs but only changed pathmapping tag source only. Due to it audit entries has stopped entering my application also i change audit application name in global.properties still it is behaving wrongly please correct me if i had done something wrong.&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;Audit
        xmlns="http://www.alfresco.org/repo/audit/model/3.2"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2 alfresco-audit-3.2.xsd"
        &amp;gt;
    &amp;lt;DataExtractors&amp;gt;
        &amp;lt;DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/&amp;gt;
        &amp;lt;DataExtractor name="nodeName" registeredName="auditModel.extractor.nodeName"/&amp;gt;
        &amp;lt;DataExtractor name="nodeType" registeredName="auditModel.extractor.nodeType"/&amp;gt;

        &amp;lt;!-- Custom data extractor --&amp;gt;
        &amp;lt;DataExtractor name="siteName" class="com.aviva.alf.platformsample.SiteNameDataExtractor"/&amp;gt;
    &amp;lt;/DataExtractors&amp;gt;

    &amp;lt;PathMappings&amp;gt;
        &amp;lt;PathMap source="/share-site-access" target="/share-site-access"/&amp;gt;
    &amp;lt;/PathMappings&amp;gt;

    &amp;lt;Application name="ShareSiteAccess" key="share-site-access"&amp;gt;
        &amp;lt;RecordValue key="access" dataExtractor="simpleValue" dataSource="/share-site-access/transaction/action"
                     dataTrigger="/share-site-access/transaction/action"/&amp;gt;
        &amp;lt;RecordValue key="nodepath" dataExtractor="simpleValue" dataSource="/share-site-access/transaction/path"
                     dataTrigger="/share-site-access/transaction/path"/&amp;gt;
        &amp;lt;RecordValue key="nodename" dataExtractor="nodeName" dataSource="/share-site-access/transaction/node"
                     dataTrigger="/share-site-access/transaction/node"/&amp;gt;
        &amp;lt;RecordValue key="nodetype" dataExtractor="nodeType" dataSource="/share-site-access/transaction/node"
                     dataTrigger="/share-site-access/transaction/node"/&amp;gt;
        &amp;lt;RecordValue key="site" dataExtractor="siteName" dataSource="/share-site-access/transaction/path"
                     dataTrigger="/share-site-access/transaction/path"/&amp;gt;
    &amp;lt;/Application&amp;gt;
&amp;lt;/Audit&amp;gt;&lt;/PRE&gt;&lt;P&gt;Above is my share-site-audit.xml.&lt;/P&gt;&lt;P&gt;Here i have only changed:-&lt;/P&gt;&lt;PRE&gt;&amp;lt;PathMap source="/share-site-access" target="/share-site-access"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;from:-&lt;/P&gt;&lt;PRE&gt;&amp;lt;PathMap source="/alfresco-access" target="/share-site-access"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;As i dont want audit entries to be duplicated in both audit applications that is:- alfresco-access and share-site-access.&lt;/P&gt;&lt;P&gt;Please look at my alfresco-global.properties&lt;/P&gt;&lt;PRE&gt;audit.enabled= true
audit.share-site-access.enabled=true
audit.share-site-access.sub-actions.enabled=false
audit.filter.share-site-access.default.enabled=true
audit.filter.share-site-access.default.user=~System;~null;.*
audit.filter.share-site-access.default.path=/app:company_home/st:sites/.*
audit.filter.share-site-access.transaction.user=~System;~null;.*
audit.filter.share-site-access.transaction.path=/app:company_home/st:sites/.*
audit.filter.share-site-access.transaction.action=updateNodeProperties;CREATE
audit.filter.share-site-access.transaction.type=&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 13:40:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116822#M32346</guid>
      <dc:creator>piyush48</dc:creator>
      <dc:date>2020-09-10T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Application is Enabled but audit entry is not visible</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116823#M32347</link>
      <description>&lt;P&gt;As i have used alfresco-access as Data Producer it works fine but when i change path source to share-site-access it is not recording value. How can i make share-site-access as data producer so that my audit entries will only be entered in share-site-access audit application rather than in both alfresco-access and share-site-access.&lt;/P&gt;&lt;P&gt;Please do guide out.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 10:32:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116823#M32347</guid>
      <dc:creator>piyush48</dc:creator>
      <dc:date>2020-09-11T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Application is Enabled but audit entry is not visible</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116824#M32348</link>
      <description>&lt;P&gt;Of course you are now not getting any audit events anymore because there is no audit source called "share-site-access" unless you have also implemented a custom Java component that generates audit events with that source.&lt;/P&gt;
&lt;P&gt;I believe there is some confusion / misunderstanding of some aspects of auditing that is at the heart of this, and it does not help that Alfresco reuses names for different elements.&lt;/P&gt;
&lt;P&gt;- PathMap source: This is the path / name of audit entries as "recorded" in Java via the AuditComponentImpl - you cannot freely choose this and are fully dependent on what Java components actualyl record data. With Alfresco there are only two valid sources out of the box: /alfresco-api and /alfresco-access&lt;/P&gt;
&lt;P&gt;- PathMap target: This is the path / name that relates to the Application to which you want to route audit entries for actual recording / storing, so this always begins with the /&amp;lt;key-of-your-application&lt;/P&gt;
&lt;P&gt;- audit.filter.&amp;lt;name&amp;gt;.&amp;lt;setting&amp;gt;: Here, the name always relates to the name for the Java component that records audit entries via the AuditComponentImpl - so essentially the source of the PathMap, never the target&lt;/P&gt;
&lt;P&gt;Confusion likely arises from the fact that Alfresco by default comes with both a source and a target called alfresco-access, and Alfresco also documents that the audit.filter can be used to restrict what the audit application alfresco-access records, when in fact, it restricts what the source alfresco-access provides even before PathMap is processed. The effect is the same, apart from the fact that other PathMap which use alfresco-access as the source to a custom target are also transparently affected by the filtering.&lt;/P&gt;
&lt;P&gt;In your case, unless you develop custom Java components to record data entries separate from alfresco-access, you will have to use alfresco-access as the source for your custom application, and CANNOT configure a filter separately from alfresco-access.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 12:29:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116824#M32348</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-09-11T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Application is Enabled but audit entry is not visible</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116825#M32349</link>
      <description>&lt;P&gt;Hello my friend.&lt;BR /&gt;I'm trying to create a custom extractor, using SDK 4.3, and I get the error saying it couldn't find the bean.&lt;BR /&gt;How did you configure it? Apparently the system is loading the audit.xml before the beans.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 22:00:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/audit-application-is-enabled-but-audit-entry-is-not-visible/m-p/116825#M32349</guid>
      <dc:creator>filipehtf</dc:creator>
      <dc:date>2022-10-15T22:00:05Z</dc:date>
    </item>
  </channel>
</rss>

