Hii all,
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.
<?xml version='1.0' encoding='UTF-8'?>
<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"
>
<DataExtractors>
<DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/>
<DataExtractor name="nodeName" registeredName="auditModel.extractor.nodeName"/>
<DataExtractor name="nodeType" registeredName="auditModel.extractor.nodeType"/>
<!-- Custom data extractor -->
<DataExtractor name="siteName" class="com.aviva.alf.platformsample.SiteNameDataExtractor"/>
</DataExtractors>
<PathMappings>
<PathMap source="/share-site-access" target="/share-site-access"/>
</PathMappings>
<Application name="ShareSiteAccess" key="share-site-access">
<RecordValue key="access" dataExtractor="simpleValue" dataSource="/share-site-access/transaction/action"
dataTrigger="/share-site-access/transaction/action"/>
<RecordValue key="nodepath" dataExtractor="simpleValue" dataSource="/share-site-access/transaction/path"
dataTrigger="/share-site-access/transaction/path"/>
<RecordValue key="nodename" dataExtractor="nodeName" dataSource="/share-site-access/transaction/node"
dataTrigger="/share-site-access/transaction/node"/>
<RecordValue key="nodetype" dataExtractor="nodeType" dataSource="/share-site-access/transaction/node"
dataTrigger="/share-site-access/transaction/node"/>
<RecordValue key="site" dataExtractor="siteName" dataSource="/share-site-access/transaction/path"
dataTrigger="/share-site-access/transaction/path"/>
</Application>
</Audit>Above is my share-site-audit.xml.
Here i have only changed:-
<PathMap source="/share-site-access" target="/share-site-access"/>
from:-
<PathMap source="/alfresco-access" target="/share-site-access"/>
As i dont want audit entries to be duplicated in both audit applications that is:- alfresco-access and share-site-access.
Please look at my alfresco-global.properties
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=