AnsweredAssumed Answered

is it possible to limit the audit output

Question asked by mrksjs on Feb 27, 2012
Latest reply on Mar 1, 2012 by mrksjs
Hello,

i configured auditing for community version of alfresco 3.4.d and i managed to receive most of the details i need. however the audit output is massive, when im browsing my sites it seems like the logfile is exploding!
i created a file in /tomcat/shared/classes/alfresco/extension/audit like the following

<?xml version='1.0' encoding='UTF-8'?>

<!–
   An example of how user login details can be captured.
–>

<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"/>
    </DataExtractors>

    <DataGenerators>
       <DataGenerator name="personFullName" registeredName="auditModel.generator.personFullName"/>
    </DataGenerators>

    <PathMappings>
        <PathMap source="/alfresco-api/post/NodeService/createNode/no-error" target="/auditexamplecreate/create"/>
    </PathMappings>

    <Application name="AuditExampleCreate" key="auditexamplecreate">
        <AuditPath key="create">
       <RecordValue key="file" dataExtractor="simpleValue" dataSource="/auditexamplecreate/create/args/assocQName"/>
            <GenerateValue key="user" dataGenerator="personFullName"/>
        </AuditPath>
    </Application>

</Audit>

i'd have 2 questions:
- how can i limit the audit output to my configured "sets" (application,pathmapping,datagenerator,..) only
- is it possible to write the audit trail into a seperate file?


thanks

Outcomes