<?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-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts</link><pubDate>Wed, 21 Jan 2026 16:42:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Kaushal Patel</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Current Revision posted to Appian Knowledge Base by Kaushal Patel on 1/21/2026 4:42:30 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;span&gt;&amp;nbsp;&lt;strong&gt;appian_sm_log_generator.sh &lt;/strong&gt;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_sm_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_sm_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/Dpf4xwio6208jQpCnE-LNzSKwHEhz8Fk_xX3XoaKFqjPainoBjBflreByqNTTmDcRVHj9Pk0hGhLFKaNA0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site*&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site* 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/18</link><pubDate>Wed, 21 Jan 2026 16:41:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Kaushal Patel</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Kaushal Patel on 1/21/2026 4:41:20 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;span&gt;&amp;nbsp;&lt;strong&gt;appian_sm_log_generator.sh &lt;/strong&gt;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_sm_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_sm_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/Dpf4xwio6208jQpCnE-LNzSKwHEhz8Fk_xX3XoaKFqjPainoBjBflreByqNTTmDcRVHj9Pk0hGhLFKaNA0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site*&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site* 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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:&amp;nbsp;July 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/17</link><pubDate>Thu, 28 Aug 2025 14:30:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 17 posted to Appian Knowledge Base by pauline.delacruz on 8/28/2025 2:30:19 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;span&gt;&amp;nbsp;&lt;strong&gt;appian_sm_log_generator.sh &lt;/strong&gt;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_sm_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_sm_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3613498"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site*&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site* 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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:&amp;nbsp;July 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/16</link><pubDate>Wed, 02 Jul 2025 20:54:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 16 posted to Appian Knowledge Base by pauline.delacruz on 7/2/2025 8:54:59 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;span&gt;&amp;nbsp;&lt;strong&gt;appian_sm_log_generator.sh &lt;/strong&gt;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_sm_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_sm_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3394589"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site*&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site* 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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:&amp;nbsp;July 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/15</link><pubDate>Wed, 02 Jul 2025 20:53:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 15 posted to Appian Knowledge Base by pauline.delacruz on 7/2/2025 8:53:42 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;span&gt;&amp;nbsp;&lt;strong&gt;appian_sm_log_generator.sh &lt;/strong&gt;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3394589"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site*&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site* 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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:&amp;nbsp;July 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/14</link><pubDate>Thu, 01 May 2025 19:29:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 14 posted to Appian Knowledge Base by pauline.delacruz on 5/1/2025 7:29:07 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3394589"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site*&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh *my-appian-site* 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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: May 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/13</link><pubDate>Thu, 01 May 2025 19:22:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 13 posted to Appian Knowledge Base by pauline.delacruz on 5/1/2025 7:22:35 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3394589"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh my-appian-site&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh my-appian-site 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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: May 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/12</link><pubDate>Thu, 01 May 2025 19:21:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 12 posted to Appian Knowledge Base by pauline.delacruz on 5/1/2025 7:21:54 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3394589"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh my-appian-site&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh my-appian-site 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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: May 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator and Diagnostics scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/11</link><pubDate>Thu, 01 May 2025 18:16:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 11 posted to Appian Knowledge Base by pauline.delacruz on 5/1/2025 6:16:55 PM&lt;br /&gt;
&lt;h2 id="mcetoc_1iq1g0qe10"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian is made up of multiple components, all of which must remain healthy for the platform to function properly. Traditionally, checking the health of each component requires running separate built-in scripts, which can be time consuming. Troubleshooting often involves collecting various log files based on the issue at hand - a process that typically requires manually identifying, zipping, and compressing multiple files and folders across different components.&lt;/p&gt;
&lt;p&gt;This article introduces the following tools that simplify and streamline this process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The Appian Log Generator scripts - Quickly creates a tar file containing relevant logs from different Appian components, reducing the manual effort involved in log collection.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The&amp;nbsp;Appian Diagnostics&amp;nbsp;script - G&lt;/span&gt;athers essential health metrics from the Appian environment and the underlying server in a fast and efficient way.&lt;/li&gt;
&lt;li&gt;The Appian on Kubernetes Log Generator and Diagnostics script - Gathers logging, metrics, and configuration details from the Appian environment, designed specifically for Appian on Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Table of Contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#log-generator"&gt;What are the Appian Log Generator scripts?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#diagnostics"&gt;What is the Appian Diagnostics script?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#aok"&gt;Equivalent for Appian on Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions"&gt;Instructions (non-Kubernetes)&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions-log-generation"&gt;Log Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions-diagnostics"&gt;Diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="/solution-engineering/w/kb_draft/3662/revision-kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#instructions-aok"&gt;Instructions (Kubernetes)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mcetoc_1iq1g0qe11"&gt;&lt;a id="log-generator"&gt;&lt;/a&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation for non-containerized Appian (running on Windows or Linux OS):&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;-&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most&amp;nbsp; recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;code&gt;logs/&lt;/code&gt;&lt;/span&gt;&lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;search-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;data-server&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory hosting the data-server logs.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m1f316"&gt;&lt;a id="diagnostics"&gt;&lt;/a&gt;What is the Appian&amp;nbsp;Diagnostics&amp;nbsp;script?&lt;/h3&gt;
&lt;p&gt;The Appian Diagnostics script&amp;nbsp;&lt;strong&gt;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;combines the different diagnostic scripts into a single script so that the state of each component in the environment can be understood by running one single script. In addition to the health of the Appian components the script also provides system level details like the RAM, CPU and disk usage of the server used to host Appian.&lt;/p&gt;
&lt;p&gt;Note that this script does&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;interact with log files or retrieves any information that could be deemed sensitive in nature, apart from server hostnames. The script only leverages the existing out-of-the-box diagnostic scripts and prints the output to a new log file. The script only gathers the details of the Appian components which are hosted on the server that the script is run on.&lt;/p&gt;
&lt;h3 id="mcetoc_1iq1m3d3d7"&gt;&lt;a id="aok"&gt;&lt;/a&gt;Equivalent for Appian on Kubernetes&lt;/h3&gt;
&lt;p&gt;In addition to the above scripts, Appian Support also maintains one script for both log generation and diagnostics for Appian on Kubernetes.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;aok_log_diagnostic_script.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;-&amp;nbsp;This script retrieves:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;Pod logs for all core Appian components in the site&amp;#39;s namespace.&lt;/li&gt;
&lt;li&gt;Pod and node resource metrics and status outputs.&lt;/li&gt;
&lt;li&gt;The Appian custom resource definition (CRD).&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe12"&gt;&lt;a id="instructions"&gt;&lt;/a&gt;Instructions (non-Kubernetes)&lt;/h2&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-log-generation"&gt;&lt;/a&gt;Log Generation Scripts&lt;/h3&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt;&amp;nbsp;folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tar.gz&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1iq1m6u6n8"&gt;&lt;a id="instructions-diagnostics"&gt;&lt;/a&gt;Diagnostic&amp;nbsp;Script&lt;/h3&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;Download the script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the server which hosts Appian.&lt;/li&gt;
&lt;li&gt;Make the&lt;strong&gt;&amp;nbsp;appian_health_diagnostics.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;script executable.
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x&amp;nbsp;appian_health_diagnostics&lt;span&gt;.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run the following command:&amp;nbsp;&lt;code&gt;appian_health_diagnostics.sh&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&amp;nbsp;-d *APPIAN_HOME* -p *SERVICE_MANAGER_PASSWORD*&lt;/code&gt;
&lt;ol&gt;
&lt;li&gt;eg:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./&lt;span&gt;appian_health_diagnostics.sh&lt;/span&gt;&amp;nbsp;-d&amp;nbsp;/usr/local/appian/ae -p password&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the diagnostic file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;APPIAN_HOME/logs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory.&lt;/li&gt;
&lt;li&gt;Attach the newly created diagnostic file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe13"&gt;&lt;a id="instructions-aok"&gt;&lt;/a&gt;Instructions (Appian on Kubernetes)&lt;/h2&gt;
&lt;p&gt;The script to gather logs and metrics for Appian on Kubernetes can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://forum.appian.com/suite/doc/3394589"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the script in a location where it can reach the cluster. The script works by executing a series of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;kubectl&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;commands, so any CLI that can reach the cluster&amp;#39;s API Server should work.&lt;/li&gt;
&lt;li&gt;Make the script executable. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;chmod +x aok_log_diagnostic_script.sh&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script, passing in a parameter for the namespace for your Appian site. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh my-appian-site&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Optionally you can also pass in a parameter to specify how many days of logging to collect (default is logs from the last 2 days). For example, to collect logs from the past 3 days you would run
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;./aok_log_diagnostic_script.sh my-appian-site 3&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The script will generate a file called&amp;nbsp;&lt;strong&gt;aok_log_diagnostic_bundle.tar&lt;/strong&gt;&amp;nbsp;in the directory the script is executed in.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Attach the newly generated&amp;nbsp;&lt;strong&gt;.&lt;/strong&gt;&lt;strong&gt;tar&lt;/strong&gt;&amp;nbsp;file to the Support Case.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1iq1g0qe15"&gt;Affected Versions&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: May 2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>KB-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/10</link><pubDate>Wed, 21 Jun 2023 06:01:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Maggie Deppe-Walker on 6/21/2023 6:01:14 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Providing different&amp;nbsp;log files depending on the underlying issue is often a vital step to further an investigation. Appian Log Generator scripts are quick and efficient ways to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components. This article explains how to run the log generator scripts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Support maintains two scripts for log generation:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/9</link><pubDate>Tue, 20 Jun 2023 13:27:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Tejas Kargutkar</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Tejas Kargutkar on 6/20/2023 1:27:14 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components. This article explains how to run the log generator scripts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for log generation:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The forty five most recent&amp;nbsp;&lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/8</link><pubDate>Tue, 20 Jun 2023 13:20:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Tejas Kargutkar</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Tejas Kargutkar on 6/20/2023 1:20:41 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components. This article explains how to run the log generator scripts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for log generation:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jnlRAtdC-pmijIQtgwTWrGC71W__UkD0wyN"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MA_pJ3jvlRAtdC--dXZLPusLEiMdB-N7rb_sqf0H5"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/7</link><pubDate>Tue, 20 Jun 2023 12:11:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Tejas Kargutkar</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Tejas Kargutkar on 6/20/2023 12:11:52 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components. This article explains how to run the log generator scripts.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for log generation:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://drive.google.com/file/d/1v1T0JKEgNQ7aOnALEdzb56144OX9N2Xm/view?usp=drive_link"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://drive.google.com/file/d/1YHidmNoQXWzZqwxDcvHVUR6VEftKuXLN/view?usp=drive_link"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/6</link><pubDate>Tue, 20 Jun 2023 11:58:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Tejas Kargutkar</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Tejas Kargutkar on 6/20/2023 11:58:36 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components. This article explains how to run the log generator scripts maintained by the Infrastructure squad.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for log generation:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://drive.google.com/file/d/1v1T0JKEgNQ7aOnALEdzb56144OX9N2Xm/view?usp=drive_link"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://drive.google.com/file/d/1YHidmNoQXWzZqwxDcvHVUR6VEftKuXLN/view?usp=drive_link"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/5</link><pubDate>Tue, 20 Jun 2023 02:50:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Maggie Deppe-Walker on 6/20/2023 2:50:59 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components. This article explains how to run the log generator scripts maintained by the Infrastructure squad.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for log generation:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-2250 How to run the Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/4</link><pubDate>Fri, 16 Jun 2023 03:52:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Maggie Deppe-Walker on 6/16/2023 3:52:53 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article explains how to run the log generator scripts maintained by the SE Infrastructure squad.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components.&lt;/p&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for this purpose:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>INT-XXXX How to run Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/3</link><pubDate>Fri, 16 Jun 2023 03:46:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Maggie Deppe-Walker on 6/16/2023 3:46:26 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&amp;lt;provide brief article purpose herer&amp;gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components.&lt;/p&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for this purpose:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, how-to, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>How to run Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/2</link><pubDate>Fri, 16 Jun 2023 03:46:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Maggie Deppe-Walker on 6/16/2023 3:46:08 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&amp;lt;provide brief article purpose herer&amp;gt;&lt;/p&gt;
&lt;h3&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h3&gt;
&lt;p&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components.&lt;/p&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for this purpose:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;strong&gt;service_manager*.log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt;&amp;nbsp;directory which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;db_*&lt;/strong&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;strong&gt;tomcat-stdOut* log&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, and zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, and Appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;/logs&lt;/code&gt; of the server the logs need to be generated on.
&lt;ol&gt;
&lt;li&gt;For high availability environments, the script should be placed in &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;APPIAN_HOME&amp;gt;/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated &lt;strong&gt;tar.gz&lt;/strong&gt; file to the Support Case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, search server, data-server, service manager&lt;/div&gt;
</description></item><item><title>Instructions to run Appian Log Generator scripts</title><link>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts/revision/1</link><pubDate>Thu, 15 Jun 2023 15:30:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7576ad48-da95-4d56-b3d6-5510d413e42f</guid><dc:creator>Tejas Kargutkar</dc:creator><comments>https://community.appian.com/support/w/kb/3186/kb-2250-how-to-run-the-appian-log-generator-and-diagnostics-scripts#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Tejas Kargutkar on 6/15/2023 3:30:24 PM&lt;br /&gt;
&lt;h2&gt;What&amp;nbsp;are the Appian Log Generator scripts?&lt;/h2&gt;
&lt;p&gt;Solution Engineering frequently asks customers to provide different log files depending on the underlying issue. Appian Log Generator scripts are quick and efficient ways for&amp;nbsp;customers to generate tar files of logs belonging to&amp;nbsp;different Appian components.&amp;nbsp;The scripts replace the manual effort required to identify, zip, compress different files and folders relevant to different Appian components.&lt;/p&gt;
&lt;p&gt;Appian Solution Engineering maintains two scripts for this purpose:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_sm_log_generator.sh&lt;/strong&gt; -&amp;nbsp;This script retrieves:
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;The five most&amp;nbsp; recent &lt;code&gt;service_manager*.log&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;service-manager&lt;/code&gt; folder which has the kafka and zookeeper logs.&lt;/li&gt;
&lt;li&gt;The&lt;code&gt; db_*&lt;/code&gt; logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="breadcrumb-item"&gt;&lt;strong&gt;appian_tomcat_ss_ads_log_generator.sh&lt;/strong&gt;&amp;nbsp;- This script retrieves:
&lt;ol&gt;
&lt;li&gt;The five most recent &lt;code&gt;tomcat-stdOut*&lt;/code&gt; log.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;search-server&lt;/code&gt; directory hosting the search-server logs.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;data-server&lt;/code&gt; directory hosting the data-server logs.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that the script only gathers the logs from the&amp;nbsp;server that the script is run on. The script should be run individually on each server that the logs should be fetched from.&lt;/p&gt;
&lt;h2&gt;How do I use it?&lt;/h2&gt;
&lt;p&gt;The script to gather engine, service-manager, kafka, zookeeper logs can be downloaded&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The script to gather tomcat, search-server, appian data-server logs can&amp;nbsp;&lt;span&gt;be downloaded&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://forum.appian.com/suite/doc/isBCLGOdlMUpdGVqW7MDftH3lFWURzAOWdfzmQbEdzFMHMCzRVT6VXUDeST"&gt;here&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Run the following steps to execute the script:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Place the relevant script in the &lt;code&gt;AE_HOME/logs&lt;/code&gt; of the server the logs need to be generated on. For high availability environments, the script should be placed in&amp;nbsp;&lt;span&gt;&lt;code&gt;AE_HOME/shared-logs/*server_name*&lt;/code&gt; folder of the server the logs need to be generated on. For example:&lt;/span&gt;&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/shared-logs/machine1.example.com/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Make the script executable. For example:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;chmod +x&amp;nbsp;appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the script. For example:
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;./appian_tomcat_ss_ads_log_generator.sh&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The script will generate the a file of the format &lt;strong&gt;hostname_date*.tar.gz&lt;/strong&gt; in the directory the script is executed in.&lt;/li&gt;
&lt;li&gt;Attach the newly generated tar.gz file to the support case.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&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: June 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Tomcat, logging, search server, data-server, service manager&lt;/div&gt;
</description></item></channel></rss>