<?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>article _deletedentitylogs take up disk space on C:\ in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/deletedentitylogs-take-up-disk-space-on-C/ta-p/1713929</link>
    <description>&lt;P&gt;Qlik Sense Enterprise soft deletes objects and stores the entities in the &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;_deletedentytilog&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;table in the QRS database.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A heavily used system with many tasks and frequent development activity, this table can consume a lot of disk space and could impact performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: Please perform a Repository database backup prior any changes.&lt;/P&gt;
&lt;P&gt;As of Qlik Sense &lt;STRONG&gt;February 2019&lt;/STRONG&gt;, an automatic clean up process cleans this table, the frequency of this process can be adjusted in the&lt;SPAN&gt;&lt;STRONG&gt; repository.exe.config&lt;/STRONG&gt;&lt;/SPAN&gt; file.&lt;/P&gt;
&lt;P&gt;The following configuration options were added:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.Enabled&lt;/SPAN&gt;&lt;/FONT&gt; - Defines if maintenance work should be enabled or not. Default true.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.Interval &lt;/SPAN&gt;&lt;/FONT&gt;- Defines how often the maintenance work should run. Default 24 hours.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The following configuration options have been changed from previous versions:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.StartAt &lt;/SPAN&gt;&lt;/FONT&gt;- Is no longer specified in local time. Instead the time is relative to UTC.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.CleaningThreshold&lt;/SPAN&gt; &lt;/FONT&gt;- Renamed from &lt;SPAN&gt;CleaningThresholdInDays&lt;/SPAN&gt; and is no longer an integer value. Instead the value is entered as a &lt;SPAN&gt;TimeSpan &lt;/SPAN&gt;in format &lt;SPAN&gt;days.hh:mm:ss&lt;/SPAN&gt;. Default &lt;SPAN&gt;90.00:00:00&lt;/SPAN&gt;. (Default value initially was 90 days, later versions was changed to 30, this value can be configured if its necessary to cleanup in shorter period of time).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But if space needs to be reclaimed faster, a workaround can be deployed:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the table that is wasting space on &lt;SPAN&gt;C:\&lt;/SPAN&gt; drive is "&lt;SPAN&gt;_deletedentitylog&lt;/SPAN&gt;"&amp;nbsp; &amp;nbsp;it is safe to empty the table manually:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Schedule a minimum of 30 min of down time and stop all Qlik Sense Services except for the Qlik Sense Repository Database service.&lt;/LI&gt;
&lt;LI&gt;Connect to &lt;STRONG&gt;Postgres DB &lt;/STRONG&gt;with &lt;STRONG&gt;PGAdmin&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener" data-cke-saved-href="/articles/Basic/Installing-and-Configuring-pgAdmin-4-for-Qlik-Sense-June-2017-Release-and-up"&gt;Installing and Configuring pgAdmin 4 for Qlik Sense June 2017 Release and up&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;QSR Database&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Open &lt;STRONG&gt;Query &lt;/STRONG&gt;tool&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Issue the query&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;truncate "_deletedentitylog";​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Restart Qlik Sense Services starting from Qlik Sense Repository Service and Qlik Sense Dispatcher&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;When truncating the table a new empty file will be created for that table.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In &lt;STRONG&gt;May 2021&lt;/STRONG&gt; a new parameter was introduced that allows to exclude logging entries that are highly contributing to the size of the table and are NOT valuable in terms of potential backtracking.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="code-java"&gt;&amp;lt;add key=&lt;SPAN class="code-quote"&gt;"DeletedEntityLog.&lt;STRONG&gt;ExcludedEntities&lt;/STRONG&gt;"&lt;/SPAN&gt; value=&lt;SPAN class="code-quote"&gt;"TempContent;ExecutionResult;ExecutionResult.Detail;ExecutionSession"&lt;/SPAN&gt; /&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 20:23:45 GMT</pubDate>
    <dc:creator>Filippo_Nicolussi_P</dc:creator>
    <dc:date>2022-03-04T20:23:45Z</dc:date>
    <item>
      <title>_deletedentitylogs take up disk space on C:\</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/deletedentitylogs-take-up-disk-space-on-C/ta-p/1713929</link>
      <description>&lt;P&gt;Qlik Sense Enterprise soft deletes objects and stores the entities in the &lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;_deletedentytilog&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;table in the QRS database.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A heavily used system with many tasks and frequent development activity, this table can consume a lot of disk space and could impact performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: Please perform a Repository database backup prior any changes.&lt;/P&gt;
&lt;P&gt;As of Qlik Sense &lt;STRONG&gt;February 2019&lt;/STRONG&gt;, an automatic clean up process cleans this table, the frequency of this process can be adjusted in the&lt;SPAN&gt;&lt;STRONG&gt; repository.exe.config&lt;/STRONG&gt;&lt;/SPAN&gt; file.&lt;/P&gt;
&lt;P&gt;The following configuration options were added:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.Enabled&lt;/SPAN&gt;&lt;/FONT&gt; - Defines if maintenance work should be enabled or not. Default true.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.Interval &lt;/SPAN&gt;&lt;/FONT&gt;- Defines how often the maintenance work should run. Default 24 hours.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The following configuration options have been changed from previous versions:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.StartAt &lt;/SPAN&gt;&lt;/FONT&gt;- Is no longer specified in local time. Instead the time is relative to UTC.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DeletedEntityLogMaintenance.CleaningThreshold&lt;/SPAN&gt; &lt;/FONT&gt;- Renamed from &lt;SPAN&gt;CleaningThresholdInDays&lt;/SPAN&gt; and is no longer an integer value. Instead the value is entered as a &lt;SPAN&gt;TimeSpan &lt;/SPAN&gt;in format &lt;SPAN&gt;days.hh:mm:ss&lt;/SPAN&gt;. Default &lt;SPAN&gt;90.00:00:00&lt;/SPAN&gt;. (Default value initially was 90 days, later versions was changed to 30, this value can be configured if its necessary to cleanup in shorter period of time).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But if space needs to be reclaimed faster, a workaround can be deployed:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the table that is wasting space on &lt;SPAN&gt;C:\&lt;/SPAN&gt; drive is "&lt;SPAN&gt;_deletedentitylog&lt;/SPAN&gt;"&amp;nbsp; &amp;nbsp;it is safe to empty the table manually:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Schedule a minimum of 30 min of down time and stop all Qlik Sense Services except for the Qlik Sense Repository Database service.&lt;/LI&gt;
&lt;LI&gt;Connect to &lt;STRONG&gt;Postgres DB &lt;/STRONG&gt;with &lt;STRONG&gt;PGAdmin&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener" data-cke-saved-href="/articles/Basic/Installing-and-Configuring-pgAdmin-4-for-Qlik-Sense-June-2017-Release-and-up"&gt;Installing and Configuring pgAdmin 4 for Qlik Sense June 2017 Release and up&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;QSR Database&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Open &lt;STRONG&gt;Query &lt;/STRONG&gt;tool&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Issue the query&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;truncate "_deletedentitylog";​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Restart Qlik Sense Services starting from Qlik Sense Repository Service and Qlik Sense Dispatcher&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;When truncating the table a new empty file will be created for that table.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In &lt;STRONG&gt;May 2021&lt;/STRONG&gt; a new parameter was introduced that allows to exclude logging entries that are highly contributing to the size of the table and are NOT valuable in terms of potential backtracking.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="code-java"&gt;&amp;lt;add key=&lt;SPAN class="code-quote"&gt;"DeletedEntityLog.&lt;STRONG&gt;ExcludedEntities&lt;/STRONG&gt;"&lt;/SPAN&gt; value=&lt;SPAN class="code-quote"&gt;"TempContent;ExecutionResult;ExecutionResult.Detail;ExecutionSession"&lt;/SPAN&gt; /&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 20:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/deletedentitylogs-take-up-disk-space-on-C/ta-p/1713929</guid>
      <dc:creator>Filippo_Nicolussi_P</dc:creator>
      <dc:date>2022-03-04T20:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: _deletedentitylogs take up disk space on C:\</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/deletedentitylogs-take-up-disk-space-on-C/tac-p/2056625#M8841</link>
      <description>&lt;P&gt;At today on Qlik Sense February 2023 here below list of options used to keep under control size of the table mentioned:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;add key="DeletedEntityLog.ExcludedEntities" value="TempContent;ExecutionResult;ExecutionResult.Detail;ExecutionSession" /&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenance.BatchSize" value="5000" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Minimum value is 1 --&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceByDate.CleaningThreshold" value="30.00:00:00" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Default value is 30 days --&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceByDate.Enabled" value="true" /&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceByDate.Interval" value="1.00:00:00" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Minimum value is 1 minute --&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceByDate.StartAt" value="02:00:00" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Relative to UTC time (hh:mm:ss), minimum value is 00:00:00, maximum value is 23:59:59 --&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceBySize.CleaningThreshold" value="1024" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Default value is 1024 mega bytes --&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceBySize.Enabled" value="true" /&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceBySize.Interval" value="1.00:00:00" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Minimum value is 1 minute --&amp;gt;&lt;BR /&gt;&amp;lt;add key="DeletedEntityLogMaintenanceBySize.StartAt" value="04:00:00" /&amp;gt;&lt;BR /&gt;&amp;lt;!-- Relative to UTC time (hh:mm:ss), minimum value is 00:00:00, maximum value is 23:59:59 --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In multi-node scenario suggestion is to enable the maintenance only on two nodes (for example Central and one Failover Candidate) and to shift the StartAt&amp;nbsp; for the second node.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 06:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/deletedentitylogs-take-up-disk-space-on-C/tac-p/2056625#M8841</guid>
      <dc:creator>Filippo_Nicolussi_P</dc:creator>
      <dc:date>2023-04-04T06:46:47Z</dc:date>
    </item>
  </channel>
</rss>

