Products | Versions |
---|---|
Spotfire Web Player | 7.5 and higher |
This article describes how to increase the log file retention on the TIBCO Spotfire Web Player so that there is a longer time interval recorded in the logs.
Note: Before increasing the log retention per this article, ensure you have sufficient disk space for the larger volume of logs that will be kept. Having insufficient disk space can cause system stability issues.
config export-service-config --capability=WEB_PLAYER --deployment-area=Production
2) Open the configuration file "Log4net.config" from the location <Server installation>\tomcat\bin\config\root in a plain text editor or XML editor. Search for the following settings and change the parameters <maxSizeRollBackups value="25" /> and <maximumFileSize value="200MB" /> per your needs. Increasing either of these values will increase the overall retention period of the logs:
Here is an example for the "Spotfire.Dxp.Worker.Host.Debug" log appender:
<appender name="FileAppenderDebug" type="Spotfire.Dxp.Internal.Diagnostics.WebLoggerFileAppender"> <encoding value="utf-8" /> <PreserveLogFileNameExtension value="true" /> <file type="log4net.Util.PatternString" value="..\..\logs\Spotfire.Dxp.Worker.Host.Debug%property{serviceIdWithPeriod}.log" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="25" /> <maximumFileSize value="200MB" /> <staticLogFileName value="false" /> <layout type="log4net.Layout.PatternLayout"> <header value="Level;TimeStamp;UTC Timestamp;ServiceInstanceId;InstanceId;Thread;User;Logger;Message String;DateTime;DateTime;String;String;String;String;String;String " /> <conversionPattern value="%-5level;%date{yyyy-MM-dd'T'HH:mm:ss,fffzzz};%utcdate{ISO8601};%property{serviceId};%property{instanceId};%thread;%property{user};%logger;"%message%"%newline" /> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <param name="AcceptOnMatch" value="false" /> <param name="LoggerToMatch" value="WebLogger." /> </filter> <!-- An example how to filter out logging rows from a specific logger.--> <!--<filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="Spotfire.Dxp.Framework.Utilities.ServerLoggerManager" /> <acceptOnMatch value="false" /> </filter>--> </appender>
config import-service-config --config-name= Serviceconfiguration
config set-server-service-config --capability=WEB_PLAYER --config-name=Serviceconfiguration