<?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 Qlik Sense: Steps to reduce Excessive HDD space occupied by PostgreSQL. in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Steps-to-reduce-Excessive-HDD-space-occupied-by/ta-p/1714166</link>
    <description>&lt;P&gt;PostgreSQL log (Qlik Sense logging) fills up disk. Log database needs to be cleaned.&lt;BR /&gt;&lt;BR /&gt;Folder "&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6\base\&lt;/SPAN&gt;" is occupying 20GB+ with no obvious reasons. How to fix?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Likely caused by corruption in database "QLogs". As this database is for centralized logging only, dropping it should not affect Qlik Sense's functionality. The exact mechanism / cause / trigger is unknown at the moment.&lt;/P&gt;
&lt;P&gt;To investigate which table takes up too much space, see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390" target="_self"&gt;Excess space consumption by Repository folder of Qlik &lt;/A&gt;.&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Please review the supported method of purging the database as documented on the &lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Troubleshooting-Qlik-logging-service-database-size-urgently-needs-to-be-reduced.htm" target="_blank" rel="noopener"&gt;Qlik Help Site&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The database admin can use the manual purge option offered through the&amp;nbsp;Qlik Logging Service.&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Open a command prompt with administrator privileges.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Go to&amp;nbsp;C:\Program Files\Qlik\Sense\Logging.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Run&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Qlik.Logging.Service.exe archive --cutoff&amp;nbsp;X&lt;/SPAN&gt;&amp;nbsp;(where&amp;nbsp;X&amp;nbsp;is the number of days).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Run&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Qlik.Logging.Service.exe purge --cutoff&amp;nbsp;X&lt;/SPAN&gt;&amp;nbsp;(where&amp;nbsp;X&amp;nbsp;is the number of days, Specify zero to purge all the entries.).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If presented with a message stating the system is too busy, retry the command.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If the second try generates the same message, try again at a less busy time on the server.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Restart the&amp;nbsp;Qlik Logging Service.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;&lt;BR /&gt;Purging log entries:&lt;BR /&gt;&amp;nbsp; Purges all the archived log entries that are older than specified cutoff.&lt;BR /&gt;&amp;nbsp; Usage: &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Qlik.Logging.Service.exe purge [&amp;lt;options&amp;gt;]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; OPTIONS&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; &amp;nbsp; --cutoff or -c (Required)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cutoff in days; unless the --hours option is used in which case the value is interpreted as hours.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Specify zero to purge all the entries.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --hours (Optional) Causes the value given for the purge cutoff (--cutoff) to be interpreted as hours instead of the default interpretation as days&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Should this method not be possible, the database could be entirely dropped. Note that logging still takes place on disk and is archived to a central folder, so no loss of data logging is expected from this step. If you wish to leave the logging database off after this, be sure to stop the logging service on each node in the environment. Otherwise, follow the steps below to re-set it up.&lt;BR /&gt;&lt;BR /&gt;Follow these steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Backup first. Either use pg_dump.exe command or, in the case of Virtual Machine, do a full snapshot of the machine.
&lt;UL&gt;
&lt;LI&gt;Backup steps can be found in &lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Backup-and-restore.htm" target="_blank" rel="noopener"&gt;HELP page&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Stop the Qlik Logging Service on all nodes&lt;/LI&gt;
&lt;LI&gt;Start an&amp;nbsp;elevated command line window and run following commands:
&lt;UL&gt;
&lt;LI&gt;"C:\Program&amp;nbsp;Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin\dropdb.exe" -h localhost -p 4432 -U postgres QLogs&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;"C:\Program&amp;nbsp;Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin\createdb.exe" -h localhost -p 4432 -U postgres -T template0 QLogs&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Once above commands are finished,&amp;nbsp;restart all Qlik Logging services on each node.&lt;/LI&gt;
&lt;LI&gt;Check if C drive has more space freed.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Related Content&lt;/H3&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390" target="_self"&gt;Excess space consumption by Repository folder of Qlik &lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 10:26:18 GMT</pubDate>
    <dc:creator>Andre_Sostizzo</dc:creator>
    <dc:date>2021-05-25T10:26:18Z</dc:date>
    <item>
      <title>Qlik Sense: Steps to reduce Excessive HDD space occupied by PostgreSQL.</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Steps-to-reduce-Excessive-HDD-space-occupied-by/ta-p/1714166</link>
      <description>&lt;P&gt;PostgreSQL log (Qlik Sense logging) fills up disk. Log database needs to be cleaned.&lt;BR /&gt;&lt;BR /&gt;Folder "&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6\base\&lt;/SPAN&gt;" is occupying 20GB+ with no obvious reasons. How to fix?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Likely caused by corruption in database "QLogs". As this database is for centralized logging only, dropping it should not affect Qlik Sense's functionality. The exact mechanism / cause / trigger is unknown at the moment.&lt;/P&gt;
&lt;P&gt;To investigate which table takes up too much space, see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390" target="_self"&gt;Excess space consumption by Repository folder of Qlik &lt;/A&gt;.&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Please review the supported method of purging the database as documented on the &lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Troubleshooting-Qlik-logging-service-database-size-urgently-needs-to-be-reduced.htm" target="_blank" rel="noopener"&gt;Qlik Help Site&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The database admin can use the manual purge option offered through the&amp;nbsp;Qlik Logging Service.&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Open a command prompt with administrator privileges.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Go to&amp;nbsp;C:\Program Files\Qlik\Sense\Logging.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Run&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Qlik.Logging.Service.exe archive --cutoff&amp;nbsp;X&lt;/SPAN&gt;&amp;nbsp;(where&amp;nbsp;X&amp;nbsp;is the number of days).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Run&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Qlik.Logging.Service.exe purge --cutoff&amp;nbsp;X&lt;/SPAN&gt;&amp;nbsp;(where&amp;nbsp;X&amp;nbsp;is the number of days, Specify zero to purge all the entries.).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If presented with a message stating the system is too busy, retry the command.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If the second try generates the same message, try again at a less busy time on the server.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Restart the&amp;nbsp;Qlik Logging Service.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;&lt;BR /&gt;Purging log entries:&lt;BR /&gt;&amp;nbsp; Purges all the archived log entries that are older than specified cutoff.&lt;BR /&gt;&amp;nbsp; Usage: &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Qlik.Logging.Service.exe purge [&amp;lt;options&amp;gt;]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; OPTIONS&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp; &amp;nbsp; --cutoff or -c (Required)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cutoff in days; unless the --hours option is used in which case the value is interpreted as hours.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Specify zero to purge all the entries.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --hours (Optional) Causes the value given for the purge cutoff (--cutoff) to be interpreted as hours instead of the default interpretation as days&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Should this method not be possible, the database could be entirely dropped. Note that logging still takes place on disk and is archived to a central folder, so no loss of data logging is expected from this step. If you wish to leave the logging database off after this, be sure to stop the logging service on each node in the environment. Otherwise, follow the steps below to re-set it up.&lt;BR /&gt;&lt;BR /&gt;Follow these steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Backup first. Either use pg_dump.exe command or, in the case of Virtual Machine, do a full snapshot of the machine.
&lt;UL&gt;
&lt;LI&gt;Backup steps can be found in &lt;A href="https://help.qlik.com/en-US/sense-admin/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Deploy_QSEoW/Backup-and-restore.htm" target="_blank" rel="noopener"&gt;HELP page&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Stop the Qlik Logging Service on all nodes&lt;/LI&gt;
&lt;LI&gt;Start an&amp;nbsp;elevated command line window and run following commands:
&lt;UL&gt;
&lt;LI&gt;"C:\Program&amp;nbsp;Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin\dropdb.exe" -h localhost -p 4432 -U postgres QLogs&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;"C:\Program&amp;nbsp;Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin\createdb.exe" -h localhost -p 4432 -U postgres -T template0 QLogs&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Once above commands are finished,&amp;nbsp;restart all Qlik Logging services on each node.&lt;/LI&gt;
&lt;LI&gt;Check if C drive has more space freed.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Related Content&lt;/H3&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390" target="_self"&gt;Excess space consumption by Repository folder of Qlik &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 10:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Steps-to-reduce-Excessive-HDD-space-occupied-by/ta-p/1714166</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-05-25T10:26:18Z</dc:date>
    </item>
  </channel>
</rss>

