{"id":13544,"date":"2023-08-05T13:18:35","date_gmt":"2023-08-05T04:18:35","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=13544"},"modified":"2024-01-03T12:23:27","modified_gmt":"2024-01-03T03:23:27","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e7%a8%bc%e5%83%8d%e7%9b%a3%e8%a6%96%e3%82%92%e8%a1%8c%e3%81%86%ef%bc%81%ef%bc%88centos-7%ef%bc%8flogwatch%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/13544","title":{"rendered":"WordPress\u306e\u30b5\u30fc\u30d0\u306e\u7a3c\u50cd\u76e3\u8996\u3092\u884c\u3046\uff01\uff08CentOS 7\uff0flogwatch\uff09"},"content":{"rendered":"<p>CentOS 7\u3067\u306f\u3001logwatch\u3092\u4f7f\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u30b5\u30fc\u30d0\u306e\u76e3\u8996\u3092\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002WordPress\u306e\u30b5\u30fc\u30d0\u3092CentOS 7\u3067\u69cb\u7bc9\u3057\u305f\u306e\u3067\u3001logwatch\u3067\u76e3\u8996\u3092\u59cb\u3081\u3066\u307f\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>logwatch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>CentOS 7\u306b\u3001logwatch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo yum install logwatch\r\n<\/pre>\n<h2>logwatch\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\uff01<\/h2>\n<p>logwatch\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo logwatch --output stdout\r\n<\/pre>\n<p>Apache\u3001Postfix\u3001OpenSSH\u3001Disk Space\u7b49\u306e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>logwatch\u306e\u5185\u5bb9\u304c\u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>logwatch\u306e\u5185\u5bb9\u304c\u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001root\u5b9b\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo logwatch --output mail\r\n<\/pre>\n<h2>logwatch\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u8a2d\u5b9a\u5909\u66f4\u3092\u884c\u3046\u524d\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306f\u3001\u8a2d\u5b9a\u5185\u5bb9\u306e\u629c\u7c8b\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/usr\/share\/logwatch\/default.conf\/logwatch.conf\r\nLogDir = \/var\/log\r\nTmpDir = \/var\/cache\/logwatch\r\nOutput = stdout\r\nFormat = text\r\nEncode = none\r\nMailTo = root\r\nMailFrom = Logwatch\r\n#Filename = \/tmp\/logwatch\r\n#Archives = No\r\nRange = yesterday\r\nDetail = Low\r\nService = All\r\nService = &quot;-zz-network&quot;\r\nService = &quot;-zz-sys&quot;\r\nService = &quot;-eximstats&quot;\r\n#Service = ftpd-messages   # Processes ftpd messages in \/var\/log\/messages\r\n#Service = ftpd-xferlog    # Processes ftpd messages in \/var\/log\/xferlog\r\n#Service = pam_pwdb        # PAM_pwdb messages - usually quite a bit\r\n#Service = pam             # General PAM messages... usually not many\r\n#LogFile = messages\r\nmailer = &quot;\/usr\/sbin\/sendmail -t&quot;\r\n#HostLimit = myhost\r\n# vi: shiftwidth=3 tabstop=3 et\r\n<\/pre>\n<h2>logwatch\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3092\u30b3\u30d4\u30fc\u3057\u3066\u8a2d\u5b9a\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo cp -p  \/usr\/share\/logwatch\/default.conf\/logwatch.conf \/etc\/logwatch\/conf\/logwatch.conf\r\n$ sudo vi \/etc\/logwatch\/conf\/logwatch.conf\r\n...\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>logwatch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u3001\u7c21\u5358\u306b\u30b5\u30fc\u30d0\u306e\u72b6\u614b\u76e3\u8996\u3092\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13532\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011\u516c\u958b\u7528\u306eWordPress\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\uff01\uff08CentOS 7\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/11\/eyecatch_serverapps_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011\u516c\u958b\u7528\u306eWordPress\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3059\u308b\uff01\uff08CentOS 7\uff09<\/div><div class=\"substr\">WordPress\u30b5\u30fc\u30d0\u3092\u3001CentOS7\u3067\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7\u3067\u306f\u3001logwatch\u3092\u4f7f\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u30b5\u30fc\u30d0\u306e\u76e3\u8996\u3092\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002WordPress\u306e\u30b5\u30fc\u30d0\u3092CentOS 7\u3067\u69cb\u7bc9\u3057\u305f\u306e\u3067\u3001logwatch\u3067\u76e3\u8996\u3092\u59cb\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":14987,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[155],"tags":[544,545,548,543,52,871],"class_list":["post-13544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-centos","tag-centos-7","tag-logwatch","tag-wordpress","tag-52","tag-871"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=13544"}],"version-history":[{"count":5,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13544\/revisions"}],"predecessor-version":[{"id":15702,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13544\/revisions\/15702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/14987"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=13544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=13544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=13544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}