<div dir="auto">Thanks Eliezer<div dir="auto"><br></div><div dir="auto">I have centos 7 and I want it to rotate every 3 months as we need to keep logs for every 3 months.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Rob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Jun 2022, 08:11 , <<a href="mailto:ngtech1ltd@gmail.com">ngtech1ltd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="en-IL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="m_7306356440070843594WordSection1"><p class="MsoNormal"><span lang="en-IL">R</span><span class="m_7306356440070843594SpellE"><span lang="EN-US">ob</span></span><span lang="EN-US">,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">It will be different how you implement and use <span class="m_7306356440070843594SpellE">logrotate</span> manually or with the <span class="m_7306356440070843594SpellE">logrotate</span> tools.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">What OS are you using?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Eliezer<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-IL"><u></u> <u></u></span></p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> squid-users <<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users-bounces@lists.squid-cache.org</a>> <b>On Behalf Of </b>robert k Wild<br><b>Sent:</b> Wednesday, 15 June 2022 20:19<br><b>To:</b> Squid Users <<a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a>><br><b>Subject:</b> [squid-users] Logrotate question<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hi all,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">ATM to clear the logs, I do this in crontab, every 3 months<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">0 0 1 */3 * echo "" > /usr/local/squid/var/logs/access.log and do the same for cache log<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">It works but I want to really use log rotate ie<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">0 0 1 */3 * /usr/local/squid/sbin/squid -k rotate<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I hear log rotate keeps 10 files by default so does that mean I will have 10 access logs etc and also will it keep the file the same ie won't change the size or compress it to save space<u></u><u></u></p></div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks,<u></u><u></u></p></div><div><p class="MsoNormal">Rob<u></u><u></u></p></div></div></div></div></div>_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>