{"id":5157,"date":"2021-10-10T17:41:41","date_gmt":"2021-10-10T09:41:41","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5157"},"modified":"2021-10-10T17:41:41","modified_gmt":"2021-10-10T09:41:41","slug":"rsyslog-%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%ae%e5%ad%a6%e4%b9%a0%e6%95%b4%e7%90%86","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5157.html","title":{"rendered":"rsyslog \u7b80\u5355\u914d\u7f6e\u5b66\u4e60\u6574\u7406"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u4ee5\u524d\u88abrsyslog\u7ed9\u5f04\u4f24\u8fc7\uff0c\u5f88\u957f\u65f6\u95f4\u91cc\u90fd\u4e0d\u60f3\u518d\u78b0\u5b83\uff08\u80fd\u901a\u8fc7\u81ea\u5df1\u5199HTTP\u670d\u52a1\u5b9e\u73b0\u7684\u65e5\u5fd7\u8bb0\u5f55\u8f6c\u53d1\u529f\u80fd\u90fd\u81ea\u5df1\u5199\u4e86\uff09\uff1b\u518d\u52a0\u4e0a\u6211\u73b0\u5728\u7684\u5de5\u4f5c\u5185\u5bb9\u5176\u5b9e\u4e5f\u6ca1\u6709\u9700\u8981\u767b\u5f55IDC\u670d\u52a1\u5668\u505a\u64cd\u4f5c\u7684\u5730\u65b9\uff0c\u6240\u4ee5Linux\u670d\u52a1\u5668\u7684\u64cd\u4f5c\u4e5f\u6ca1\u6709\u4e4b\u524d\u90a3\u4e48\u719f\u7ec3\u4e86\uff0c\u66f4\u522b\u63d0rsyslog\u7684\u914d\u7f6e\u4e86\u3002<\/p>\n\n\n\n<p>\u4f46\u6700\u8fd1\u6709\u4e2a\u4ea7\u54c1\u6d4b\u8bd5\u7684\u5de5\u4f5c\uff0c\u91cc\u9762\u7684\u65e5\u5fd7\u6570\u636e\u4e3b\u8981\u662f\u901a\u8fc7syslog\u540c\u6b65\u7684\uff0c\u6ca1\u529e\u6cd5\uff0c\u518d\u719f\u6089\u4e00\u904drsyslog\u7684\u914d\u7f6e\uff0c\u5728\u6b64\u8fc7\u7a0b\u4e2d\u4e5f\u91cd\u65b0\u6574\u7406\u5b66\u4e60\u4e86\u4e00\u904d\uff08rsyslog\u867d\u7136\u5df2\u7ecf\u51fa\u73b0\u5f88\u591a\u5e74\u4e86\uff0c\u4f46\u5176\u5b9e\u4e5f\u4e00\u76f4\u90fd\u5728\u4e0d\u65ad\u53d1\u5c55\uff0c\u914d\u7f6e\u8bed\u6cd5\u4e5f\u90fd\u6709\u4e86\u8f83\u5927\u66f4\u65b0\uff09\uff0c\u65b9\u4fbf\u4ee5\u540e\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<p><strong><span style=\"color:#a30003\" class=\"has-inline-color\">\u57fa\u672c\u4e0a\uff0c\u6211\u4eec\u7528rsyslog\u505a\u65e5\u5fd7\u6536\u96c6\u548c\u8f6c\u53d1\uff0c\u6838\u5fc3\u5c31\u662f\u901a\u8fc7 \/etc\/rsyslog.conf (\u5305\u62ec\/etc\/rsyslog.d\/\u76ee\u5f55\u4e0b\u7684\u5404.conf\u914d\u7f6e\u6587\u4ef6) \u6587\u4ef6\u4e2d\u7684\u6307\u4ee4\u89c4\u5b9a\u300e(1)\u4ec0\u4e48\u670d\u52a1 (2)\u7684\u4ec0\u4e48\u6d88\u606f (3)\u9700\u8981\u88ab\u8bb0\u5f55\u5728\u54ea\u91cc(\u672c\u5730\u6587\u4ef6\u6216\u8fdc\u7aef\u670d\u52a1\u4e2d)\u300f\u3002\u6240\u4ee5\uff0c\u5bf9\u4e8e\u6211\u4eec\u7684\u5e38\u89c4\u4f7f\u7528\u6765\u8bf4\uff0c\u6700\u91cd\u8981\u7684\u5c31\u5728\u4e8e\u300efilter(1+2)\u300f\u548c\u300eaction(3)\u300f\u8fd9\u4e24\u6b65\u3002<\/span><\/strong>\u4e0b\u9762\u4ee5\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u8fdb\u884c\u8bf4\u660e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mail.info \/var\/log\/maillog_info\n# \u4e0a\u9762\u8fd9\u4e00\u884c\u7684\u542b\u4e49\u662f\uff1a\u7531 mail \u670d\u52a1\u4ea7\u751f\u7684\u300c\u5927\u4e8e\u7b49\u4e8e\u300d info \u7b49\u7ea7\u7684\u6d88\u606f\uff0c\u90fd\u8bb0\u5f55\u5230 \/var\/log\/maillog_info \u6587\u4ef6\u4e2d\u3002\n# \u5176\u4e2d mail.info \u8d77\u5230\u7684\u5c31\u662f\u300efilter-\u9009\u62e9\u5e76\u8fc7\u6ee4\u300f\u6d88\u606f\uff0c\u540e\u9762\u7684 \/var\/log\/maillog_info \u7528\u4e8e\u6307\u793a\u5177\u4f53\u7684\u300eaction-\u64cd\u4f5c\u300f\u5c06\u6d88\u606f\u76f4\u63a5\u5199\u5165\u672c\u5730\u6587\u4ef6\u3002<\/code><\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5148\u4e0d\u8bb2\u5176\u5b83\u7684\u77e5\u8bc6\u70b9\uff0c\u7b80\u5355\u76f4\u63a5\uff0c\u5148\u4e0a\u4e00\u4e9b\u5e38\u89c1\u7684\u65e5\u5fd7\u6536\u96c6\/\u8f6c\u53d1\u914d\u7f6e\uff0c\u65b9\u4fbf\u76f4\u63a5\u53d6\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># udp\u8f6c\u53d1\n# \u529f\u80fd\u4f5c\u7528\uff1a\u5c06 local6 \u670d\u52a1\u4ea7\u751f\u7684\u5927\u4e8e\u7b49\u4e8e notice \u7b49\u7ea7\u7684\u6d88\u606f\uff0c\u90fd\u4ee5 UDP \u534f\u8bae\u8f6c\u53d1\u5230 192.168.10.199 \u673a\u5668\u4e0a\u7684 514 \u7aef\u53e3\u4e0a\u3002\nlocal6.notice @192.168.10.199:514\n\n# tcp\u8f6c\u53d1\n# \u529f\u80fd\u4f5c\u7528\uff1a\u5c06 local6 \u670d\u52a1\u4ea7\u751f\u7684\u5927\u4e8e\u7b49\u4e8e notice \u7b49\u7ea7\u7684\u6d88\u606f\uff0c\u90fd\u4ee5 TCP \u534f\u8bae\u8f6c\u53d1\u5230 192.168.10.199 \u673a\u5668\u4e0a\u7684 514 \u7aef\u53e3\u4e0a\u3002\nlocal6.notice @@192.168.10.199:514\n\n# tcp\u8f6c\u53d1+\u5199\u672c\u5730\u6587\u4ef6\n# \u529f\u80fd\u4f5c\u7528\uff1a\u5728\u5c06\u5339\u914d\u5230\u7684\u6d88\u606f\u8f6c\u53d1\u81f3\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u540c\u65f6\u4e5f\u5728\u672c\u5730\u5b58\u4e00\u4efd\uff0c\u7136\u540e\u505c\u6b62\u7ee7\u7eed\u5904\u7406\u8be5\u6d88\u606f\u3002\u7b2c3\u884c\u662f\u4e00\u4e2a\u505c\u6b62\u58f0\u660e\uff0c\u7528\u6765\u544a\u8bc9rsyslog\u5bf9\u8be5\u6d88\u606f\u7684\u5904\u7406\u5230\u6b64\u4e3a\u6b62\u3002\nlocal6.notice @@192.168.10.199:514\nlocal6.notice \/var\/log\/local6_notice\n&amp; ~\n\n# \u300ctcp\u8f6c\u53d1+\u5199\u672c\u5730\u6587\u4ef6\u300d\u7684\u53e6\u4e00\u79cd\u5199\u6cd5\n# \u529f\u80fd\u4f5c\u7528\uff1a\u548c\u4e0a\u97623\u884c\u7684\u529f\u80fd\u76f8\u540c\uff0c\u4e0d\u8fc7\u300eaction-\u64cd\u4f5c\u300f\u53ef\u4ee5\u901a\u8fc7\u5f00\u5934\u7684&amp;\u7b26\u53f7\u94fe\u63a5\u8d77\u6765\uff0c\u53ef\u4ee5\u51cf\u5c11\u5339\u914d\u8fc7\u6ee4\u4e0a\u7684\u6027\u80fd\u6d88\u8017\uff0c\u5199\u4e60\u60ef\u4e86\u4e5f\u76f8\u5bf9\u6765\u8bf4\u66f4\u65b9\u4fbf\u4e00\u70b9\u3002\nlocal6.notice @@192.168.10.199:514\n&amp; \/var\/log\/local6_notice\n&amp; ~\n\n# \u5199\u672c\u5730\u6587\u4ef6\u7684\u9ad8\u6027\u80fd\u7248\u672c\n# \u529f\u80fd\u4f5c\u7528\uff1a\u5bf9\u4e8e\u6d88\u606f\u91cf\u6bd4\u8f83\u5927\u7684\u670d\u52a1\uff0c\u6bcf\u6765\u4e00\u6761\u6d88\u606f\u5199\u4e00\u6b21\u6587\u4ef6\u5bf9\u4e8e\u541e\u5410\u6027\u80fd\u4f1a\u6709\u5f71\u54cd\uff0c\u53ef\u4ee5\u501f\u52a9\u7f13\u5b58\u63d0\u5347\u6587\u4ef6\u7684\u5b58\u53d6\u6027\u80fd\u3002\u6d88\u606f\u5148\u50a8\u5b58\u5728\u901f\u5ea6\u8f83\u5feb\u7684\u5185\u5b58\u4e2d(buffer)\uff0c\u7b49\u5230\u6570\u636e\u91cf\u591f\u5927\u4e86\u624d\u4e00\u6b21\u6027\u7684\u5c06\u6240\u6709\u6570\u636e\u90fd\u5199\u5165\u78c1\u76d8\u6587\u4ef6\uff0c\u53ea\u4e0d\u8fc7\u7531\u4e8e\u6d88\u606f\u662f\u7f13\u5b58\u5728\u5185\u5b58\u91cc\u7684\uff0c\u82e5\u4e0d\u6b63\u5e38\u5173\u673a\u5bfc\u81f4\u6d88\u606f\u672a\u53ca\u65f6\u5199\u5230\u6587\u4ef6\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9020\u6210\u90e8\u5206\u6570\u636e\u7684\u9057\u5931\uff0c\u6240\u4ee5\u5bf9\u4e8e\u4e0d\u662f\u90a3\u4e48\u91cd\u8981\u7684\u6d88\u606f\u53ef\u4ee5\u8fd9\u4e48\u5e72\uff1b\u5bf9\u4e8e\u91cd\u8981\u7684\u6d88\u606f\uff0c\u53ef\u4ee5\u501f\u52a9advanced\u8bed\u6cd5\u7684\u6307\u4ee4\u5757\u6765\u8fdb\u884c\u9ad8\u7ea7\u590d\u6742\u70b9\u7684\u8bbe\u7f6e\uff0c\u5728\u4fdd\u8bc1\u6570\u636e\u51c6\u786e\u6027\u7684\u540c\u65f6\u4e5f\u63d0\u9ad8\u6027\u80fd\u3002\u6700\u7b80\u5355\u7684\u5199\u6cd5\u5c31\u662f\u5728\u8bb0\u5f55\u7684\u6587\u4ef6\u8def\u5f84\u524d\u9762\u6dfb\u52a0\u4e00\u4e2a\u51cf\u53f7\u300e \u2013 \u300f\u3002\nlocal6.notice -\/var\/log\/local6_notice\n&amp; ~\n\n# \u6839\u636e\u2014\u2014\u7279\u5b9a\u6e90IP\uff0c\u8fdb\u884c\u8fc7\u6ee4\n# do this in FRONT of the local\/regular rules\nif $fromhost-ip startswith '192.0.1.' then \/var\/log\/network1.log\n&amp; ~\nif $fromhost-ip == '192.1.2.3' then \/var\/log\/192.1.2.3.log\n&amp; ~\n\n# \u6839\u636e\u2014\u2014\u7279\u5b9a\u670d\u52a1\u540d\u79f0\u548ctag\uff0c\u8fdb\u884c\u8fc7\u6ee4\nif $syslogfacility-text == 'local6' and $syslogtag == 'Security:' then -\/var\/log\/Security.log\n&amp; ~\n\n# \u6839\u636e\u2014\u2014\u6d88\u606f\u5185\u5bb9\uff0c\u8fdb\u884c\u8fc7\u6ee4\uff08\u5c06\u5185\u5bb9\u4e2d\u5305\u542bINTF-FLAP\u5173\u952e\u5b57\u7684\u90fd\u4e22\u5f03\uff09\u3002\u5982\u679c\u662f\u4e0d\u5305\u542b\u7684\u8bdd\u5c31\u662f !contains \u5728\u524d\u9762\u6dfb\u52a0\u4e00\u4e2a\u82f1\u6587\u53f9\u53f7\u5373\u53ef\u3002\nif $msg contains 'INTF-FLAP' then \/dev\/null\n&amp; ~<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u518d\u7b80\u5355\u4ecb\u7ecd\u8bf4\u660e\u4e00\u4e0b\u5199rsyslog\u914d\u7f6e\u6587\u4ef6\u7684\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\uff0c\u65b9\u4fbf\u5728\u6709\u66f4\u591a\u9700\u6c42\u7684\u65f6\u5019\u53c2\u8003\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"0\"><li>\u56e0\u4e3arsyslog\u5df2\u7ecf\u53d1\u5c55\u4e86\u51e0\u5341\u5e74\uff0c\u56e0\u4e3a\u5386\u53f2\u539f\u56e0\uff0c\u5b83\u4e0d\u53ef\u907f\u514d\u7684\u6709\u591a\u79cd\u4e0d\u540c\u7684\u914d\u7f6e\u683c\u5f0f\/\u8bed\u6cd5\uff0c\u6309\u5b98\u65b9\u6587\u6863\u7684\u8bf4\u6cd5\u5c31\u662f\uff1a<\/li><\/ol>\n\n\n\n<ul start=\"0\" class=\"has-text-color wp-block-list\" style=\"color:#a30003\"><li><strong>basic &#8211; \u7b80\u5355\u660e\u4e86\u7684\u573a\u666f\u4e0b\u5efa\u8bae\u4f7f\u7528<br><\/strong><\/li><li><strong>advanced &#8211; \u7a0d\u5fae\u590d\u6742\u4e00\u70b9\u7684\u573a\u666f\u90fd\u5efa\u8bae\u7528\u8fd9\u79cd\u65b9\u5f0f\u6765\u5199\uff08\u4f46\u662frsyslog\u7684\u7248\u672c\u4e0d\u80fd\u592a\u8001\uff0c\u5efa\u8baev8\u53ca\u4ee5\u4e0a\u7248\u672c\uff09<br><\/strong><\/li><li>obsolete legacy &#8211; \u9664\u975e\u662f\u8981\u7ed9\u81ea\u5df1\u6316\u5751\uff0c\u5426\u5219\u5f3a\u70c8\u4e0d\u5efa\u8bae\u7528\u8fd9\u79cd\u65b9\u5f0f\u6765\u5199(Do not use obsolete legacy format. It will make your life miserable. It is primarily supported in order to not break existing configurations.)<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5c06 basic \u683c\u5f0f\u8f6c\u6362\u6210 advanced \u683c\u5f0f\u65f6\u7684\u6ce8\u610f\u4e8b\u9879\uff1a<\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><span style=\"color:#a30003\" class=\"has-inline-color\">\u4e0d\u8981\u8fc7\u5ea6\u8f6c\u6362(Do not overdo conversion)\uff0c\u7b80\u5355\u573a\u666f\u4e0b\u7528 basic \u683c\u5f0f\u662f\u5f88\u597d\u7684<br><\/span><\/strong><\/li><li>\u5728\u6a21\u5757\u52a0\u8f7d\u65f6\u8fdb\u884c\u8f6c\u6362(Converting Module Load)<br><\/li><li><strong><span style=\"color:#a30003\" class=\"has-inline-color\">\u5bf9action\u64cd\u4f5c\u8fdb\u884c\u8f6c\u6362(Converting Actions)<br><\/span><\/strong><\/li><li>\u5bf9\u6709\u591a\u4e2a\u53c2\u6570\u7684action\u64cd\u4f5c\u8fdb\u884c\u8f6c\u6362(Action with Multiple Parameters)<br><\/li><li>\u5bf9\u591a\u4e2aaction\u64cd\u4f5c\u7684\u64cd\u4f5c\u94fe\u8fdb\u884c\u8f6c\u6362(Converting Action Chains)\u2014\u2014\u5c24\u5176\u662f\u6709stop\u58f0\u660e\u7684\u573a\u666f<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>basic<\/td><td>advanced<\/td><\/tr><tr><td>file path (\/var\/log\/\u2026)<\/td><td>action(type=&#8221;omfile&#8221; file=&#8221;\/var\/log\u2026\/&#8221; \u2026)<\/td><\/tr><tr><td>UDP forwarding (@remote)<\/td><td>action(type=&#8221;omfwd&#8221; target=&#8221;remote&#8221; protocol=&#8221;udp&#8221; \u2026)<\/td><\/tr><tr><td>TCP forwarding (@@remote)<\/td><td>action(type=&#8221;omfwd&#8221; target=&#8221;remote&#8221; protocol=&#8221;tcp&#8221; \u2026)<\/td><\/tr><tr><td>user notify (:omusrmsg:user)<\/td><td>action(type=&#8221;omusrmsg&#8221; users=&#8221;user&#8221; \u2026)<\/td><\/tr><tr><td>module name (:omxxx:..)<\/td><td>action(type=&#8221;omxxx&#8221; \u2026)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code># \u5982\u679cmsg\u4e2d\u5305\u542b error \u5b57\u7b26\u4e32\uff0c\u5219\u628a\u8be5\u6d88\u606f\u8f6c\u53d1\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u566810.11.12.13\u4e0a\n## \u5386\u53f2\u5199\u6cd51\n:msg, contains, \"error\" @10.11.12.13\n&amp; ~\n\n## \u5386\u53f2\u5199\u6cd52\n:msg, contains, \"error\" @10.11.12.13\n&amp; stop\n\n## \u73b0\u4ee3\u5199\u6cd5(\u63a8\u8350)\nif $msg contains \"error\" then {\n        action(type=\"omfwd\" target=\"10.11.12.13\" protocol=\"udp\")\n        stop\n}<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"has-text-color wp-block-list\" style=\"color:#a30003\"><li>filter-\u5339\u914d\u8fc7\u6ee4\u5efa\u8bae\u7528\u57fa\u4e8e\u8868\u8fbe\u5f0f\u7684\u65b9\u5f0f\uff0c\u770b\u8d77\u6765\u66f4\u8212\u670d\u4e5f\u66f4\u597d\u7ef4\u62a4<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>*.* \/var\/log\/file1 # \u4f20\u7edf\u65b9\u5f0f\nif $msg contains 'error' then \/var\/log\/errlog # \u57fa\u4e8e\u8868\u8fbe\u5f0f\u7684\u65b9\u5f0f<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li><strong>\u5982\u679c\u6709\u4e00\u4e9b\u7b80\u5355\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u5173\u6ce8\u4e00\u4e0brsyslog\u5185\u7f6e\u7684\u51fd\u6570<\/strong><\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Built-in \u51fd\u6570\u7684\u597d\u5904\u5728\u4e8e\u4e0d\u9700\u8981\u989d\u5916\u52a0\u8f7d\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\uff0c\u800c\u4e14\u6570\u91cf\u8fd8\u6709\u4e0d\u5c11\uff0c\u6709\u673a\u4f1a\u7684\u8bdd\u53ef\u4ee5\u8bd5\u8bd5\u3002<\/li><\/ul>\n\n\n\n<ol start=\"4\" class=\"has-text-color wp-block-list\" style=\"color:#a30003\"><li><strong>rsyslog\u7684\u529f\u80fd\u8fd8\u662f\u5f88\u5f3a\u7684\uff0c\u591a\u5173\u6ce8\u4e00\u4e0b\u5b83\u4eec\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4e5f\u8bb8\u4f1a\u6709\u4e0d\u5c11\u65b0\u7684\u53d1\u73b0<\/strong><\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li>Output Modules<\/li><li>Input Modules<\/li><li>Parser Modules<\/li><li>\u2026<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>Storing Messages from a Remote System into a specific File<br><a href=\"https:\/\/www.rsyslog.com\/storing-messages-from-a-remote-system-into-a-specific-file\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/storing-messages-from-a-remote-system-into-a-specific-file\/<\/a><\/p>\n\n\n\n<p>syslog ip ranges to specific files using <code>rsyslog<\/code><br><a href=\"https:\/\/serverfault.com\/questions\/400293\/syslog-ip-ranges-to-specific-files-using-rsyslog\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/serverfault.com\/questions\/400293\/syslog-ip-ranges-to-specific-files-using-rsyslog<\/a><\/p>\n\n\n\n<p>Configuration Formats<br><a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/conf_formats.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/conf_formats.html<\/a><\/p>\n\n\n\n<p>Converting older formats to advanced<br><a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/converting_to_new_format.html#converting-action-chains\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/converting_to_new_format.html#converting-action-chains<\/a><\/p>\n\n\n\n<p>rsyslog Properties<br><a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/properties.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/properties.html<\/a><\/p>\n\n\n\n<p>\u6d88\u606f\u8fc7\u6ee4<br><a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/filters.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/filters.html<\/a><\/p>\n\n\n\n<p>\u8f93\u5165\u6a21\u5757(Input Modules)<br><a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/modules\/idx_input.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/modules\/idx_input.html<\/a><\/p>\n\n\n\n<p>\u8f93\u51fa\u6a21\u5757(Output Modules)<br><a href=\"https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/modules\/idx_output.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.rsyslog.com\/doc\/v8-stable\/configuration\/modules\/idx_output.html<\/a><\/p>\n\n\n\n<p>\u5c06\u6d88\u606f\u53d1\u9001\u5230\u8fdc\u7aef\u7684syslog\u670d\u52a1\u5668<br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.rsyslog.com\/sending-messages-to-a-remote-syslog-server\/\" target=\"_blank\">https:\/\/www.rsyslog.com\/sending-messages-to-a-remote-syslog-server\/<\/a><\/p>\n\n\n\n<p>\u5728 Linux \u4e0a\u914d\u7f6e\u4e00\u4e2a syslog \u670d\u52a1\u5668<br><a href=\"https:\/\/linux.cn\/article-5023-1.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/linux.cn\/article-5023-1.html<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/www.elain.org\/2016\/04\/26\/ELK%E5%AE%9E%E6%88%98%E4%BA%8C%EF%BC%9A%E6%97%A5%E5%BF%97%E6%94%B6%E9%9B%86%E5%88%A9%E5%99%A8rsyslog\/\" data-type=\"URL\" data-id=\"http:\/\/www.elain.org\/2016\/04\/26\/ELK%E5%AE%9E%E6%88%98%E4%BA%8C%EF%BC%9A%E6%97%A5%E5%BF%97%E6%94%B6%E9%9B%86%E5%88%A9%E5%99%A8rsyslog\/\" target=\"_blank\" rel=\"noreferrer noopener\">ELK\u5b9e\u6218\u4e8c:\u65e5\u5fd7\u6536\u96c6\u5229\u5668rsyslog<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u4ee5\u524d\u88abrsyslog\u7ed9\u5f04\u4f24\u8fc7\uff0c\u5f88\u957f\u65f6\u95f4\u91cc\u90fd\u4e0d\u60f3\u518d\u78b0\u5b83\uff08\u80fd\u901a\u8fc7\u81ea\u5df1\u5199HTTP\u670d\u52a1\u5b9e\u73b0\u7684\u65e5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,12],"tags":[692,19,71,1765],"class_list":["post-5157","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-tools","tag-rsyslog","tag-tips","tag-tools","tag-1765"],"views":2860,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5157"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5157\/revisions"}],"predecessor-version":[{"id":5158,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5157\/revisions\/5158"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}