{"id":274,"date":"2010-12-21T09:46:24","date_gmt":"2010-12-20T22:46:24","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=274"},"modified":"2010-12-21T09:46:24","modified_gmt":"2010-12-20T22:46:24","slug":"linux-logwatch-in-debian-and-redhat","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2010\/12\/linux-logwatch-in-debian-and-redhat\/","title":{"rendered":"Linux Logwatch in Debian and Redhat"},"content":{"rendered":"<p>Debian is what I use for most our my Linux servers (other than SME) but I have one older Redhat server that I still maintain.<\/p>\n<p>I was messing with changes to the <a href=\"http:\/\/www.logwatch.org\">Logwatch<\/a> emails (where they are sent: MailTo option) and had modified all the Debian settings easily by editing the \/etc\/cron.daily\/00logwatch file which calls the Logwatch script with a parameter of &#8216;mailto: root&#8217; as a default. Changing root to the email address was straight forward.<\/p>\n<p>The Redhat setup was different in that the \/etc\/cron.daily script was a Perl script and while it had apparently editable settings, changing the setting threw an error.<\/p>\n<blockquote><p>Possible unintended interpolation of @mydomain in string at \/etc\/cron.daily\/00-logwatch line 35.<\/p><\/blockquote>\n<p>The Perl compiler\/interpreter was taking the email @ symbol and trying to read it as code. So I changed it back to the local root setting and did some research.<\/p>\n<p>I think it&#8217;s just an issue with the way that <a href=\"http:\/\/www.logwatch.org\">Logwatch <\/a>has been configured. The file I should have edited is the logwatch.conf and I found it in \/etc\/log.d\/conf\/logwatch.conf <\/p>\n<p>Changing the MailTo setting in the .conf file worked fine. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian is what I use for most our my Linux servers (other than SME) but I have one older Redhat server that I still maintain. I was messing with changes to the Logwatch emails (where they are sent: MailTo option) and had modified all the Debian settings easily by editing the \/etc\/cron.daily\/00logwatch file which calls [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,14],"tags":[],"class_list":["post-274","post","type-post","status-publish","format-standard","hentry","category-linux-servers-and-software","category-security"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}