{"id":260,"date":"2009-10-24T10:00:30","date_gmt":"2009-10-24T18:00:30","guid":{"rendered":"http:\/\/www.outflux.net\/blog\/?p=260"},"modified":"2009-10-24T13:05:58","modified_gmt":"2009-10-24T21:05:58","slug":"karmic-and-log-rotation","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2009\/10\/24\/karmic-and-log-rotation\/","title":{"rendered":"karmic and log rotation"},"content":{"rendered":"<p>In Ubuntu&#8217;s Karmic and and Debian&#8217;s Lenny, <code>sysklogd<\/code> was replaced with <code>rsyslog<\/code>.  This is fine, since <code>rsyslog<\/code> will have converted your <code>\/etc\/syslog.conf<\/code> to <code>\/etc\/rsyslog.d\/50-default.conf<\/code>.  However, if you modified the (maddeningly strange sysklogd-specific) log file rotation in <code>\/etc\/cron.daily\/sysklogd<\/code> or <code>\/etc\/cron.weekly\/sysklogd<\/code>, you&#8217;ll want to review the new (sane) <code>\/etc\/logrotate.d\/rsyslog<\/code>.  (Note also that <code>savelog<\/code> uses <code>.0<\/code> as the first rotated file extension, and <code>logrotate<\/code> uses <code>.1<\/code>.)<\/p>\n<p style='text-align:left'>&copy; 2009, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Ubuntu&#8217;s Karmic and and Debian&#8217;s Lenny, sysklogd was replaced with rsyslog. This is fine, since rsyslog will have converted your \/etc\/syslog.conf to \/etc\/rsyslog.d\/50-default.conf. However, if you modified the (maddeningly strange sysklogd-specific) log file rotation in \/etc\/cron.daily\/sysklogd or \/etc\/cron.weekly\/sysklogd, you&#8217;ll want to review the new (sane) \/etc\/logrotate.d\/rsyslog. (Note also that savelog uses .0 as the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,14,19],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/260"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":3,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}