{"id":1929,"date":"2014-04-05T11:57:56","date_gmt":"2014-04-05T09:57:56","guid":{"rendered":"http:\/\/possiblelossofprecision.net\/?p=1929"},"modified":"2021-05-15T11:46:37","modified_gmt":"2021-05-15T09:46:37","slug":"invoking-logrotate-manually","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1929","title":{"rendered":"Invoking logrotate manually"},"content":{"rendered":"<p>To invoke logrotate manually to debug configuration settings, there is a builtin <code>debug<\/code> flag:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# logrotate --debug --verbose \/etc\/logrotate.conf\r\n<\/pre>\n<p>To force a log file rotation, regardless of the specified criteria (such as age, minsize, etc.), run:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# logrotate --force --verbose \/etc\/logrotate.conf\r\n<\/pre>\n<p>Keep in mind, that you can use individual logrotate configuration files from <code>\/etc\/logrotate.d\/<\/code> <strong>but settings are inherited<\/strong> from the global logrotate config <code>\/etc\/logrotate.conf<\/code>.<\/p>\n<p>For a comprehensive list of options, have a look at the <a href=\"http:\/\/linux.die.net\/man\/8\/logrotate\">logrotate manpage<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To invoke logrotate manually to debug configuration settings, there is a builtin debug flag: # logrotate &#8211;debug &#8211;verbose \/etc\/logrotate.conf To force a log file rotation, regardless of the specified criteria (such as age, minsize, etc.), run: # logrotate &#8211;force &#8211;verbose \/etc\/logrotate.conf Keep in mind, that you can use individual logrotate configuration files from \/etc\/logrotate.d\/ but settings are inherited from the&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1929\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7],"class_list":["post-1929","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fedora"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1929"}],"version-history":[{"count":3,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1929\/revisions"}],"predecessor-version":[{"id":1932,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1929\/revisions\/1932"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}