<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay DXP - Audit: Limit or clean audit table?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120914736" />
  <subtitle>Liferay DXP - Audit: Limit or clean audit table?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120914736</id>
  <updated>2026-05-18T20:52:36Z</updated>
  <dc:date>2026-05-18T20:52:36Z</dc:date>
  <entry>
    <title>Liferay DXP - Audit: Limit or clean audit table?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120914735" />
    <author>
      <name>André Bräkling</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120914735</id>
    <updated>2021-08-16T19:55:41Z</updated>
    <published>2021-07-05T10:58:05Z</published>
    <summary type="html">&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;we are running Liferay DXP 7.1.10 GA1 (dxp-18-7110).&lt;/p&gt;
&lt;p&gt;While reviewing our backups, I noticed that the Liferay database has
  grown tremendously since the last update two years ago (6.2 to 7.1). A
  quick look at the tables then also showed that the Audit_AuditEvent
  table contains around 2 gigabytes of data (over 1.8 million entries,
  first one from the update day).&lt;/p&gt;
&lt;p&gt;Is there a mechanism to limit the number of entries (e.g. &amp;quot;last
  14 days&amp;quot; or &amp;quot;max. 2000 entries&amp;quot;)? In the configuration
  the &amp;quot;Audit Message Maximum Queue Size&amp;quot; is set to the default
  value of 200, but that seems to have no effect or is meant for
  something else...&lt;/p&gt;
&lt;p&gt;Otherwise, can we safely clean this table periodically via script? Or
  are there any dependencies here?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;André&lt;/p&gt;</summary>
    <dc:creator>André Bräkling</dc:creator>
    <dc:date>2021-07-05T10:58:05Z</dc:date>
  </entry>
</feed>
