{"id":2028,"date":"2021-11-10T13:18:02","date_gmt":"2021-11-10T12:18:02","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=2028"},"modified":"2021-11-10T13:18:02","modified_gmt":"2021-11-10T12:18:02","slug":"logwatch","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=2028","title":{"rendered":"LogWatch"},"content":{"rendered":"<p>In effetti Logwatch \u00e8 un aggregatore di log che una volta al giorno manda una mail di riassunto che indica statistiche, scansioni lente o attacchi lenti.<br \/>\napt-get install logwatch e l&#8217;operazione \u00e8 finita.<br \/>\nA me non serve modificare nulla rispetto a quello che offre di default e quindi non copio il file di configurazione, ma se dovesse rendersi necessario a procedura \u00e8:<\/p>\n<p>cp \/usr\/share\/logwatch\/default.conf\/logwatch.conf \/etc\/logwatch\/conf\/ e modificare quest&#8217;ultimo file.<\/p>\n<p>Un rapido test per vedere se tutto funziona a dovere con:<br \/>\n\/usr\/sbin\/logwatch &#8211;output clark@myfirm.local e in mail mi trovo:<\/p>\n<pre class=\"moz-quote-pre\"> ################### Logwatch 7.5.5 (01\/22\/21) #################### \r\n        Processing Initiated: Tue Nov  9 11:09:33 2021\r\n        Date Range Processed: yesterday\r\n                              ( 2021-Nov-08 )\r\n                              Period is day.\r\n        Detail Level of Output: 0\r\n        Type of Output\/Format: clark<a class=\"moz-txt-link-abbreviated\" href=\"mailto:mario.guenzi@zincometal.local\">@myfirm.local<\/a> \/ text\r\n        Logfiles for Host: sangiorgio\r\n ################################################################## \r\n \r\n --------------------- Kernel Audit Begin ------------------------ \r\n\r\n  Number of lost messages: 10\r\n \r\n ---------------------- Kernel Audit End ------------------------- \r\n\r\n \r\n --------------------- Named Begin ------------------------ \r\n\r\n \r\n **Unmatched Entries**\r\n    managed-keys-zone: Key 20326 for zone . is now trusted (acceptance timer complete): 1 Time(s)\r\n \r\n ---------------------- Named End ------------------------- \r\n\r\n \r\n --------------------- pam_unix Begin ------------------------ \r\n\r\n su:\r\n    Sessions Opened:\r\n       root -&gt; nobody(uid=65534): 3 Time(s)\r\n       root -&gt; fwanalog(uid=111): 2 Time(s)\r\n \r\n \r\n ---------------------- pam_unix End ------------------------- \r\n\r\n \r\n --------------------- Postfix Begin ------------------------ \r\n\r\n    2.638M  Bytes accepted                           2,765,825\r\n    2.639M  Bytes sent via SMTP                      2,767,085\r\n    2.636M  Bytes forwarded                          2,764,534\r\n ========   ==================================================\r\n \r\n       10   Accepted                                   100.00%\r\n --------   --------------------------------------------------\r\n       10   Total                                      100.00%\r\n ========   ==================================================\r\n \r\n       18   Removed from queue                              18\r\n       10   Sent via SMTP                                   10\r\n        8   Forwarded                                        8\r\n \r\n \r\n ---------------------- Postfix End ------------------------- \r\n\r\n \r\n --------------------- Disk Space Begin ------------------------ \r\n\r\n Filesystem      Size  Used Avail Use% Mounted on\r\n \/dev\/sda6        46G  1.9G   42G   5% \/\r\n \/dev\/sda3       546M   82M  424M  17% \/boot\r\n \/dev\/sda9        46G   98M   44G   1% \/home\r\n \/dev\/sda8       8.0G   38M  7.5G   1% \/tmp\r\n \/dev\/sda7       229G   11G  207G   5% \/var\r\n \r\n \r\n ---------------------- Disk Space End ------------------------- \r\n\r\n \r\n ###################### Logwatch End ######################### \r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In effetti Logwatch \u00e8 un aggregatore di log che una volta al giorno manda una mail di riassunto che indica statistiche, scansioni lente o attacchi lenti. apt-get install logwatch e l&#8217;operazione \u00e8 finita. A me non serve modificare nulla rispetto a quello che offre di default e quindi non copio il file di configurazione, ma [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[224,6],"tags":[92,214,225,226],"class_list":["post-2028","post","type-post","status-publish","format-standard","hentry","category-logging","category-work","tag-linux","tag-logging","tag-logwatch","tag-syslog"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/2028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2028"}],"version-history":[{"count":1,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/2028\/revisions"}],"predecessor-version":[{"id":2029,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/2028\/revisions\/2029"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2028"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}