{"id":40909,"date":"2023-07-14T03:34:19","date_gmt":"2023-05-16T22:48:17","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/"},"modified":"2024-04-30T13:28:39","modified_gmt":"2024-04-30T05:28:39","slug":"%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e"},"content":{"rendered":"<p>\u4eceZabbix\u76843.4.5\u7248\u672c\u5f00\u59cb\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9Elasticsearch\u4f5c\u4e3aZabbix\u76d1\u89c6\u7ed3\u679c\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002<br \/>\n\u4e4b\u524d\u9700\u8981\u4f7f\u7528fluentd\u7b49\u5de5\u5177\uff0c\u5c06\u76d1\u89c6\u7ed3\u679c\u548c\u65e5\u5fd7\u7ed3\u679c\u5206\u5f00\u5904\u7406\u548c\u7ba1\u7406\uff0c\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7Zabbix\u529f\u80fd\u4e0eElasticsearch\u8fdb\u884c\u6709\u6548\u7684\u534f\u540c\u5de5\u4f5c\u3002<\/p>\n<p>\u7531\u4e8eZabbix\u5728\u65e5\u5fd7\u76d1\u63a7\u548c\u5206\u6790\u65b9\u9762\u66fe\u7ecf\u7a0d\u663e\u4e0d\u8db3\uff0c\u56e0\u6b64\u901a\u8fc7\u8fd9\u4e2a\u65b0\u529f\u80fd\uff0c\u5bf9\u76d1\u63a7\u7ed3\u679c\u6570\u636e\u7684\u5229\u7528\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u4e86\uff0c\u4e0d\u662f\u5417\uff1f<\/p>\n<p>\u4f60\u53ef\u4ee5\u5728Zabbix\u5b98\u65b9\u6587\u6863\u4e2d\u8be6\u7ec6\u4e86\u89e3\u3002<\/p>\n<p>\u73b0\u5728\u6211\u4eec\u6765\u89e3\u91ca\u4e00\u4e0b\u5982\u4f55\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<h2>Zabbix\u548cElasticsearch\u7684\u5b89\u88c5<\/h2>\n<p>\u4e0d\u63d0\u4f9b\u5bfc\u5165\u6b65\u9aa4\uff0c\u4f46\u4e00\u822c\u60c5\u51b5\u4e0b\u9700\u8981\u5206\u522b\u5b89\u88c5\u3002<br \/>\n\u9700\u8981\u5141\u8bb8\u901a\u4fe1\u624d\u80fd\u4eceZabbix\u8c03\u7528Elasticsearch\u7684Web API\u3002\uff08ES\u7684\u9ed8\u8ba4\u662fhttp:\/\/elasticsearch\u7684\u4e3b\u673a:9200\uff09<\/p>\n<p>\u987a\u4fbf\u4e00\u63d0\uff0c\u672c\u6b21\u6240\u8bd5\u9a8c\u7684\u5404\u4e2a\u7248\u672c\u5982\u4e0b\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Zabbix: 4.0.0 \u03b13<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Elasticsearch: 5.6.7<\/ul>\n<h2>Zabbix\u670d\u52a1\u5668\u7684\u8bbe\u7f6e\u66f4\u6539\u3002<\/h2>\n<p>zabbix_server.conf\u6587\u4ef6\u4e2d\u65b0\u589e\u4e86HistoryStorageURL\u548cHistoryStorageTypes\u4e24\u4e2a\u8bbe\u7f6e\u9879\u3002<\/p>\n<pre class=\"post-pre\"><code>HistoryStorageURL=http:\/\/Elasticsearch\u306e\u30db\u30b9\u30c8\u540dorIP:9200\r\nHistoryStorageTypes=str,log,text\r\n<\/code><\/pre>\n<p>\u5728HistoryStorageURL\u4e2d\u6307\u5b9aElasticsearch API\u7684URL\uff0c\u5728HistoryStorageTypes\u4e2d\u6307\u5b9a\u60f3\u8981\u7528Elasticsearch\u7ba1\u7406\u7684\u6570\u636e\u7c7b\u578b\u3002<br \/>\n\u4ee5\u4e0a\u8bbe\u7f6e\u662f\u5173\u4e8e\u5c06&#8221;\u5b57\u7b26\u4e32\u3001\u65e5\u5fd7\u3001\u6587\u672c&#8221;\u6570\u636e\u5b58\u50a8\u5230Elasticsearch\u4e2d\u7684\u793a\u4f8b\u3002<br \/>\n\u5982\u679c\u8fd8\u60f3\u5c06\u6570\u5b57\u7c7b\u578b\u7684&#8221;\u6574\u6570\u3001\u6d6e\u70b9\u6570&#8221;\u6570\u636e\u6ce8\u518c\u5230Elasticsearch\uff0c\u9700\u8981\u6dfb\u52a0&#8221;uint,dbl&#8221;\u3002<\/p>\n<p>\u4f3c\u4e4e\u53ef\u4ee5\u6839\u636e\u6570\u636e\u7c7b\u578b\u5c06\u5b58\u50a8\u4f4d\u7f6e\u66f4\u6539\u4e3aElasticsearch\u3002\u76ee\u524d\u4f3c\u4e4e\u4e0d\u80fd\u66f4\u6539\u6bcf\u4e2a\u4e2a\u4f53\u9879\u76ee\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002<\/p>\n<h2>\u4fee\u6539Zabbix Web\u7684\u8bbe\u7f6e<\/h2>\n<p>\u56e0\u4e3a\u8fd8\u9700\u8981\u4eceWeb\u7ba1\u7406\u754c\u9762\u8bbf\u95eeElasticsearch\u7684\u6570\u636e\uff0c\u6240\u4ee5\u9700\u8981\u8fdb\u884c\u66f4\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c1\">\/\/ global $DB;<\/span>\r\n<span class=\"k\">global<\/span> <span class=\"nv\">$DB<\/span><span class=\"p\">,<\/span> <span class=\"nv\">$HISTORY<\/span><span class=\"p\">;<\/span>\r\n<span class=\"err\">\u30fb\u30fb\u30fb<\/span><span class=\"n\">\u7565<\/span>\r\n<span class=\"nv\">$HISTORY<\/span><span class=\"p\">[<\/span><span class=\"s1\">'url'<\/span><span class=\"p\">]<\/span>   <span class=\"o\">=<\/span> <span class=\"s1\">'http:\/\/Elasticsearch\u306e\u30db\u30b9\u30c8\u540dorIP:9200'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"nv\">$HISTORY<\/span><span class=\"p\">[<\/span><span class=\"s1\">'types'<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"p\">[<\/span><span class=\"s1\">'str'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'text'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'log'<\/span><span class=\"p\">];<\/span>\r\n<\/code><\/pre>\n<h2>Elasticsearch\u7684\u6620\u5c04\u5b9a\u4e49<\/h2>\n<p>\u4ee5\u4e0a\u662fZabbix\u65b9\u9762\u7684\u8bbe\u7f6e\u5df2\u7ecf\u5b8c\u6210\u3002<br \/>\n\u63a5\u4e0b\u6765\u9700\u8981\u5728Elasticsearch\u65b9\u9762\u8fdb\u884c\u9884\u5148\u7684\u6620\u5c04\u5b9a\u4e49\u3002<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a&#8221;text&#8221;\u7684\u7d22\u5f15\uff0c\u5e76\u5b9a\u4e49\u5176\u6620\u5c04\u3002<br \/>\n\u5b83\u5e94\u8be5\u5177\u6709\u5b57\u6bb5&#8221;itemid&#8221;\u3001&#8221;clock&#8221;\u548c&#8221;value&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><code>curl <span class=\"nt\">-X<\/span> PUT http:\/\/Elasticsearch\u306e\u30db\u30b9\u30c8\u540dorIP:9200\/text <span class=\"nt\">-H<\/span> <span class=\"s1\">'content-type:application\/json'<\/span> <span class=\"nt\">-d<\/span> <span class=\"s1\">'{\r\n \"settings\" : {\r\n    \"index\" : {\r\n       \"number_of_replicas\" : 1,\r\n       \"number_of_shards\" : 5\r\n    }\r\n },\r\n \"mappings\" : {\r\n    \"values\" : {\r\n       \"properties\" : {\r\n          \"itemid\" : {\r\n             \"type\" : \"long\"\r\n          },\r\n          \"clock\" : {\r\n             \"format\" : \"epoch_second\",\r\n             \"type\" : \"date\"\r\n          },\r\n          \"value\" : {\r\n             \"fields\" : {\r\n                \"analyzed\" : {\r\n                   \"index\" : true,\r\n                   \"type\" : \"text\",\r\n                   \"analyzer\" : \"standard\"\r\n                }\r\n             },\r\n             \"index\" : false,\r\n             \"type\" : \"text\"\r\n          }\r\n       }\r\n    }\r\n }\r\n}'<\/span>\r\n<\/code><\/pre>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u4e3alog\u548cstr\u8fdb\u884c\u5b9a\u4e49\u3002<br \/>\n\u6839\u636eanalyzer\u7684\u8bbe\u7f6e\u90e8\u5206\u6216\u7528\u9014\u7684\u4e0d\u540c\uff0c\u53ef\u4ee5\u8fdb\u884c\u5404\u79cd\u8c03\u6574\u548c\u5e94\u7528\u3002\u5148\u6682\u65f6\u4f7f\u7528standard\u7684analyzer\u8fdb\u884c\u6ce8\u518c\u3002<\/p>\n<pre class=\"post-pre\"><code>curl <span class=\"nt\">-X<\/span> PUT http:\/\/Elasticsearch\u306e\u30db\u30b9\u30c8\u540dorIP:9200\/log <span class=\"nt\">-H<\/span> <span class=\"s1\">'content-type:application\/json'<\/span> <span class=\"nt\">-d<\/span> <span class=\"s1\">'\r\n{\r\n \"settings\" : {\r\n    \"index\" : {\r\n       \"number_of_replicas\" : 1,\r\n       \"number_of_shards\" : 5\r\n    }\r\n },\r\n \"mappings\" : {\r\n    \"values\" : {\r\n       \"properties\" : {\r\n          \"itemid\" : {\r\n             \"type\" : \"long\"\r\n          },\r\n          \"clock\" : {\r\n             \"format\" : \"epoch_second\",\r\n             \"type\" : \"date\"\r\n          },\r\n          \"value\" : {\r\n             \"fields\" : {\r\n                \"analyzed\" : {\r\n                   \"index\" : true,\r\n                   \"type\" : \"text\",\r\n                   \"analyzer\" : \"standard\"\r\n                }\r\n             },\r\n             \"index\" : false,\r\n             \"type\" : \"text\"\r\n          }\r\n       }\r\n    }\r\n }\r\n}'<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>curl <span class=\"nt\">-X<\/span> PUT http:\/\/Elasticsearch\u306e\u30db\u30b9\u30c8\u540dorIP:9200\/str <span class=\"nt\">-H<\/span> <span class=\"s1\">'content-type:application\/json'<\/span> <span class=\"nt\">-d<\/span> <span class=\"s1\">'\r\n{\r\n \"settings\" : {\r\n    \"index\" : {\r\n       \"number_of_replicas\" : 1,\r\n       \"number_of_shards\" : 5\r\n    }\r\n },\r\n \"mappings\" : {\r\n    \"values\" : {\r\n       \"properties\" : {\r\n          \"itemid\" : {\r\n             \"type\" : \"long\"\r\n          },\r\n          \"clock\" : {\r\n             \"format\" : \"epoch_second\",\r\n             \"type\" : \"date\"\r\n          },\r\n          \"value\" : {\r\n             \"fields\" : {\r\n                \"analyzed\" : {\r\n                   \"index\" : true,\r\n                   \"type\" : \"text\",\r\n                   \"analyzer\" : \"standard\"\r\n                }\r\n             },\r\n             \"index\" : false,\r\n             \"type\" : \"text\"\r\n          }\r\n       }\r\n    }\r\n }\r\n}'<\/span>\r\n<\/code><\/pre>\n<h2>\u91cd\u542fZabbix\u670d\u52a1\u5668\u548cApache\u3002<\/h2>\n<p>\u5728\u5b8c\u6210\u4e0a\u8ff0\u8bbe\u7f6e\u540e\uff0c\u91cd\u65b0\u542f\u52a8Zabbix\u670d\u52a1\u5668\u548cApache\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>systemctl restart zabbix-server.service\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>systemctl restart httpd.service\r\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u57fa\u672c\u8bbe\u7f6e\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<h2>\u5c06\u65e5\u5fd7\u6570\u636e\u6dfb\u52a0\u5230Zabbix\u9879\u4e2d\u3002<\/h2>\n<p>\u4e3a\u4e86\u5c1d\u8bd5\u4e00\u4e0b\uff0c\u6211\u5c06\u521b\u5efa\u4e00\u4e2a\u65e5\u5fd7\u578b\u9879\u76ee\u5e76\u5c1d\u8bd5\u4f7f\u7528zabbix_sender\u8fdb\u884c\u6ce8\u518c\u3002<\/p>\n<p>\u76d1\u89c6\u7269\u54c1\u7684\u5236\u4f5c\u65b9\u5f0f\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434a37434c4406c9bc41\/30-0.png\" alt=\"zabbix_log_item.png\" \/><\/div>\n<p>\u5bf9\u4e8e\u8fd9\u4e2a\u9879\u76ee\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u6ce8\u518c\u6570\u636e\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>zabbix_sender <span class=\"nt\">-z<\/span> localhost <span class=\"nt\">-s<\/span> test-server01 <span class=\"nt\">-k<\/span> log.test <span class=\"nt\">-o<\/span> <span class=\"s1\">'This is log test'<\/span>\r\ninfo from server: <span class=\"s2\">\"processed: 1; failed: 0; total: 1; seconds spent: 0.001055\"<\/span>\r\n<\/code><\/pre>\n<h2>\u67e5\u770b\u5df2\u5728Elasticsearch\u6ce8\u518c\u7684\u6570\u636e<\/h2>\n<p>\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u4e86Kibana\uff0c\u53ef\u4ee5\u4eceKibana\u754c\u9762\u4e0a\u8fdb\u884c\u786e\u8ba4\u3002<br \/>\n\u53ef\u4ee5\u770b\u5230\u6570\u636e\u5df2\u7ecf\u6ce8\u518c\u5230\u540d\u4e3alog\u7684\u7d22\u5f15\u4e0a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434a37434c4406c9bc41\/35-0.png\" alt=\"kibana_testlog.png\" \/><\/div>\n<p>\u4e3a\u4e86\u786e\u8ba4\uff0c\u6211\u5c06\u4eceElasticsearch\u7684API\u4e2d\u641c\u7d22\u6570\u636e\u3002<\/p>\n<pre class=\"post-pre\"><code>curl <span class=\"nt\">-XGET<\/span> <span class=\"s1\">'http:\/\/Elasticsearch\u306e\u30db\u30b9\u30c8\u540dorIP:9200\/log\/_search?q=*&amp;pretty=true'<\/span>\r\n<span class=\"o\">{<\/span>\r\n  <span class=\"s2\">\"took\"<\/span> : 42,\r\n  <span class=\"s2\">\"timed_out\"<\/span> : <span class=\"nb\">false<\/span>,\r\n  <span class=\"s2\">\"_shards\"<\/span> : <span class=\"o\">{<\/span>\r\n    <span class=\"s2\">\"total\"<\/span> : 5,\r\n    <span class=\"s2\">\"successful\"<\/span> : 5,\r\n    <span class=\"s2\">\"skipped\"<\/span> : 0,\r\n    <span class=\"s2\">\"failed\"<\/span> : 0\r\n  <span class=\"o\">}<\/span>,\r\n  <span class=\"s2\">\"hits\"<\/span> : <span class=\"o\">{<\/span>\r\n    <span class=\"s2\">\"total\"<\/span> : 1,\r\n    <span class=\"s2\">\"max_score\"<\/span> : 1.0,\r\n    <span class=\"s2\">\"hits\"<\/span> : <span class=\"o\">[<\/span>\r\n      <span class=\"o\">{<\/span>\r\n        <span class=\"s2\">\"_index\"<\/span> : <span class=\"s2\">\"log\"<\/span>,\r\n        <span class=\"s2\">\"_type\"<\/span> : <span class=\"s2\">\"values\"<\/span>,\r\n        <span class=\"s2\">\"_id\"<\/span> : <span class=\"s2\">\"AWGOw-q5993wWmv8Di8Z\"<\/span>,\r\n        <span class=\"s2\">\"_score\"<\/span> : 1.0,\r\n        <span class=\"s2\">\"_source\"<\/span> : <span class=\"o\">{<\/span>\r\n          <span class=\"s2\">\"itemid\"<\/span> : 28250,\r\n          <span class=\"s2\">\"value\"<\/span> : <span class=\"s2\">\"This is log test\"<\/span>,\r\n          <span class=\"s2\">\"timestamp\"<\/span> : 0,\r\n          <span class=\"s2\">\"source\"<\/span> : <span class=\"s2\">\"\"<\/span>,\r\n          <span class=\"s2\">\"severity\"<\/span> : 0,\r\n          <span class=\"s2\">\"logeventid\"<\/span> : 0,\r\n          <span class=\"s2\">\"clock\"<\/span> : 1518518659,\r\n          <span class=\"s2\">\"ns\"<\/span> : 18404355,\r\n          <span class=\"s2\">\"ttl\"<\/span> : 0\r\n        <span class=\"o\">}<\/span>\r\n      <span class=\"o\">}<\/span>\r\n    <span class=\"o\">]<\/span>\r\n  <span class=\"o\">}<\/span>\r\n<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<p>\u5df2\u7ecf\u987a\u5229\u6ce8\u518c\u3002<\/p>\n<h2>\u5728Zabbix\u4e0a\u67e5\u770b\u6570\u636e<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u786e\u8ba4Zabbix\u7cfb\u7edf\u4e2d\u5982\u4f55\u663e\u793a\u4ee5\u53ca\u5728RDBMS\u4e2d\u7684\u5177\u4f53\u60c5\u51b5\u3002<\/p>\n<p>\u4eceWeb\u7ba1\u7406\u9875\u9762\u6765\u770b\uff0c\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u5df2\u7ecf\u6210\u529f\u6ce8\u518c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434a37434c4406c9bc41\/42-0.png\" alt=\"zabbix_log_web_dashboard.png\" \/><\/div>\n<p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cDB\u7684\u6570\u636e\u4f1a\u4fdd\u5b58\u5728history_log\u4e2d\uff0c\u4f46\u6839\u636e\u4ee5\u4e0b\u60c5\u51b5\uff0c\u6211\u4eec\u53d1\u73b0\u6ca1\u6709\u8bb0\u5f55\uff0c\u6570\u636e\u53ea\u5b58\u50a8\u5728Elasticsearch\u4e0a\u3002<\/p>\n<pre class=\"post-pre\"><code>MariaDB <span class=\"o\">[<\/span>zabbix]&gt; <span class=\"k\">select<\/span> <span class=\"k\">*<\/span> from history_log<span class=\"p\">;<\/span>\r\nEmpty <span class=\"nb\">set<\/span> <span class=\"o\">(<\/span>0.00 sec<span class=\"o\">)<\/span>\r\n<\/code><\/pre>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u6211\u7b80\u5355\u5730\u4ecb\u7ecd\u4e86Zabbix\u7684\u65b0\u529f\u80fd\u2014\u2014\u4e0eElasticsearch\u7684\u96c6\u6210\u529f\u80fd\u3002\u4e5f\u8bb8\uff0c\u8fd9\u4e2a\u529f\u80fd\u5c06\u6765\u4e0d\u4ec5\u4ec5\u5c40\u9650\u4e8eElasticsearch\uff0c\u53ef\u80fd\u4f1a\u8fdb\u4e00\u6b65\u63d0\u4f9b\u5404\u79cd\u4e0d\u540c\u7684\u5386\u53f2\u6570\u636e\u5b58\u50a8\u65b9\u5f0f\u3002\uff08\u4e0d\u4ec5\u9650\u4e8eElasticsearch\u7684\u5b9a\u4e49\u65b9\u6cd5\uff0c\u800c\u662f\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eHistoryStorage\u6765\u5b9e\u73b0\uff09<br \/>\n\u8fd9\u6837\u505a\u4e0d\u4ec5\u4ec5\u662f\u4e3a\u4e86\u76d1\u63a7\uff0c\u8fd8\u53ef\u4ee5\u65b9\u4fbf\u5730\u5206\u6790\u65e5\u5fd7\u548c\u6587\u672c\u6570\u636e\u3002\u968f\u7740Zabbix 4.0\u7684\u5373\u5c06\u53d1\u5e03\uff0c\u6211\u76f8\u4fe1\u5f88\u5feb\u5c31\u80fd\u5728\u6b63\u5f0f\u7684\u957f\u671f\u652f\u6301\u7248\u672c\uff08LTS\u7248\uff09\u4e2d\u4f7f\u7528\u8fd9\u4e2a\u529f\u80fd\u3002\u771f\u662f\u4ee4\u4eba\u671f\u5f85\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eceZabbix\u76843.4.5\u7248\u672c\u5f00\u59cb\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9Elasticsearch\u4f5c\u4e3aZabbix\u76d1\u89c6\u7ed3\u679c\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40909","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u4f7f\u7528elasticsearch\u4f5c\u4e3azabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\" \/>\n<meta property=\"og:description\" content=\"\u4eceZabbix\u76843.4.5\u7248\u672c\u5f00\u59cb\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9Elasticsearch\u4f5c\u4e3aZabbix\u76d1\u89c6\u7ed3\u679c\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528elasticsearch\u4f5c\u4e3azabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-16T22:48:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T05:28:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434a37434c4406c9bc41\/30-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/\",\"name\":\"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-16T22:48:17+00:00\",\"dateModified\":\"2024-04-30T05:28:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u4f7f\u7528elasticsearch\u4f5c\u4e3azabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e","og_description":"\u4eceZabbix\u76843.4.5\u7248\u672c\u5f00\u59cb\uff0c\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9Elasticsearch\u4f5c\u4e3aZabbix\u76d1\u89c6\u7ed3\u679c\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528elasticsearch\u4f5c\u4e3azabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-16T22:48:17+00:00","article_modified_time":"2024-04-30T05:28:39+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434a37434c4406c9bc41\/30-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/","name":"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-16T22:48:17+00:00","dateModified":"2024-04-30T05:28:39+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Elasticsearch\u4f5c\u4e3aZabbix\u5386\u53f2\u6570\u636e\u5b58\u50a8\u4f4d\u7f6e"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e4%bd%9c%e4%b8%bazabbix%e5%8e%86%e5%8f%b2%e6%95%b0%e6%8d%ae%e5%ad%98%e5%82%a8%e4%bd%8d%e7%bd%ae%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40909"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40909\/revisions"}],"predecessor-version":[{"id":92187,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40909\/revisions\/92187"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}