<div dir="ltr"><div>Hi Abdul </div><div><br></div>After truncate the file is recovered by the daemon with the same size as before, i guess the way of the mtp3d writes file precludes the truncate.<div>My idea was to store the mtp3d and pcap generated by logrotate, but these limitations will make me change my mind.</div><div><br></div><div>So, thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-05 11:08 GMT-02:00 Abdul Basit <span dir="ltr"><<a href="mailto:basit.engg@gmail.com" target="_blank">basit.engg@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">use copytruncate in logrotate scriopt<br><a href="https://www.jamescoyle.net/cheat-sheets/676-logrotate-cheat-sheet" target="_blank">https://www.jamescoyle.net/<wbr>cheat-sheets/676-logrotate-<wbr>cheat-sheet</a><br><br>The <strong>copytruncate</strong> keyword copies all the log in the file
to a new file and then truncates the original file. This keeps the
original log file in place and also allows rotation to continue.<br><br><div class="m_-3007455702693153221gmail-crayon-pre" style="font-size:11px;line-height:15px"><div class="m_-3007455702693153221gmail-crayon-line" id="m_-3007455702693153221gmail-crayon-584565b8e3802439666944-1"><span class="m_-3007455702693153221gmail-crayon-o">/</span><span class="m_-3007455702693153221gmail-crayon-t">var</span><span class="m_-3007455702693153221gmail-crayon-o">/</span><span class="m_-3007455702693153221gmail-crayon-v">log</span><span class="m_-3007455702693153221gmail-crayon-o">/</span><span class="m_-3007455702693153221gmail-crayon-v">myapp</span><span class="m_-3007455702693153221gmail-crayon-o">/</span><span class="m_-3007455702693153221gmail-crayon-o">*</span><span class="m_-3007455702693153221gmail-crayon-sy">.</span><span class="m_-3007455702693153221gmail-crayon-i">log</span><span class="m_-3007455702693153221gmail-crayon-h"> </span><span class="m_-3007455702693153221gmail-crayon-sy">{</span></div><div class="m_-3007455702693153221gmail-crayon-line m_-3007455702693153221gmail-crayon-striped-line" id="m_-3007455702693153221gmail-crayon-584565b8e3802439666944-2"><span class="m_-3007455702693153221gmail-crayon-h"> </span><span class="m_-3007455702693153221gmail-crayon-i">size</span><span class="m_-3007455702693153221gmail-crayon-h"> </span><span class="m_-3007455702693153221gmail-crayon-cn">10k</span></div><div class="m_-3007455702693153221gmail-crayon-line" id="m_-3007455702693153221gmail-crayon-584565b8e3802439666944-3"><span class="m_-3007455702693153221gmail-crayon-h"> </span><span class="m_-3007455702693153221gmail-crayon-e">weekly</span></div><div class="m_-3007455702693153221gmail-crayon-line m_-3007455702693153221gmail-crayon-striped-line" id="m_-3007455702693153221gmail-crayon-584565b8e3802439666944-4"><span class="m_-3007455702693153221gmail-crayon-e"> </span><span class="m_-3007455702693153221gmail-crayon-i">rotate</span><span class="m_-3007455702693153221gmail-crayon-h"> </span><span class="m_-3007455702693153221gmail-crayon-cn">8</span></div><div class="m_-3007455702693153221gmail-crayon-line" id="m_-3007455702693153221gmail-crayon-584565b8e3802439666944-5"><span class="m_-3007455702693153221gmail-crayon-h"> </span><span class="m_-3007455702693153221gmail-crayon-i">copytruncate</span></div><div class="m_-3007455702693153221gmail-crayon-line m_-3007455702693153221gmail-crayon-striped-line" id="m_-3007455702693153221gmail-crayon-584565b8e3802439666944-6"><span class="m_-3007455702693153221gmail-crayon-sy">}<br><br></span>Are you continuously generating .pcap?<br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-3007455702693153221gmail_signature" data-smartmail="gmail_signature"><div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)">--<br>regards,</span></span></font></div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)"><br>abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445</span></span></font></div></div>
<br><div class="gmail_quote">On Fri, Dec 2, 2016 at 4:48 PM, Rafael dos Santos Saraiva <span dir="ltr"><<a href="mailto:rafaelsnsa@gmail.com" target="_blank">rafaelsnsa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>Is it possible using logrotate with mtp3d files (/var/log/mtp3d.log and /tmp/mtp3d.pcap). I tried do, but when logrotate generate/clean file, the mtp3d service stops logging.</div><div>Another question, is the very big size of logs the reason to problems on services(stops signalling traffic without any error indication).</div><div><br></div><div>Thanks<br clear="all"><div><br></div><div class="m_-3007455702693153221m_-980555445358008530gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br><div><table style="font-family:'Times New Roman'"><tbody><tr><td rowspan="3"><br></td><td><span style="font-family:'Trebuchet MS',Trebuchet,sans-serif;font-size:22px;font-weight:bold">Rafael S. Saraiva</span></td></tr><tr><td><br></td></tr></tbody></table></div></div></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div><span class="HOEnZb"><font color="#888888">
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" rel="noreferrer" target="_blank">http://lists.digium.com/mailm<wbr>an/listinfo/asterisk-ss7</a><br></font></span></blockquote></div><br></div>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-ss7</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Att,</div><div>Rafael Saraiva</div></div></div></div>
</div>