{"id":122246,"date":"2026-11-04T12:17:34","date_gmt":"2026-11-04T04:17:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/122246.html"},"modified":"2026-11-04T12:17:34","modified_gmt":"2026-11-04T04:17:34","slug":"elk%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90%e7%b3%bb%e7%bb%9f%e6%95%99%e7%a8%8b%ef%bc%9aelasticsearch%e3%80%81logstash%e3%80%81kibana%e9%83%a8%e7%bd%b2%e4%b8%8e%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/122246.html","title":{"rendered":"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u670d\u52a1\u5668\u5c11\u7684\u65f6\u5019&#xff0c;\u6211\u67e5\u95ee\u9898\u57fa\u672c\u5c31\u662f SSH \u4e0a\u53bb\u7ffb\u65e5\u5fd7&#xff1a;\u5148\u627e\u6587\u4ef6&#xff0c;\u518d grep \u5173\u952e\u5b57&#xff0c;\u6700\u540e\u6cbf\u7740\u65f6\u95f4\u4e00\u70b9\u70b9\u5f80\u524d\u8ffd\u3002\u673a\u5668\u548c\u670d\u52a1\u4e00\u591a&#xff0c;\u8fd9\u4e2a\u529e\u6cd5\u6700\u5927\u7684\u9ebb\u70e6\u4e0d\u662f\u547d\u4ee4\u96be&#xff0c;\u800c\u662f\u65e5\u5fd7\u592a\u6563&#xff0c;\u5f88\u96be\u628a\u540c\u4e00\u4ef6\u4e8b\u4e32\u8d77\u6765\u770b\u3002<\/p>\n<p>\u6240\u4ee5\u8fd9\u7bc7\u6211\u60f3\u89e3\u51b3\u7684\u4e0d\u662f\u201c\u88c5\u4e00\u4e2a Kibana \u770b\u56fe\u8868\u201d&#xff0c;\u800c\u662f\u628a Elasticsearch\u3001Logstash \u548c Kibana \u8fd9\u6761\u94fe\u771f\u6b63\u8dd1\u901a&#xff1a;\u65e5\u5fd7\u5148\u96c6\u4e2d\u8d77\u6765&#xff0c;\u518d\u80fd\u641c\u7d22\u3001\u7b5b\u9009\u3001\u505a\u53ef\u89c6\u5316&#xff0c;\u6392\u969c\u65f6\u4e0d\u7528\u4e00\u76f4\u5728\u7ec8\u7aef\u548c\u6587\u4ef6\u4e4b\u95f4\u6765\u56de\u7ffb\u3002<\/p>\n<p>\u4e0b\u9762\u6cbf\u7528\u539f\u6559\u7a0b&#xff0c;\u4ece ELK \u7684\u73af\u5883\u51c6\u5907\u3001Elasticsearch\u3001Logstash\u3001Kibana \u5b89\u88c5\u5f00\u59cb&#xff0c;\u4e00\u76f4\u5230\u7d22\u5f15\u3001\u67e5\u8be2\u3001\u53ef\u89c6\u5316\u548c\u8fdc\u7a0b\u8bbf\u95ee\u3002\u6280\u672f\u6b65\u9aa4\u4fdd\u6301\u5b8c\u6574&#xff0c;\u91cd\u70b9\u770b\u5b83\u80fd\u4e0d\u80fd\u628a\u65e5\u5e38\u65e5\u5fd7\u6392\u67e5\u53d8\u6210\u4e00\u4e2a\u66f4\u96c6\u4e2d\u3001\u66f4\u76f4\u89c2\u7684\u6d41\u7a0b\u3002<\/p>\n<h3>1.\u4ec0\u4e48\u662fKibana&#xff1f;<\/h3>\n<p>Kibana\u662f\u7531Elastic\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u6b3e\u5f00\u6e90\u6570\u636e\u53ef\u89c6\u5316\u4e0e\u5206\u6790\u5e73\u53f0&#xff0c;\u5b83\u662fELK\u6280\u672f\u6808&#xff08;Elasticsearch\u3001Logstash\u3001Kibana&#xff09;\u4e2d\u7684\u201c\u773c\u775b\u201d\u2014\u2014\u4e13\u95e8\u7528\u4e8e\u63a2\u7d22\u3001\u5206\u6790\u548c\u5c55\u793a\u5b58\u50a8\u5728Elasticsearch\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<p>Kibana\u80fd\u505a\u4ec0\u4e48&#xff1f;<\/p>\n<table>\n<tr>\u529f\u80fd\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>&#x1f4ca; \u53ef\u89c6\u5316 (Visualizations)<\/td>\n<td>\u521b\u5efa\u67f1\u72b6\u56fe\u3001\u6298\u7ebf\u56fe\u3001\u997c\u56fe\u3001\u70ed\u529b\u56fe\u3001\u5730\u56fe\u7b49&#xff0c;\u76f4\u89c2\u5c55\u793a\u6570\u636e\u8d8b\u52bf<\/td>\n<\/tr>\n<tr>\n<td>&#x1f5bc;\ufe0f \u4eea\u8868\u76d8 (Dashboards)<\/td>\n<td>\u81ea\u7531\u7ec4\u5408\u591a\u4e2a\u56fe\u8868&#xff0c;\u6253\u9020\u4e13\u5c5e\u76d1\u63a7\u5927\u5c4f&#xff08;\u5982&#xff1a;\u670d\u52a1\u5668\u8d1f\u8f7d &#043; \u9519\u8bef\u65e5\u5fd7 &#043; \u7528\u6237\u884c\u4e3a&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#x1f50d; \u6570\u636e\u63a2\u7d22 (Discover)<\/td>\n<td>\u50cf\u7528\u641c\u7d22\u5f15\u64ce\u4e00\u6837\u67e5\u8be2\u539f\u59cb\u65e5\u5fd7&#xff0c;\u652f\u6301\u5173\u952e\u8bcd\u3001\u5b57\u6bb5\u8fc7\u6ee4\u3001\u65f6\u95f4\u8303\u56f4\u7b5b\u9009<\/td>\n<\/tr>\n<tr>\n<td>\u26a0\ufe0f \u544a\u8b66\u4e0e\u76d1\u63a7 (Alerting &amp; Monitoring)<\/td>\n<td>\u5f53\u9519\u8bef\u7387\u7a81\u589e\u3001CPU\u8fc7\u9ad8\u65f6\u81ea\u52a8\u89e6\u53d1\u901a\u77e5&#xff08;\u90ae\u4ef6\u3001Webhook\u7b49&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#x1f916; \u673a\u5668\u5b66\u4e60 (Machine Learning)<\/td>\n<td>\u81ea\u52a8\u68c0\u6d4b\u5f02\u5e38\u6d41\u91cf\u3001\u5f02\u5e38\u767b\u5f55\u3001\u6027\u80fd\u7a81\u53d8\u7b49&#xff08;\u9700X-Pack\u6216Elastic\u8ba2\u9605\u7248&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#x1f510; \u5b89\u5168\u4e0e\u6743\u9650\u7ba1\u7406<\/td>\n<td>\u63a7\u5236\u8c01\u80fd\u770b\u5230\u54ea\u4e9b\u6570\u636e&#xff08;\u4f01\u4e1a\u7248\u529f\u80fd&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#x1f50d; \u65e5\u5fd7\u4e0eAPM\u5206\u6790<\/td>\n<td>\u7ed3\u5408Beats\u6216APM Agent&#xff0c;\u5b9e\u73b0\u5e94\u7528\u6027\u80fd\u76d1\u63a7&#xff08;APM&#xff09;\u3001\u7528\u6237\u4f53\u9a8c\u8ffd\u8e2a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5178\u578b\u4f7f\u7528\u573a\u666f<\/p>\n<ul>\n<li>\u8fd0\u7ef4\u76d1\u63a7&#xff1a;\u5b9e\u65f6\u67e5\u770bNginx\u3001\u7cfb\u7edf\u3001\u6570\u636e\u5e93\u65e5\u5fd7&#xff0c;\u5feb\u901f\u5b9a\u4f4d\u6545\u969c\u3002<\/li>\n<li>\u5b89\u5168\u5ba1\u8ba1&#xff1a;\u5206\u6790SSH\u767b\u5f55\u65e5\u5fd7&#xff0c;\u53d1\u73b0\u66b4\u529b\u7834\u89e3\u884c\u4e3a\u3002<\/li>\n<li>\u4e1a\u52a1\u5206\u6790&#xff1a;\u8ffd\u8e2a\u7528\u6237\u70b9\u51fb\u6d41\u3001\u8ba2\u5355\u8f6c\u5316\u7387\u3001\u5730\u57df\u5206\u5e03\u3002<\/li>\n<li>DevOps\u53ef\u89c2\u6d4b\u6027&#xff1a;\u7edf\u4e00\u76d1\u63a7\u5fae\u670d\u52a1\u65e5\u5fd7\u3001\u6307\u6807\u3001\u94fe\u8def\u8ffd\u8e2a&#xff08;\u914d\u5408Elastic APM&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u6280\u672f\u7279\u70b9<\/p>\n<ul>\n<li>\u57fa\u4e8eWeb&#xff1a;\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff08;\u9ed8\u8ba4\u7aef\u53e35601&#xff09;&#xff0c;\u65e0\u9700\u5b89\u88c5\u5ba2\u6237\u7aef\u3002<\/li>\n<li>\u6df1\u5ea6\u96c6\u6210Elasticsearch&#xff1a;\u6240\u6709\u6570\u636e\u5fc5\u987b\u5148\u5b58\u5165ES&#xff0c;Kibana\u624d\u80fd\u8bfb\u53d6\u3002<\/li>\n<li>\u63d2\u4ef6\u5316\u67b6\u6784&#xff1a;\u652f\u6301\u81ea\u5b9a\u4e49\u63d2\u4ef6\u6269\u5c55\u529f\u80fd\u3002<\/li>\n<li>\u5f00\u6e90\u514d\u8d39&#xff1a;\u6838\u5fc3\u529f\u80fd\u5b8c\u5168\u5f00\u6e90&#xff08;Apache 2.0\u534f\u8bae&#xff09;&#xff0c;\u9ad8\u7ea7\u529f\u80fd\u9700\u8ba2\u9605Elastic\u5b98\u65b9\u670d\u52a1\u3002<\/li>\n<\/ul>\n<h3>2.\u5b89\u88c5ELK\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u7cfb\u7edf\u73af\u5883\u8981\u6c42&#xff1a;<\/p>\n<table>\n<tr>\u9879\u76ee\u8981\u6c42<\/tr>\n<tbody>\n<tr>\n<td>\u64cd\u4f5c\u7cfb\u7edf<\/td>\n<td>CentOS 7.6 \u6216\u66f4\u9ad8&#xff08;\u63a8\u8350 7.9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u67b6\u6784<\/td>\n<td>x86_64&#xff08;64\u4f4d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7528\u6237\u6743\u9650<\/td>\n<td>\u9700\u8981 root \u6216\u5177\u6709 sudo \u6743\u9650\u7684\u7528\u6237<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7edc<\/td>\n<td>\u80fd\u8bbf\u95ee\u5916\u7f51&#xff08;\u7528\u4e8e\u4e0b\u8f7d RPM \u5305\u6216 Elastic \u5b98\u65b9\u4ed3\u5e93&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u786c\u4ef6\u8d44\u6e90\u5efa\u8bae&#xff08;\u6700\u4f4e vs \u63a8\u8350&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u7ec4\u4ef6\u6700\u4f4e\u914d\u7f6e\u63a8\u8350\u914d\u7f6e&#xff08;\u751f\u586b&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>4 GB RAM<\/td>\n<td>\u2265 8 GB&#xff08;Elasticsearch \u81f3\u5c11 4GB&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>CPU<\/td>\n<td>2 \u6838<\/td>\n<td>\u2265 4 \u6838<\/td>\n<\/tr>\n<tr>\n<td>\u78c1\u76d8<\/td>\n<td>20 GB \u53ef\u7528\u7a7a\u95f4<\/td>\n<td>\u2265 100 GB SSD&#xff08;\u65e5\u5fd7\u91cf\u9700\u66f4\u591a&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Swap<\/td>\n<td>\u7981\u7528 Swap&#xff08;Elasticsearch \u5f3a\u5236\u8981\u6c42&#xff09;<\/td>\n<td>\u5fc5\u987b\u5173\u95ed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u95ed Swap&#xff08;\u5fc5\u987b&#xff01;&#xff09;<\/p>\n<p>\u5173\u95ed Swap&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u4e34\u65f6\u5173\u95ed<\/span><br \/>\n<span class=\"token function\">sudo<\/span> swapoff <span class=\"token parameter variable\">-a<\/span><\/p>\n<p><span class=\"token comment\"># \u6c38\u4e45\u5173\u95ed&#xff1a;\u6ce8\u91ca \/etc\/fstab \u4e2d\u7684 swap \u884c<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">sed<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#039;\/swap\/s\/^\/#\/&#039;<\/span> \/etc\/fstab<\/p>\n<p>\u4f9d\u8d56\u8f6f\u4ef6:<\/p>\n<li>Java\u8fd0\u884c\u73af\u5883&#xff08;\u4ec5Elasticsearch\u548cLogstash\u9700\u8981&#xff09;<\/li>\n<ul>\n<li>Elasticsearch 8.x&#xff1a;\u81ea\u5e26JDK&#xff08;\u65e0\u9700\u5355\u72ec\u5b89\u88c5&#xff09;<\/li>\n<li>Elasticsearch 7.x&#xff1a;\u9700Java 11\u6216Java 17&#xff08;\u5b98\u65b9\u63a8\u8350\u6346\u7ed1JDK&#xff09;<\/li>\n<\/ul>\n<p>\u5efa\u8bae&#xff1a;\u4f7f\u7528Elastic\u5b98\u65b9RPM\u5305&#xff08;\u81ea\u5e26\u517c\u5bb9JDK&#xff09;&#xff0c;\u4e0d\u8981\u624b\u52a8\u5b89\u88c5OpenJDK&#xff0c;\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002<\/p>\n<p>\u521b\u5efaElasticsearch\u7528\u6237&#xff1a;<\/p>\n<p>adduser elasticsearch  <span class=\"token comment\"># \u521b\u5efa\u540d\u4e3a &#039;elasticsearch&#039; \u7684\u65b0\u7528\u6237<\/span><br \/>\n<span class=\"token function\">passwd<\/span> elasticsearch  <span class=\"token comment\"># \u4e3a &#039;elasticsearch&#039; \u7528\u6237\u8bbe\u7f6e\u5bc6\u7801<\/span><\/p>\n<h3>3.\u5b89\u88c5Elasticsearch<\/h3>\n<p>\u5bfc\u5165Elasticsearch GPG\u5bc6\u94a5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">&#8211;import<\/span> https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch<\/p>\n<p>\u521b\u5efaElasticsearch\u4ed3\u5e93\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/yum.repos.d\/elasticsearch.repo <\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>elasticsearch-7.x<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">name<\/span><span class=\"token operator\">&#061;<\/span>Elasticsearch repository <span class=\"token keyword\">for<\/span> <span class=\"token number\">7<\/span>.x packages<br \/>\n<span class=\"token assign-left variable\">baseurl<\/span><span class=\"token operator\">&#061;<\/span>https:\/\/artifacts.elastic.co\/packages\/7.x\/yum<br \/>\n<span class=\"token assign-left variable\">gpgcheck<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token assign-left variable\">gpgkey<\/span><span class=\"token operator\">&#061;<\/span>https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch<br \/>\n<span class=\"token assign-left variable\">enabled<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token assign-left variable\">autorefresh<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token assign-left variable\">type<\/span><span class=\"token operator\">&#061;<\/span>rpm-md<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d5220a9.png\" alt=\"de33a22a64bd324831ce523e1946c311\" \/><\/p>\n<h3>4.\u5b89\u88c5Logstash<\/h3>\n<p>\u5b89\u88c5Logstash&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> logstash <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d55b48b.png\" alt=\"\" \/><\/p>\n<p>\u914d\u7f6eLogstash&#xff1a; \u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Logstash\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/logstash\/conf.d\/logstash.conf<\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>input <span class=\"token punctuation\">{<\/span><br \/>\nbeats <span class=\"token punctuation\">{<\/span><br \/>\nport <span class=\"token operator\">&#061;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token number\">5044<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>output <span class=\"token punctuation\">{<\/span><br \/>\nelasticsearch <span class=\"token punctuation\">{<\/span><br \/>\nhosts <span class=\"token operator\">&#061;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;localhost:9200&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\nindex <span class=\"token operator\">&#061;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token string\">&#034;logstash-%{&#043;YYYY.MM.dd}&#034;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nstdout <span class=\"token punctuation\">{<\/span> codec <span class=\"token operator\">&#061;<\/span><span class=\"token operator\">&gt;<\/span> rubydebug <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d58021b.png\" alt=\"fbccf7e441bd42dd21e8898db7d081fe\" \/><\/p>\n<p>\u542f\u52a8\u5e76\u542f\u7528Logstash&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> logstash<br \/>\n<span class=\"token function\">sudo<\/span> systemctl start logstash<\/p>\n<h3>5.\u5b89\u88c5Kibana<\/h3>\n<p>\u4e0b\u8f7dKibana&#xff1a;<\/p>\n<p>iptables <span class=\"token parameter variable\">-nvL<\/span>  <span class=\"token comment\"># \u663e\u793a\u5f53\u524diptables\u89c4\u5219<\/span><br \/>\n<span class=\"token function\">wget<\/span> https:\/\/artifacts.elastic.co\/downloads\/kibana\/kibana-7.15.0-linux-x86_64.tar.gz<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d5ad759.png\" alt=\"459ccba1aa7b41eda75bf40040e0b975\" \/><\/p>\n<p>\u89e3\u538b\u5e76\u8bbe\u7f6eKibana\u7684\u6743\u9650&#xff1a;<\/p>\n<p><span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-zxvf<\/span> kibana-7.15.0-linux-x86_64.tar.gz  <span class=\"token comment\"># \u89e3\u538bKibana\u5b58\u6863<\/span><br \/>\n<span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> elasticsearch kibana-7.15.0-linux-x86_64  <span class=\"token comment\"># \u5c06Kibana\u6587\u4ef6\u7684\u6240\u6709\u6743\u66f4\u6539\u4e3a &#039;elasticsearch&#039; \u7528\u6237<\/span><\/p>\n<p>\u4fee\u6539kibana\u540d\u79f0&#xff1a;<\/p>\n<p><span class=\"token function\">mv<\/span> kibana-7.15.0-linux-x86_64\/ kibana<br \/>\n<span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> elasticsearch kibana<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d5e584c.png\" alt=\"312f40f436381aef31c29c293be69d3f\" \/><\/p>\n<p>\u79fb\u52a8\u5230\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u5e76\u8bbe\u7f6e\u6743\u9650:<\/p>\n<p><span class=\"token function\">cp<\/span> <span class=\"token parameter variable\">-r<\/span> elasticsearch \/home\/elasticsearch\/  <span class=\"token comment\"># \u5c06Elasticsearch\u6587\u4ef6\u590d\u5236\u5230 &#039;elasticsearch&#039; \u7528\u6237\u7684\u4e3b\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">cp<\/span> <span class=\"token parameter variable\">-r<\/span> kibana \/home\/elasticsearch\/  <span class=\"token comment\"># \u5c06Kibana\u6587\u4ef6\u590d\u5236\u5230 &#039;elasticsearch&#039; \u7528\u6237\u7684\u4e3b\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/home\/elasticsearch\/  <span class=\"token comment\"># \u79fb\u52a8\u5230 &#039;elasticsearch&#039; \u7528\u6237\u7684\u4e3b\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> elasticsearch kibana\/<br \/>\n<span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> elasticsearch elasticsearch\/<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d5f3a57.png\" alt=\"82caafd819274f70a12f97c4f168b723\" \/><\/p>\n<p>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/kibana\/kibana.yml<\/p>\n<p>\u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>server.host: <span class=\"token string\">&#034;0.0.0.0&#034;<\/span><br \/>\nelasticsearch.hosts: <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;http:\/\/localhost:9200&#034;<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p>\u542f\u52a8\u5e76\u542f\u7528Kibana&#xff1a;<\/p>\n<p>.\/bin\/kibana<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041726-6aeab1d60ed17.png\" alt=\"b37985ac5ca300b2e2aa9f7da910f80f\" \/><\/p>\n<p>\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:5601\/&#xff0c;Kibana\u7684Web\u754c\u9762\u5e94\u8be5\u53ef\u89c1\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041726-6aeab1d6ae4df.png\" alt=\"79b026ae089dbc8f5dfeb848247e0c5c\" \/><\/p>\n<h3>6.\u5982\u4f55\u4f7f\u7528Kibana<\/h3>\n<p>\u9a8c\u8bc1\u662f\u5426\u6210\u529f\u68c0\u6d4b\u5230elasticsearch&#xff0c;\u521b\u5efa\u4e00\u4e2apro\u7d22\u5f15&#xff1a;<\/p>\n<p>x <span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-X<\/span> POST <span class=\"token string\">&#034;http:\/\/localhost:9201\/pro\/_doc&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span>-H <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span>-d <span class=\"token string\">&#039;{  &#034;name&#034;: &#034;iPhone 15&#034;,  &#034;price&#034;: 7999,  &#034;category&#034;: &#034;phone&#034;}&#039;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041727-6aeab1d755bb1.png\" alt=\"image-20260305162035063\" \/><\/p>\n<p>\u7136\u540e\u53bb\u53ef\u89c6\u5316\u9875\u9762\u67e5\u770b\u662f\u5426\u521b\u5efa\u6210\u529f&#xff0c;\u5237\u65b0\u9875\u9762\u540e\u521b\u5efa\u6210\u529f&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041727-6aeab1d7893fe.png\" alt=\"image-20260305162203401\" \/><\/p>\n<p>\u521b\u5efa\u548c\u7ba1\u7406\u7d22\u5f15\u6a21\u5f0f&#xff0c;\u5e2e\u52a9\u4f60\u4eceElasticsearch\u4e2d\u68c0\u7d22\u6570\u636e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041728-6aeab1d81faff.png\" alt=\"image-20260305163102194\" \/><\/p>\n<p>\u67e5\u770b\u5e76\u7f16\u8f91\u5b57\u6bb5 *****\u3002\u5b57\u6bb5\u5c5e\u6027&#xff0c;\u5982\u7c7b\u578b\u548c\u53ef\u641c\u7d22\u6027&#xff0c;\u57fa\u4e8e\u4ee5\u4e0b\u6761\u4ef6\u573a\u6620\u5c04&#xff08;\u5728\u65b0\u6807\u7b7e\u9875\u6216\u65b0\u7a97\u53e3\u4e2d\u6253\u5f00&#xff09;\u5728Elasticsearch\u4e2d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041728-6aeab1d8b027c.png\" alt=\"image-20260305163131718\" \/><\/p>\n<p>\u5728config\/kibana.yml\u6dfb\u52a0:<\/p>\n<p>i18n.locale: <span class=\"token string\">&#034;zh-CN&#034;<\/span><\/p>\n<p>\u91cd\u65b0\u542f\u52a8&#xff0c;\u5373\u53ef\u751f\u6548\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041729-6aeab1d946a66.png\" alt=\"image-20260305163904873\" \/><\/p>\n<p>\u5728\u5f00\u53d1\u5de5\u5177\u4e2d&#xff0c;\u8fdb\u884c\u7b80\u5355\u67e5\u8be2&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-X<\/span> GET <span class=\"token string\">&#034;http:\/\/localhost:9201\/products\/_search?q&#061;name:iphone&amp;pretty&#034;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041729-6aeab1d9d13b3.png\" alt=\"image-20260305164115817\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041730-6aeab1da6db92.png\" alt=\"image-20260305164234908\" \/><\/p>\n<p>\u521b\u5efa\u7d22\u5f15&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-X<\/span> PUT <span class=\"token string\">&#034;http:\/\/localhost:9201\/xinke?pretty&#034;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041731-6aeab1db6e763.png\" alt=\"image-20260305164357502\" \/><\/p>\n<p>\u5199\u5165\u6587\u6863:<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-X<\/span> POST <span class=\"token string\">&#034;http:\/\/localhost:9201\/xinke\/_doc&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n<span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#039;{<br \/>\n  &#034;name&#034;: &#034;iPhone 15&#034;,<br \/>\n  &#034;price&#034;: 7999,<br \/>\n  &#034;category&#034;: &#034;phone&#034;<br \/>\n}&#039;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041732-6aeab1dc01226.png\" alt=\"image-20260305164619108\" \/><\/p>\n<h3>7.\u5982\u4f55\u4f7f\u7528\u53ef\u89c6\u5316<\/h3>\n<p>kibana\u53ef\u89c6\u5316\u63a7\u4ef6\u57fa\u4e8eElasticsearch\u7684\u67e5\u8be2\u3002\u5229\u7528\u4e00\u7cfb\u5217\u7684Elasticsearch\u67e5\u8be2\u805a\u5408\u529f\u80fd\u6765\u63d0\u53d6\u548c\u5904\u7406\u6570\u636e&#xff0c;\u518d\u901a\u8fc7\u521b\u5efa\u56fe\u8868\u6765\u5448\u73b0\u6570\u636e\u5206\u5e03\u548c\u8d8b\u52bf<\/p>\n<p>\u70b9\u51fbVisualize\u83dc\u5355&#xff0c;\u8fdb\u5165\u53ef\u89c6\u5316\u56fe\u8868\u521b\u5efa\u754c\u9762&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041732-6aeab1dc8d5ef.png\" alt=\"image-20260305164908380\" \/><\/p>\n<p>Kibana\u81ea\u5e26\u6709\u4e0a10\u79cd\u56fe\u8868&#xff0c;\u6211\u4eec\u6765\u521b\u5efa\u4e00\u4e2a\u81ea\u5df1\u7684\u56fe\u8868\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041733-6aeab1dd20de8.png\" alt=\"image-20260305165226139\" \/><\/p>\n<p>\u6211\u4eec\u9009\u62e9\u6dfb\u52a0\u4e00\u4e2a\u5782\u76f4\u6761\u5f62\u56fe&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041733-6aeab1dd53e91.png\" alt=\"image-20260305165257392\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-11-043xjzhsqks2x.png\" alt=\"image-20260305165400651\" \/><\/p>\n<p>\u6dfb\u52a0X\u8f74\u548cY\u8f74&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"2026-11-0445ov5ruvk4u.png\" alt=\"image-20260305165901055\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-11-04mv1pz3goybn.png\" alt=\"image-20260305165838709\" \/><\/p>\n<p>\u6267\u884c\u540e\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04tbinapxb25c.png\" alt=\"image-20260305170030466\" \/><\/p>\n<p>\u4fdd\u5b58\u540e\u663e\u793a<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04u1hra5mse14.png\" alt=\"image-20260305170106132\" \/><\/p>\n<p>\u642d\u5efa\u548c\u4f7f\u7528\u7684\u8fc7\u7a0b&#xff0c;\u7406\u89e3\u540e&#xff0c;\u662f\u4e0d\u662f\u611f\u89c9\u5f88\u7b80\u5355&#xff1f;<\/p>\n<p>\u5728\u73b0\u4ee3\u53ef\u89c2\u6d4b\u6027\u67b6\u6784\u4e2d&#xff0c;Kibana\u4f5c\u4e3aElasticsearch\u7684\u53ef\u89c6\u5316\u524d\u7aef&#xff0c;\u5e38\u7528\u4e8e\u65e5\u5fd7\u5206\u6790\u3001\u6307\u6807\u76d1\u63a7\u548c\u6570\u636e\u63a2\u7d22\u3002\u7136\u800c&#xff0c;\u5728\u5b9e\u9645\u90e8\u7f72\u4e2d&#xff0c;\u7528\u6237\u5e38\u5e38\u9762\u4e34\u4e00\u4e2a\u6311\u6218&#xff1a;\u5982\u4f55\u5b89\u5168\u3001\u4fbf\u6377\u5730\u5c06\u672c\u5730\u6216\u5185\u7f51\u4e2d\u7684Kibana\u670d\u52a1\u66b4\u9732\u5230\u516c\u7f51&#xff0c;\u4f9b\u8fdc\u7a0b\u56e2\u961f\u8bbf\u95ee&#xff1f;<\/p>\n<p>\u8fd9\u65f6&#xff0c;cpolar\u7684\u4ef7\u503c\u5c31\u51f8\u663e\u51fa\u6765\u4e86\u3002<\/p>\n<p>cpolar\u63d0\u4f9b\u4e86\u4e00\u79cd\u96f6\u8fd0\u7ef4\u6210\u672c\u3001\u9ad8\u5b89\u5168\u6027\u7684\u89e3\u51b3\u65b9\u6848\u2014\u2014\u65e0\u9700\u4e91\u670d\u52a1\u5668\u3001\u65e0\u9700\u516c\u7f51IP\u3001\u65e0\u9700\u7f51\u7edc\u77e5\u8bc6&#xff0c;\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u6253\u901a\u5185\u5916\u7f51\u3002<\/p>\n<p>\u65e0\u8bba\u662f\u5f00\u53d1\u8c03\u8bd5\u3001\u5ba2\u6237\u6f14\u793a&#xff0c;\u8fd8\u662f\u5e94\u6025\u6392\u67e5&#xff0c;cpolar &#043; Kibana\u7684\u7ec4\u5408\u90fd\u80fd\u663e\u8457\u63d0\u5347\u534f\u4f5c\u6548\u7387\u4e0e\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n<h3>8.\u5b89\u88c5cpolar\u5b9e\u73b0\u968f\u65f6\u968f\u5730\u5f00\u53d1<\/h3>\n<h4>8.1 \u4ec0\u4e48\u662fcpolar&#xff1f;<\/h4>\n<p>cpolar\u662f\u4e00\u6b3e\u5b89\u5168\u9ad8\u6548\u7684\u5185\u7f51\u7a7f\u900f\u5de5\u5177&#xff0c;\u65e0\u9700\u516c\u7f51IP\u6216\u590d\u6742\u914d\u7f6e&#xff0c;\u53ea\u9700\u4e00\u6761\u547d\u4ee4&#xff0c;\u5373\u53ef\u5c06\u672c\u5730\u670d\u52a1\u5668\u3001Web\u670d\u52a1\u6216\u4efb\u610f\u7aef\u53e3\u6620\u5c04\u5230\u516c\u7f51&#xff0c;\u8ba9\u4f60\u968f\u65f6\u968f\u5730\u8fdc\u7a0b\u8bbf\u95ee\u5185\u7f51\u5e94\u7528&#xff0c;\u7279\u522b\u9002\u5408\u5f00\u53d1\u8c03\u8bd5\u3001\u8fdc\u7a0b\u8fd0\u7ef4\u548c\u5e94\u6025\u90e8\u7f72\u7b49\u573a\u666f\u3002<\/p>\n<h4>8.2 \u90e8\u7f72cpolar<\/h4>\n<p>cpolar \u53ef\u4ee5\u5c06\u4f60\u672c\u5730\u7535\u8111\u4e2d\u7684\u670d\u52a1&#xff08;\u5982 SSH\u3001Web\u3001\u6570\u636e\u5e93&#xff09;\u6620\u5c04\u5230\u516c\u7f51\u3002\u5373\u4f7f\u4f60\u5728\u5bb6\u91cc\u6216\u5916\u51fa\u65f6&#xff0c;\u4e5f\u53ef\u4ee5\u901a\u8fc7\u516c\u7f51\u5730\u5740\u8fde\u63a5\u56de\u672c\u5730\u8fd0\u884c\u7684\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<p>\u2764\ufe0f\u4ee5\u4e0b\u662f\u5b89\u88c5cpolar\u6b65\u9aa4&#xff1a;<\/p>\n<p>\u4f7f\u7528\u4e00\u952e\u811a\u672c\u5b89\u88c5\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">curl<\/span> https:\/\/get.cpolar.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">sh<\/span><\/p>\n<p><img decoding=\"async\" src=\"2026-11-04bxj02gvg1s4.png\" alt=\"image-20250725104019896\" \/><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6267\u884c\u4e0b\u65b9\u547d\u4ee4\u67e5\u770bcpolar\u670d\u52a1\u72b6\u6001&#xff1a;&#xff08;\u5982\u56fe\u6240\u793a\u5373\u4e3a\u6b63\u5e38\u542f\u52a8&#xff09;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status cpolar<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04wnycerxrw10.png\" alt=\"22e5adfaf290a17fc3384bb296055259\" \/><\/p>\n<p>Cpolar\u5b89\u88c5\u548c\u6210\u529f\u542f\u52a8\u670d\u52a1\u540e&#xff0c;\u5728\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165\u865a\u62df\u673a\u4e3b\u673aIP\u52a09200\u7aef\u53e3\u5373:\u3010http:\/\/ip:9200\u3011\u8bbf\u95eeCpolar\u7ba1\u7406\u754c\u9762&#xff0c;\u4f7f\u7528Cpolar\u5b98\u7f51\u6ce8\u518c\u7684\u8d26\u53f7\u767b\u5f55,\u767b\u5f55\u540e\u5373\u53ef\u770b\u5230cpolar web \u914d\u7f6e\u754c\u9762,\u63a5\u4e0b\u6765\u5728web \u754c\u9762\u914d\u7f6e\u5373\u53ef&#xff1a;<\/p>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\u672c\u57309200\u7aef\u53e3&#xff0c;\u4f7f\u7528cpolar\u8d26\u6237\u5bc6\u7801\u767b\u5f55\u5373\u53ef,\u767b\u5f55\u540e\u5373\u53ef\u5bf9\u96a7\u9053\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-0443saprefsba.png\" alt=\"8a6698b1bf26d64ba3645827fbfb1c29\" \/><\/p>\n<h3>9.\u914d\u7f6e\u516c\u7f51\u5730\u5740<\/h3>\n<p>\u767b\u5f55cpolar web UI\u7ba1\u7406\u754c\u9762\u540e,\u70b9\u51fb\u5de6\u4fa7\u4eea\u8868\u76d8\u7684\u96a7\u9053\u7ba1\u7406\u2014\u2014\u521b\u5efa\u96a7\u9053&#xff1a;<\/p>\n<ul>\n<li>\u96a7\u9053\u540d\u79f0&#xff1a;\u53ef\u81ea\u5b9a\u4e49&#xff0c;\u672c\u4f8b\u4f7f\u7528\u4e86:kibana&#xff0c;\u6ce8\u610f\u4e0d\u8981\u4e0e\u5df2\u6709\u7684\u96a7\u9053\u540d\u79f0\u91cd\u590d<\/li>\n<li>\u534f\u8bae&#xff1a;http<\/li>\n<li>\u672c\u5730\u5730\u5740&#xff1a;5601<\/li>\n<li>\u57df\u540d\u7c7b\u578b&#xff1a;\u968f\u673a\u57df\u540d<\/li>\n<li>\u5730\u533a&#xff1a;\u9009\u62e9China Top<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2026-11-040zbv3qpy5tg.png\" alt=\"image-20260305172359212\" \/><\/p>\n<p>\u521b\u5efa\u6210\u529f\u540e&#xff0c;\u6253\u5f00\u5de6\u4fa7\u5728\u7ebf\u96a7\u9053\u5217\u8868,\u53ef\u4ee5\u770b\u5230\u521a\u521a\u901a\u8fc7\u521b\u5efa\u96a7\u9053\u751f\u6210\u4e86\u516c\u7f51\u5730\u5740&#xff0c;\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u5728\u5176\u4ed6\u7535\u8111\u6216\u8005\u79fb\u52a8\u7aef\u8bbe\u5907&#xff08;\u5f02\u5730&#xff09;\u4e0a&#xff0c;\u4f7f\u7528\u5730\u5740\u8bbf\u95ee\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-040r4lkqsewgx.png\" alt=\"image-20260305172822825\" \/><\/p>\n<p>\u8bbf\u95ee\u6210\u529f\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04crxjea1ufgx.png\" alt=\"image-20260305172903981\" \/><\/p>\n<h3>10.\u4fdd\u7559\u56fa\u5b9a\u516c\u7f51\u5730\u5740<\/h3>\n<p>\u4f7f\u7528cpolar\u4e3a\u5176\u914d\u7f6e\u4e8c\u7ea7\u5b50\u57df\u540d&#xff0c;\u8be5\u5730\u5740\u4e3a\u56fa\u5b9a\u5730\u5740&#xff0c;\u4e0d\u4f1a\u968f\u673a\u53d8\u5316\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04c1hzffykmm3.png\" alt=\"image-20250918151358733\" \/><\/p>\n<p>\u70b9\u51fb\u5de6\u4fa7\u7684\u9884\u7559&#xff0c;\u9009\u62e9\u4fdd\u7559\u4e8c\u7ea7\u5b50\u57df\u540d&#xff0c;\u5730\u533a\u9009\u62e9china Top&#xff0c;\u7136\u540e\u8bbe\u7f6e\u4e00\u4e2a\u4e8c\u7ea7\u5b50\u57df\u540d\u540d\u79f0&#xff0c;\u6211\u4f7f\u7528\u7684\u662fkibanaa&#xff0c;\u5927\u5bb6\u53ef\u4ee5\u81ea\u5b9a\u4e49\u3002\u586b\u5199\u5907\u6ce8\u4fe1\u606f&#xff0c;\u70b9\u51fb\u4fdd\u7559\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04nsmz0ti2k2u.png\" alt=\"image-20260305173049996\" \/><\/p>\n<p>\u767b\u5f55cpolar web UI\u7ba1\u7406\u754c\u9762&#xff0c;\u70b9\u51fb\u5de6\u4fa7\u4eea\u8868\u76d8\u7684\u96a7\u9053\u7ba1\u7406\u2014\u2014\u96a7\u9053\u5217\u8868&#xff0c;\u627e\u5230\u6240\u8981\u914d\u7f6e\u7684\u96a7\u9053&#xff0c;\u70b9\u51fb\u53f3\u4fa7\u7684\u7f16\u8f91\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04fmb0p1bdhjm.png\" alt=\"image-20260305173121513\" \/><\/p>\n<p>\u4fee\u6539\u96a7\u9053\u4fe1\u606f&#xff0c;\u5c06\u4fdd\u7559\u6210\u529f\u7684\u4e8c\u7ea7\u5b50\u57df\u540d\u914d\u7f6e\u5230\u96a7\u9053\u4e2d<\/p>\n<ul>\n<li>\u57df\u540d\u7c7b\u578b&#xff1a;\u9009\u62e9\u4e8c\u7ea7\u5b50\u57df\u540d<\/li>\n<li>Sub Domain&#xff1a;\u586b\u5199\u4fdd\u7559\u6210\u529f\u7684\u4e8c\u7ea7\u5b50\u57df\u540d<\/li>\n<li>\u5730\u533a: China Top<\/li>\n<\/ul>\n<p>\u70b9\u51fb\u66f4\u65b0<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04054xznl1ui3.png\" alt=\"image-20260305173244470\" \/><\/p>\n<p>\u66f4\u65b0\u5b8c\u6210\u540e&#xff0c;\u6253\u5f00\u5728\u7ebf\u96a7\u9053\u5217\u8868&#xff0c;\u6b64\u65f6\u53ef\u4ee5\u770b\u5230\u968f\u673a\u7684\u516c\u7f51\u5730\u5740\u5df2\u7ecf\u53d1\u751f\u53d8\u5316&#xff0c;\u5730\u5740\u540d\u79f0\u4e5f\u53d8\u6210\u4e86\u4fdd\u7559\u548c\u56fa\u5b9a\u7684\u4e8c\u7ea7\u5b50\u57df\u540d\u540d\u79f0\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04lmlerztta2a.png\" alt=\"image-20260305173404920\" \/><\/p>\n<p>\u6700\u540e&#xff0c;\u6211\u4eec\u4f7f\u7528\u56fa\u5b9a\u7684\u516c\u7f51\u5730\u5740\u5728\u4efb\u610f\u8bbe\u5907\u7684\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee&#xff0c;\u53ef\u4ee5\u770b\u5230\u6210\u529f\u8bbf\u95ee\u7684\u9875\u9762&#xff0c;\u8fd9\u6837\u4e00\u4e2a\u6c38\u4e45\u4e0d\u4f1a\u53d8\u5316\u7684\u4e8c\u7ea7\u5b50\u57df\u540d\u516c\u7f51\u7f51\u5740\u5373\u8bbe\u7f6e\u597d\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04uuqnfprznzp.png\" alt=\"image-20260305173455964\" \/><\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u5230\u8fd9\u91cc&#xff0c;ELK \u7684\u6838\u5fc3\u94fe\u8def\u5df2\u7ecf\u5b8c\u6574\u8dd1\u901a&#xff1a;\u65e5\u5fd7\u8fdb\u5165 Elasticsearch&#xff0c;\u7ecf\u7531 Logstash \u5904\u7406&#xff0c;\u518d\u901a\u8fc7 Kibana \u641c\u7d22\u548c\u5c55\u793a\u3002<\/p>\n<p>\u5bf9\u6211\u6765\u8bf4&#xff0c;Kibana \u6700\u6709\u4ef7\u503c\u7684\u5730\u65b9\u5e76\u4e0d\u662f\u201c\u56fe\u8868\u66f4\u6f02\u4eae\u201d&#xff0c;\u800c\u662f\u5f53\u65e5\u5fd7\u8d8a\u6765\u8d8a\u591a\u4ee5\u540e&#xff0c;\u7ec8\u4e8e\u53ef\u4ee5\u6309\u65f6\u95f4\u3001\u5b57\u6bb5\u548c\u6761\u4ef6\u53bb\u7b5b&#xff0c;\u800c\u4e0d\u662f\u6bcf\u6b21\u51fa\u95ee\u9898\u90fd\u91cd\u65b0\u767b\u5f55\u670d\u52a1\u5668\u7ffb\u6587\u4ef6\u3002\u9700\u8981\u89c2\u5bdf\u8d8b\u52bf\u65f6\u518d\u505a\u53ef\u89c6\u5316&#xff0c;\u9700\u8981\u5b9a\u4f4d\u5f02\u5e38\u65f6\u76f4\u63a5\u68c0\u7d22&#xff0c;\u4e24\u4e2a\u573a\u666f\u90fd\u5728\u540c\u4e00\u4e2a\u5165\u53e3\u91cc\u5b8c\u6210\u3002<\/p>\n<p>\u5982\u679c\u56e2\u961f\u6210\u5458\u6216\u81ea\u5df1\u5728\u5916\u9762\u4e5f\u9700\u8981\u67e5\u770b\u8fd9\u5957\u9875\u9762&#xff0c;\u518d\u6309\u539f\u6559\u7a0b\u8865\u4e0a\u5916\u90e8\u8bbf\u95ee\u5373\u53ef\u3002\u771f\u6b63\u7701\u4e0b\u6765\u7684&#xff0c;\u662f\u6545\u969c\u53d1\u751f\u4ee5\u540e\u5728\u4e0d\u540c\u670d\u52a1\u5668\u3001\u4e0d\u540c\u65e5\u5fd7\u6587\u4ef6\u4e4b\u95f4\u53cd\u590d\u627e\u7ebf\u7d22\u7684\u65f6\u95f4\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-11-04suqhnanaoec.png\" alt=\"image-20260305173514273\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00<br \/>\n\u670d\u52a1\u5668\u5c11\u7684\u65f6\u5019&#xff0c;\u6211\u67e5\u95ee\u9898\u57fa\u672c\u5c31\u662f SSH \u4e0a\u53bb\u7ffb\u65e5\u5fd7&#xff1a;\u5148\u627e\u6587\u4ef6&#xff0c;\u518d grep \u5173\u952e\u5b57&#xff0c;\u6700\u540e\u6cbf\u7740\u65f6\u95f4\u4e00\u70b9\u70b9\u5f80\u524d\u8ffd\u3002\u673a\u5668\u548c\u670d\u52a1\u4e00\u591a&#xff0c;\u8fd9\u4e2a\u529e\u6cd5\u6700\u5927\u7684\u9ebb\u70e6\u4e0d\u662f\u547d\u4ee4\u96be&#xff0c;\u800c\u662f\u65e5\u5fd7\u592a\u6563&#xff0c;\u5f88\u96be\u628a\u540c\u4e00\u4ef6\u4e8b\u4e32\u8d77\u6765\u770b\u3002<br \/>\n\u6240\u4ee5\u8fd9\u7bc7\u6211\u60f3\u89e3\u51b3\u7684\u4e0d\u662f\u201c\u88c5\u4e00\u4e2a Kibana \u770b\u56fe\u8868\u201d&#xff0c;\u800c\u662f\u628a Elasticsearch\u3001Logstash \u548c Kibana \u8fd9\u6761\u94fe\u771f\u6b63\u8dd1\u901a&#xff1a;\u65e5<\/p>\n","protected":false},"author":2,"featured_media":122226,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1299,2296,323],"topic":[],"class_list":["post-122246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-elasticsearch","tag-elk","tag-323"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/122246.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u670d\u52a1\u5668\u5c11\u7684\u65f6\u5019&#xff0c;\u6211\u67e5\u95ee\u9898\u57fa\u672c\u5c31\u662f SSH \u4e0a\u53bb\u7ffb\u65e5\u5fd7&#xff1a;\u5148\u627e\u6587\u4ef6&#xff0c;\u518d grep \u5173\u952e\u5b57&#xff0c;\u6700\u540e\u6cbf\u7740\u65f6\u95f4\u4e00\u70b9\u70b9\u5f80\u524d\u8ffd\u3002\u673a\u5668\u548c\u670d\u52a1\u4e00\u591a&#xff0c;\u8fd9\u4e2a\u529e\u6cd5\u6700\u5927\u7684\u9ebb\u70e6\u4e0d\u662f\u547d\u4ee4\u96be&#xff0c;\u800c\u662f\u65e5\u5fd7\u592a\u6563&#xff0c;\u5f88\u96be\u628a\u540c\u4e00\u4ef6\u4e8b\u4e32\u8d77\u6765\u770b\u3002 \u6240\u4ee5\u8fd9\u7bc7\u6211\u60f3\u89e3\u51b3\u7684\u4e0d\u662f\u201c\u88c5\u4e00\u4e2a Kibana \u770b\u56fe\u8868\u201d&#xff0c;\u800c\u662f\u628a Elasticsearch\u3001Logstash \u548c Kibana \u8fd9\u6761\u94fe\u771f\u6b63\u8dd1\u901a&#xff1a;\u65e5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/122246.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T04:17:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d5220a9.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122246.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/122246.html\",\"name\":\"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-04T04:17:34+00:00\",\"dateModified\":\"2026-11-04T04:17:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/122246.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/122246.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122246.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/122246.html","og_locale":"zh_CN","og_type":"article","og_title":"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u8a00 \u670d\u52a1\u5668\u5c11\u7684\u65f6\u5019&#xff0c;\u6211\u67e5\u95ee\u9898\u57fa\u672c\u5c31\u662f SSH \u4e0a\u53bb\u7ffb\u65e5\u5fd7&#xff1a;\u5148\u627e\u6587\u4ef6&#xff0c;\u518d grep \u5173\u952e\u5b57&#xff0c;\u6700\u540e\u6cbf\u7740\u65f6\u95f4\u4e00\u70b9\u70b9\u5f80\u524d\u8ffd\u3002\u673a\u5668\u548c\u670d\u52a1\u4e00\u591a&#xff0c;\u8fd9\u4e2a\u529e\u6cd5\u6700\u5927\u7684\u9ebb\u70e6\u4e0d\u662f\u547d\u4ee4\u96be&#xff0c;\u800c\u662f\u65e5\u5fd7\u592a\u6563&#xff0c;\u5f88\u96be\u628a\u540c\u4e00\u4ef6\u4e8b\u4e32\u8d77\u6765\u770b\u3002 \u6240\u4ee5\u8fd9\u7bc7\u6211\u60f3\u89e3\u51b3\u7684\u4e0d\u662f\u201c\u88c5\u4e00\u4e2a Kibana \u770b\u56fe\u8868\u201d&#xff0c;\u800c\u662f\u628a Elasticsearch\u3001Logstash \u548c Kibana \u8fd9\u6761\u94fe\u771f\u6b63\u8dd1\u901a&#xff1a;\u65e5","og_url":"https:\/\/www.wsisp.com\/helps\/122246.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-04T04:17:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104041725-6aeab1d5220a9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/122246.html","url":"https:\/\/www.wsisp.com\/helps\/122246.html","name":"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-04T04:17:34+00:00","dateModified":"2026-11-04T04:17:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/122246.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/122246.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/122246.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ELK\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf\u6559\u7a0b\uff1aElasticsearch\u3001Logstash\u3001Kibana\u90e8\u7f72\u4e0e\u8fdc\u7a0b\u8bbf\u95ee"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=122246"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122246\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/122226"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=122246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=122246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=122246"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=122246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}