{"id":2383,"date":"2015-12-21T00:18:53","date_gmt":"2015-12-20T15:18:53","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2383"},"modified":"2015-12-21T00:23:37","modified_gmt":"2015-12-20T15:23:37","slug":"nginx-rsyslogd","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2383","title":{"rendered":"nginx + rsyslogd"},"content":{"rendered":"<p>nginx1.7.1\u4ee5\u4e0a\u3060\u3068nginx\u306e\u6a5f\u80fd\u3067<a href=\"\">Nginx\u306e\u30ed\u30b0\u3092rsyslog\u3067\u8ee2\u9001\u3059\u308b<\/a>\u3053\u3068\u304c\u3067\u304d\u308b<br \/>\nnginx1.6\u3067\u65b9\u6cd5\u304c\u306a\u3044\u304b\u8abf\u3079\u305f\u3068\u3053\u308d\u3001rsyslogd\u306e\u6a5f\u80fd\u3067syslog\u306b\u9001\u308b\u65b9\u6cd5\u304c\u3042\u3063\u305f<\/p>\n<pre class=\"brush: plain; title: \/etc\/rsyslog.d\/nginx.conf; notranslate\" title=\"\/etc\/rsyslog.d\/nginx.conf\">\r\n$ModLoad imfile # needs to be done just once\r\n# File 1\r\n$InputFileName \/var\/log\/nginx\/error.log\r\n$InputFileTag nginx:\r\n$InputFileStateFile stat-file1\r\n$InputFileSeverity error\r\n$InputFileFacility syslog\r\n$InputFilePollInterval 5\r\n$InputRunFileMonitor\r\n<\/pre>\n<p>$InputFileStateFile\u306fInputFile\u306e\u76e3\u8996\u72b6\u6cc1\u3092\u4fdd\u5b58\u3059\u308b\u30d5\u30a1\u30a4\u30eb<br \/>\n$InputRunFileMonitor\u306b\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3092\u958b\u59cb\u3059\u308b<\/p>\n<h1>\u53c2\u8003URL<\/h1>\n<p><a href=\"http:\/\/www.rsyslog.com\/doc\/master\/configuration\/modules\/imfile.html\">imfile: Text File Input Module<\/a><br \/>\n<a href=\"https:\/\/access.redhat.com\/documentation\/ja-JP\/Red_Hat_Enterprise_Linux\/7\/html\/System_Administrators_Guide\/s1-using_rsyslog_modules.html\">18.4. RSYSLOG \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f7f\u7528<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>nginx1.7.1\u4ee5\u4e0a\u3060\u3068nginx\u306e\u6a5f\u80fd\u3067Nginx\u306e\u30ed\u30b0\u3092rsyslog\u3067\u8ee2\u9001\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b nginx1.6\u3067\u65b9\u6cd5\u304c\u306a\u3044\u304b\u8abf\u3079\u305f\u3068\u3053\u308d\u3001rsyslogd\u306e\u6a5f\u80fd\u3067syslog\u306b\u9001\u308b\u65b9\u6cd5\u304c\u3042\u3063\u305f $ModLoad  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18,54],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2383"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2383"}],"version-history":[{"count":2,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2383\/revisions"}],"predecessor-version":[{"id":2385,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2383\/revisions\/2385"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}