<?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 Re: Alfresco 4.2 Audit Filter in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4732#M2192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The audit filter can only filter the audit events if they actually contain the specific property to filter on. Filtering is performed on the inbound data. Since that inbound data does not contain the "user" property (instead it contains "loginUser") the event passes the user filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 22:03:28 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-02-02T22:03:28Z</dc:date>
    <item>
      <title>Alfresco 4.2 Audit Filter</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4731#M2191</link>
      <description>Hi,I'm trying to filter data in the build in alfresco-access audit application, but it's not working.I want to audit only READ and DELETE actions and exclude one particular user called synchronizer, so in my alfresco-global.properties I put this:# Auditaudit.enabled=trueaudit.tagging.enabled=falseau</description>
      <pubDate>Wed, 01 Feb 2017 17:40:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4731#M2191</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2017-02-01T17:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 4.2 Audit Filter</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4732#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The audit filter can only filter the audit events if they actually contain the specific property to filter on. Filtering is performed on the inbound data. Since that inbound data does not contain the "user" property (instead it contains "loginUser") the event passes the user filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 22:03:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4732#M2192</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-02-02T22:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 4.2 Audit Filter</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4733#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;thanks for your help, but reading &lt;A href="http://docs.alfresco.com/4.2/concepts/audit-40-example-filter.html" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt; guide is not clear what I have to write down. I looked also in AuditComponentImpl, but I see that it never checks PropertyAuditFilter because it is searching for a property named &lt;EM&gt;audit.filter.alfresco-api.post.AuthenticationService.default.enabled&lt;/EM&gt; or &lt;EM&gt;audit.filter.alfresco-api.pre.AuthenticationService.authenticate.default.enabled&lt;/EM&gt; but it doesn't find anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me what is the right configuration if I want to audit only READ and DELETE actions and exclude user synchronizer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I used also your&amp;nbsp;cleanAlfPropTables-PostgreSQL.sql and build it as a function. Now I wanted to contribute back, but don't know how. I have forked your repository, cloned mine locally, added the cleanAlfPropFunction-PostgreSQL.sql and pushed back in my repository.&lt;/P&gt;&lt;P&gt;How can I make a pull request?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 08:34:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4733#M2193</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2017-02-03T08:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 4.2 Audit Filter</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4734#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The clean up script has been integrated into Alfresco 5.x. Since mine is just a Gist I don't know if there even is a way to create a pull request for those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to change&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;audit.filter.alfresco-access.login.user=~System;~null;~synchronizer;.*&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;into&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;audit.filter.alfresco-api.post.AuthenticationService.authenticate.args.userName=~System;~null;~synchronizer;.*‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is because - as I said - audit filters only work on inbound data, and for the login use case the inbound data comes from the alfresco-api data producer and only if it is not rejected does it get mapped into the alfresco-access audit application. See the definition of &lt;A href="https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/config/alfresco/audit/alfresco-audit-access.xml#L33" rel="nofollow noopener noreferrer"&gt;alfresco-access path mapping&lt;/A&gt; for reference.&lt;/P&gt;&lt;P&gt;Years ago I filed&amp;nbsp;&lt;A href="https://issues.alfresco.com/jira/browse/MNT-10070" rel="nofollow noopener noreferrer"&gt;MNT-10070&lt;/A&gt; for better (easier to use) audit filter support but Alfresco has not really implemented that - instead they focused on a small thing in that ticket, fixed that and called it "done".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 08:51:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4734#M2194</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-02-03T08:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 4.2 Audit Filter</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4735#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for pointing me out &lt;A class="" href="https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/config/alfresco/audit/alfresco-audit-access.xml#L33" rel="nofollow noopener noreferrer" target="_blank"&gt;alfresco-access path mapping&lt;/A&gt;. Now I understand much better what to put as filter configuration.&lt;/P&gt;&lt;P&gt;Also your configuration works as you said, thank again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:31:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-4-2-audit-filter/m-p/4735#M2195</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2017-02-03T09:31:22Z</dc:date>
    </item>
  </channel>
</rss>

