<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-2083 Cleanup script removes archived kdb files when passed option to clean up log files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2083 Cleanup script removes archived kdb files when passed option to clean up log files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files</link><pubDate>Tue, 25 Feb 2020 00:12:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Current Revision posted to Appian Knowledge Base by James Lee on 2/25/2020 12:12:58 AM&lt;br /&gt;
&lt;table style="background-color:#bcedaf;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#cleanup-script" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;to clean up log files, it is observed that in addition to log files, archived &lt;strong&gt;*.kdb&lt;/strong&gt; files are incorrectly removed.&lt;/p&gt;
&lt;p&gt;Sample syntax:&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;The following output is observed in the terminal:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-2083 Cleanup script removes archived kdb files when passed option to clean up log files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/34</link><pubDate>Tue, 25 Feb 2020 00:12:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 34 posted to Appian Knowledge Base by James Lee on 2/25/2020 12:12:37 AM&lt;br /&gt;
&lt;table style="background-color:#bcedaf;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#cleanup-script" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;to clean up log files, it is observed that in addition to log files, archived &lt;strong&gt;*.kdb&lt;/strong&gt; files are incorrectly removed.&lt;/p&gt;
&lt;p&gt;Sample syntax:&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;The following output is observed in the terminal:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files when passed in option to clean up log files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/33</link><pubDate>Mon, 24 Feb 2020 21:32:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 33 posted to Appian Knowledge Base by Tom Ryan on 2/24/2020 9:32:11 PM&lt;br /&gt;
&lt;table style="background-color:#bcedaf;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#cleanup-script" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;to clean up log files, it is observed that in addition to log files, archived &lt;strong&gt;*.kdb&lt;/strong&gt; files are incorrectly removed.&lt;/p&gt;
&lt;p&gt;Sample syntax:&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;The following output is observed in the terminal:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files when passed in option to clean up log files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/32</link><pubDate>Tue, 11 Feb 2020 05:36:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 32 posted to Appian Knowledge Base by Parmida Borhani on 2/11/2020 5:36:31 AM&lt;br /&gt;
&lt;table style="background-color:#bcedaf;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#cleanup-script" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;to clean up log files, it is observed that in addition to log files archived &lt;strong&gt;*.kdb&lt;/strong&gt; files are incorrectly removed.&lt;/p&gt;
&lt;p&gt;Sample syntax:&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;The following output is observed in the terminal:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script also removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/31</link><pubDate>Mon, 10 Feb 2020 17:09:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 31 posted to Appian Knowledge Base by Hamza Ilyas on 2/10/2020 5:09:47 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#cleanup-script"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;with syntax&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;,&amp;nbsp;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;archived&amp;nbsp;&lt;/span&gt;&lt;strong&gt;*.kdb&lt;/strong&gt;&lt;span&gt;&amp;nbsp;files are deleted in addition to the log files:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script also removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/30</link><pubDate>Mon, 10 Feb 2020 16:59:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 30 posted to Appian Knowledge Base by Hamza Ilyas on 2/10/2020 4:59:34 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#log-files" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;with syntax&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;,&amp;nbsp;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;archived&amp;nbsp;&lt;/span&gt;&lt;strong&gt;*.kdb&lt;/strong&gt;&lt;span&gt;&amp;nbsp;files are deleted in addition to the log files:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/29</link><pubDate>Fri, 07 Feb 2020 21:16:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 29 posted to Appian Knowledge Base by James Lee on 2/7/2020 9:16:37 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;After running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#log-files" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;with syntax&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;,&amp;nbsp;&lt;span style="font-family:inherit;"&gt;&lt;span&gt;archived&amp;nbsp;&lt;/span&gt;&lt;strong&gt;*.kdb&lt;/strong&gt;&lt;span&gt;&amp;nbsp;files are deleted:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;log.xml&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/28</link><pubDate>Fri, 07 Feb 2020 21:06:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 28 posted to Appian Knowledge Base by Hamza Ilyas on 2/7/2020 9:06:46 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Archived kdb files are deleted after running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#log-files" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt;&amp;nbsp;within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;log.xml&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: February 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/27</link><pubDate>Fri, 07 Feb 2020 20:34:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 27 posted to Appian Knowledge Base by Hamza Ilyas on 2/7/2020 8:34:19 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Archived kdb files are deleted after running the &lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#log-files" rel="noopener noreferrer" target="_blank"&gt;Cleanup script&lt;/a&gt; is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.bat(.sh) logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/*/*.kdb&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-h" rel="noopener noreferrer" target="_blank"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-k" rel="noopener noreferrer" target="_blank"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-o" rel="noopener noreferrer" target="_blank"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-r" rel="noopener noreferrer" target="_blank"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;log.xml&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: January 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/26</link><pubDate>Tue, 14 Jan 2020 15:46:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 26 posted to Appian Knowledge Base by James Lee on 1/14/2020 3:46:33 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;18.3.272.0&lt;/li&gt;
&lt;li&gt;18.4.232.0&lt;/li&gt;
&lt;li&gt;19.1.197.0&lt;/li&gt;
&lt;li&gt;19.2.180.0&lt;/li&gt;
&lt;li&gt;19.3.112.0&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;&lt;code&gt;log.xml&lt;/code&gt;&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: January 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/25</link><pubDate>Wed, 08 Jan 2020 14:45:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 25 posted to Appian Knowledge Base by Hamza Ilyas on 1/8/2020 2:45:38 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;18.3.272.0&lt;/li&gt;
&lt;li&gt;18.4.232.0&lt;/li&gt;
&lt;li&gt;19.1.197.0&lt;/li&gt;
&lt;li&gt;19.2.180.0&lt;/li&gt;
&lt;li&gt;19.3.112.0&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;&lt;code&gt;log.xml&lt;/code&gt;&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: January 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/24</link><pubDate>Wed, 08 Jan 2020 14:45:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 24 posted to Appian Knowledge Base by Hamza Ilyas on 1/8/2020 2:45:02 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;18.3.272.0&lt;/li&gt;
&lt;li&gt;18.4.232.0&lt;/li&gt;
&lt;li&gt;19.1.197.0&lt;/li&gt;
&lt;li&gt;19.2.180.0&lt;/li&gt;
&lt;li&gt;19.3.112.0&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;&lt;code&gt;log.xml&lt;/code&gt;&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, known issues, Cleanup Script, fixed issues, infrastructure, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/23</link><pubDate>Wed, 08 Jan 2020 14:42:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 23 posted to Appian Knowledge Base by Hamza Ilyas on 1/8/2020 2:42:25 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146512&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;18.3.272.0&lt;/li&gt;
&lt;li&gt;18.4.232.0&lt;/li&gt;
&lt;li&gt;19.1.197.0&lt;/li&gt;
&lt;li&gt;19.2.180.0&lt;/li&gt;
&lt;li&gt;19.3.112.0&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To prevent the &lt;code&gt;cleanup.bat(.sh)&lt;/code&gt; script from deleting archived kdb files, remove the following lines from the&amp;nbsp;&lt;strong&gt;&lt;code&gt;log.xml&lt;/code&gt;&lt;/strong&gt; file&amp;nbsp;found in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/22</link><pubDate>Wed, 18 Dec 2019 19:01:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 22 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 7:01:40 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/21</link><pubDate>Wed, 18 Dec 2019 19:01:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 21 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 7:01:18 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/20</link><pubDate>Wed, 18 Dec 2019 19:00:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 20 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 7:00:58 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/19</link><pubDate>Wed, 18 Dec 2019 19:00:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 7:00:40 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;More information regarding the Cleanup script can be found in the following article:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files"&gt;https://docs.appian.com/suite/help/19.4/Data_Maintenance.html#log-files&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/18</link><pubDate>Wed, 18 Dec 2019 18:54:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 6:54:48 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af1.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af2.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af3.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af4.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af5.kdb
[exec] Deleting: &amp;lt;APPIAN_HOME&amp;gt;/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/17</link><pubDate>Wed, 18 Dec 2019 18:52:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 6:52:54 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af1.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af2.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af3.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af4.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af5.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/16</link><pubDate>Wed, 18 Dec 2019 18:52:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 6:52:31 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command: &lt;code&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af1.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af2.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af3.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af4.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af5.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Cleanup script removes archived kdb files</title><link>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files/revision/15</link><pubDate>Wed, 18 Dec 2019 18:49:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b498371d-5fe8-4a1a-a7c5-9eaf682e162a</guid><dc:creator>Hamza Ilyas</dc:creator><comments>https://community.appian.com/support/w/kb/1627/kb-2083-cleanup-script-removes-archived-kdb-files-when-passed-option-to-clean-up-log-files#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Hamza Ilyas on 12/18/2019 6:49:38 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Cleanup script is run within&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/&lt;/span&gt;&lt;/code&gt; using the following command:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;cleanup.sh/bat logs -delete -keep &amp;lt;# of days of logs kept&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Running the above script does not only delete logs, but will also delete archived KDB files, which can be noticed as part of the output:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="code-java"&gt;[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af1.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af2.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af3.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af4.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af5.kdb
[exec] Deleting: /usr/appl/aap/appian/services/data/archived/forums/af6.kdb&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;The &lt;code&gt;cleanup.sh/bat&lt;/code&gt; script utilizes &lt;code&gt;log.xml&lt;/code&gt; found in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Within &lt;code&gt;log.xml,&amp;nbsp;&lt;/code&gt;there is remnant code that is executed when&amp;nbsp;&lt;code&gt;-&lt;tt&gt;logs&lt;/tt&gt;&lt;/code&gt;&amp;nbsp;option is used with a different script (&lt;code&gt;cleanupArchives.sh/bat&lt;span style="font-family:inherit;"&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cleanupArchives.sh/bat&lt;/code&gt; script no longer uses the &lt;code&gt;-logs&lt;/code&gt; option&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue has been resolved in a new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;Delete the following lines of code from the &lt;code&gt;log.xml&lt;/code&gt; file:&lt;/p&gt;
&lt;pre class="code-java" style="padding-left:30px;"&gt;&amp;lt;!-- Komodo Log Archive Cleanup --&amp;gt;
  &amp;lt;echo message=&lt;span class="code-quote"&gt;&amp;quot;Cleaning Service Manager Transaction Log Archives&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;property environment=&lt;span class="code-quote"&gt;&amp;quot;env&amp;quot;&lt;/span&gt;/&amp;gt;
  &amp;lt;&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;
    &amp;lt;os family=&lt;span class="code-quote"&gt;&amp;quot;windows&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;then&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;cmd&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;/c cleanupArchives.bat logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/then&amp;gt;
    &amp;lt;&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
      &amp;lt;exec executable=&lt;span class="code-quote"&gt;&amp;quot;/bin/bash&amp;quot;&lt;/span&gt; dir=&lt;span class="code-quote"&gt;&amp;quot;${env.AE_HOME}/services/bin&amp;quot;&lt;/span&gt;&amp;gt;
        &amp;lt;arg line=&lt;span class="code-quote"&gt;&amp;quot;cleanupArchives.sh logs -k ${log.numkeep}&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/exec&amp;gt;
    &amp;lt;/&lt;span class="code-keyword"&gt;else&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="code-keyword"&gt;if&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: cleanup, Cleanup Script, cleanup -logs&lt;/div&gt;
</description></item></channel></rss>