<?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-1409 How to move the application server log to the main logs folder</title><link>https://community.appian.com/support/w/kb/687/kb-1409-how-to-move-the-application-server-log-to-the-main-logs-folder</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1409 How to move the application server log to the main logs folder</title><link>https://community.appian.com/support/w/kb/687/kb-1409-how-to-move-the-application-server-log-to-the-main-logs-folder</link><pubDate>Thu, 26 Oct 2017 16:47:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2275862-67a7-44c1-9c93-142239ce3346</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/687/kb-1409-how-to-move-the-application-server-log-to-the-main-logs-folder#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 10/26/2017 4:47:55 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;With the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Appian_Release_Notes.html#behavior-changes"&gt;&lt;span style="font-weight:400;"&gt;latest changes&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to 17.1, the application server log will no longer be written to the application-server.log file in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; file path. Instead the output has been combined with the application server&amp;rsquo;s standard output file which is found in &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;/logs/server.log.&amp;lt;date&amp;gt;&lt;/code&gt;. In order to promote consistency with the other log files, this guide explains how to the move the JBoss application stdOut logs into the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;&lt;span style="font-weight:400;"&gt;The instructions below are setup for JBoss. If using WebLogic, &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Configuring_WebLogic.html#Configure_JVM_Settings"&gt;&lt;span style="font-weight:400;"&gt;additional configurations&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; will need to be made to capture stdout in a log file.&lt;/span&gt;&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-weight:400;"&gt;Steps&lt;/span&gt;&lt;/h1&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;1) Open&amp;nbsp;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In your configuration repository, locate the &lt;/span&gt;&lt;strong&gt;standalone.xml&amp;lt;ENVIRONMENT&amp;gt;&lt;/strong&gt;&lt;span style="font-weight:400;"&gt; file corresponding to your environment.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;File Path: &lt;code&gt;&amp;lt;REPO_HOME&amp;gt;/bin/jboss/jboss-eap-6.4/standalone/configuration/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;2) Update &lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Locate the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;periodic-rotating-file-handler&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; element within the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;subsystem xmlns=&amp;quot;urn:jboss:domain:logging:1.5&amp;quot;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; section. Update the file path by updating the &lt;/span&gt;&lt;span style="font-weight:400;"&gt;file&lt;/span&gt;&lt;span style="font-weight:400;"&gt; element to reflect the following value:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;file path=&amp;quot;${appian.home.ear}/../logs/application-server-jboss.log&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This configuration will create a new stdOut log file on a daily basis targeted to the established file path.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Notice that the log name in the file path was also changed from &lt;/span&gt;&lt;strong&gt;server.log&lt;/strong&gt;&lt;span style="font-weight:400;"&gt; to &lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;application-server-jboss.log&lt;/strong&gt;.&lt;/span&gt;&lt;span style="font-weight:400;"&gt; This allows Appian&amp;rsquo;s &lt;strong&gt;cleanup.bat|sh&lt;/strong&gt; scripts to recognize these files as the application server log during its cleanup activities. The &lt;strong&gt;logs.xml&lt;/strong&gt; file is searching for this file by application-server*, so leaving the name as &lt;strong&gt;server.log&lt;/strong&gt; would not suffice. More information about the cleanup script is found in the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Data_Maintenance.html#cleanup-script"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;After the &lt;strong&gt;standalone.xml&lt;/strong&gt; change is made, it should look something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/image4.png"&gt;&lt;img src="/resized-image/__size/1200x0/__key/communityserver-wikis-components-files/00-00-00-00-11/image4.png" alt=" " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span style="font-weight:400;"&gt;a) Max File Size Configuration&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The file size of the application server log can get very large if left to recreate on a daily basis. An alternative approach is to cap the log at a certain file size. After this file size is exceeded, a new log file will be created. To implement this configuration, replace the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;periodic-rotating-file-handler&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; element with the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;size-rotating-file-handler name=&amp;quot;FILE&amp;quot; autoflush=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;formatter&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;pattern-formatter pattern=&amp;quot;%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;/formatter&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;file path=&amp;quot;${appian.home.ear}/../logs/application-server-jboss.log&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;rotate-size value=&amp;quot;10m&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;max-backup-index value=&amp;quot;50&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;append value=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;/size-rotating-file-handler&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This configuration will create a new stdOut log file after the file grows to 10 MB in size.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Afterwards it should look something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/image3.png"&gt;&lt;img src="/resized-image/__size/1200x0/__key/communityserver-wikis-components-files/00-00-00-00-11/image3.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;3) Deploy Changes&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Configure_Script.html#deploying-configurations"&gt;&lt;span style="font-weight:400;"&gt;Deploy the configurations&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; from your repository to your target JBoss instance. &lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;4) Verify Output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Upon starting up Appian, verify that the JBoss stdOut log is being properly written to in your specified target path.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, how-to&lt;/div&gt;
</description></item><item><title>KB-1409 How to move the application server log to the main logs folder</title><link>https://community.appian.com/support/w/kb/687/kb-1409-how-to-move-the-application-server-log-to-the-main-logs-folder/revision/1</link><pubDate>Thu, 26 Oct 2017 12:47:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2275862-67a7-44c1-9c93-142239ce3346</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/687/kb-1409-how-to-move-the-application-server-log-to-the-main-logs-folder#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 10/26/2017 12:47:55 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;With the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Appian_Release_Notes.html#behavior-changes"&gt;&lt;span style="font-weight:400;"&gt;latest changes&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to 17.1, the application server log will no longer be written to the application-server.log file in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; file path. Instead the output has been combined with the application server&amp;rsquo;s standard output file which is found in &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;/logs/server.log.&amp;lt;date&amp;gt;&lt;/code&gt;. In order to promote consistency with the other log files, this guide explains how to the move the JBoss application stdOut logs into the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt; directory.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: &lt;/strong&gt;&lt;span style="font-weight:400;"&gt;The instructions below are setup for JBoss. If using WebLogic, &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Configuring_WebLogic.html#Configure_JVM_Settings"&gt;&lt;span style="font-weight:400;"&gt;additional configurations&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; will need to be made to capture stdout in a log file.&lt;/span&gt;&lt;/p&gt;
&lt;h1&gt;&lt;span style="font-weight:400;"&gt;Steps&lt;/span&gt;&lt;/h1&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;1) Open&amp;nbsp;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In your configuration repository, locate the &lt;/span&gt;&lt;strong&gt;standalone.xml&amp;lt;ENVIRONMENT&amp;gt;&lt;/strong&gt;&lt;span style="font-weight:400;"&gt; file corresponding to your environment.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;File Path: &lt;code&gt;&amp;lt;REPO_HOME&amp;gt;/bin/jboss/jboss-eap-6.4/standalone/configuration/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;2) Update &lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Locate the &lt;code&gt;&amp;lt;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;periodic-rotating-file-handler&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; element within the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;subsystem xmlns=&amp;quot;urn:jboss:domain:logging:1.5&amp;quot;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; section. Update the file path by updating the &lt;/span&gt;&lt;span style="font-weight:400;"&gt;file&lt;/span&gt;&lt;span style="font-weight:400;"&gt; element to reflect the following value:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;file path=&amp;quot;${appian.home.ear}/../logs/application-server-jboss.log&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This configuration will create a new stdOut log file on a daily basis targeted to the established file path.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Notice that the log name in the file path was also changed from &lt;/span&gt;&lt;strong&gt;server.log&lt;/strong&gt;&lt;span style="font-weight:400;"&gt; to &lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;strong&gt;application-server-jboss.log&lt;/strong&gt;.&lt;/span&gt;&lt;span style="font-weight:400;"&gt; This allows Appian&amp;rsquo;s &lt;strong&gt;cleanup.bat|sh&lt;/strong&gt; scripts to recognize these files as the application server log during its cleanup activities. The &lt;strong&gt;logs.xml&lt;/strong&gt; file is searching for this file by application-server*, so leaving the name as &lt;strong&gt;server.log&lt;/strong&gt; would not suffice. More information about the cleanup script is found in the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Data_Maintenance.html#cleanup-script"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;After the &lt;strong&gt;standalone.xml&lt;/strong&gt; change is made, it should look something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/image4.png"&gt;&lt;img src="/resized-image/__size/1200x0/__key/communityserver-wikis-components-files/00-00-00-00-13/image4.png" alt=" " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span style="font-weight:400;"&gt;a) Max File Size Configuration&lt;/span&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The file size of the application server log can get very large if left to recreate on a daily basis. An alternative approach is to cap the log at a certain file size. After this file size is exceeded, a new log file will be created. To implement this configuration, replace the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;periodic-rotating-file-handler&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; element with the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;size-rotating-file-handler name=&amp;quot;FILE&amp;quot; autoflush=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;formatter&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;pattern-formatter pattern=&amp;quot;%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;/formatter&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;file path=&amp;quot;${appian.home.ear}/../logs/application-server-jboss.log&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;rotate-size value=&amp;quot;10m&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;max-backup-index value=&amp;quot;50&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;&amp;lt;append value=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;/size-rotating-file-handler&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This configuration will create a new stdOut log file after the file grows to 10 MB in size.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Afterwards it should look something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/image3.png"&gt;&lt;img src="/resized-image/__size/1200x0/__key/communityserver-wikis-components-files/00-00-00-00-13/image3.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;3) Deploy Changes&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Configure_Script.html#deploying-configurations"&gt;&lt;span style="font-weight:400;"&gt;Deploy the configurations&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; from your repository to your target JBoss instance. &lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;4) Verify Output&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Upon starting up Appian, verify that the JBoss stdOut log is being properly written to in your specified target path.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: logging, how-to&lt;/div&gt;
</description></item></channel></rss>