<div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><div>Hi team,<br><br></div>I would like to reduce kairosdb traces in log files, then i need to change the configuration in order to have limited log size and wrap around log files.<br><br></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">This is my current log configuration file:</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><pre style="white-space:pre-wrap;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;color:rgb(0,0,0);font-family:"Courier New";background-color:rgb(255,255,255)"><span style="font-style:italic"><?</span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">xml version=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"1.0" </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">encoding=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"UTF-8"</span><span style="font-style:italic">?></span><span style="color:rgb(128,128,128);font-style:italic"><br></span><span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">configuration</span><span style="background-color:rgb(239,239,239)">></span><br>   <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">appender </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"stdout" </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"ch.qos.logback.core.ConsoleAppender"</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">encoder</span><span style="background-color:rgb(239,239,239)">></span><br>         <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="background-color:rgb(239,239,239)">></span>%d{HH:mm:ss.SSS} [%thread] %-5level [%file:%line] - %msg%n<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">encoder</span><span style="background-color:rgb(239,239,239)">></span><br>   <span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">appender</span><span style="background-color:rgb(239,239,239)">></span><br>   <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">appender </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"logfile" </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"ch.qos.logback.core.rolling.RollingFileAppender"</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">file</span><span style="background-color:rgb(239,239,239)">></span>log/kairosdb.log<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">file</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">rollingPolicy </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span><span style="background-color:rgb(239,239,239)">></span><br>         <span style="color:rgb(128,128,128);font-style:italic"><!-- daily rollover --><br></span><span style="color:rgb(128,128,128);font-style:italic">         </span><span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">fileNamePattern</span><span style="background-color:rgb(239,239,239)">></span>log/kairosdb.%d{yyyy-MM-dd}.log<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">fileNamePattern</span><span style="background-color:rgb(239,239,239)">></span><br><br>         <span style="color:rgb(128,128,128);font-style:italic"><!-- keep 30 days' worth of history --><br></span><span style="color:rgb(128,128,128);font-style:italic">         </span><span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">maxHistory</span><span style="background-color:rgb(239,239,239)">></span>30<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">maxHistory</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">rollingPolicy</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">encoder</span><span style="background-color:rgb(239,239,239)">></span><br>         <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="background-color:rgb(239,239,239)">></span>%d{MM-dd|HH:mm:ss.SSS} [%thread] %-5level [%file:%line] - %msg%n<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">encoder</span><span style="background-color:rgb(239,239,239)">></span><br>   <span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">appender</span><span style="background-color:rgb(239,239,239)">></span><br><br>   <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">logger </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"com.mchange.v2.c3p0" </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">level=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"WARN"</span><span style="background-color:rgb(239,239,239)">/></span><span style="color:rgb(128,128,128);font-style:italic"><br></span><span style="color:rgb(128,128,128);font-style:italic"><br></span><span style="color:rgb(128,128,128);font-style:italic">   </span><span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">root </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">level=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"DEBUG"</span><span style="background-color:rgb(239,239,239)">></span><br>      <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">appender-ref </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"stdout"</span><span style="background-color:rgb(239,239,239)">/></span><br>      <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">appender-ref </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref=</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">"logfile"</span><span style="background-color:rgb(239,239,239)">/></span><br>   <span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">root</span><span style="background-color:rgb(239,239,239)">></span><br><span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">configuration</span><span style="background-color:rgb(239,239,239)">><br><br></span></pre><pre style="white-space:pre-wrap;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;color:rgb(0,0,0);font-family:"Courier New";background-color:rgb(255,255,255)"><span style="background-color:rgb(239,239,239)"><span style="background-color:rgb(255,255,255)">My requirement is to have 'N' files of maximum size 'S' MB which go in rollover, possibly leaving the first file unchanged.<br></span></span></pre><pre style="white-space:pre-wrap;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;color:rgb(0,0,0);font-family:"Courier New";background-color:rgb(255,255,255)"><span style="background-color:rgb(239,239,239)"><span style="background-color:rgb(255,255,255)">Thanks and regards<br></span></span></pre><pre style="white-space:pre-wrap;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;color:rgb(0,0,0);font-family:"Courier New";background-color:rgb(255,255,255)"><span style="background-color:rgb(239,239,239)"><span style="background-color:rgb(255,255,255)">Ciao<br>Roberto. </span></span></pre></div>