{"id":18205,"date":"2025-06-30T23:03:58","date_gmt":"2025-06-30T15:03:58","guid":{"rendered":"https:\/\/92it.top\/?p=18205"},"modified":"2025-07-01T10:02:18","modified_gmt":"2025-07-01T02:02:18","slug":"elasticsearch-%e5%92%8c-kibana-%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=18205","title":{"rendered":"Elasticsearch \u548c kibana \u5b89\u88c5"},"content":{"rendered":"\n<p><strong>\u5b89\u88c5elasticsearch<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<ul>\n<li><strong>\u62c9\u53d6 Elasticsearch\u955c\u50cf\uff08\u6ce8\u610f\u9700\u8981\u7ffb\u5899\uff09<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker pull elasticsearch:7.14.1<\/pre>\n\n\n\n<ul>\n<li><strong>\u521b\u5efa network<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker network create elastic<\/pre>\n\n\n\n<p>Docker \u652f\u6301\u591a\u79cd\u7f51\u7edc\u6a21\u5f0f\uff0c\u9ed8\u8ba4\u4f7f\u7528&nbsp;<code>bridge<\/code>&nbsp;\u7f51\u7edc\uff08\u901a\u8fc7&nbsp;<code>docker0<\/code>&nbsp;\u865a\u62df\u7f51\u5361\u5b9e\u73b0\u5bb9\u5668\u95f4\u901a\u4fe1\uff09\u3002\u4f46\u5728\u590d\u6742\u573a\u666f\u4e0b\uff0c\u9ed8\u8ba4\u7f51\u7edc\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\uff1a<\/p>\n\n\n\n<ol>\n<li>\u5bb9\u5668\u540d\u4e0d\u53ef\u76f4\u63a5\u8bbf\u95ee\uff1a\u9ed8\u8ba4\u7f51\u7edc\u4e2d\uff0c\u5bb9\u5668\u53ea\u80fd\u901a\u8fc7 IP \u5730\u5740\u4e92\u76f8\u8bbf\u95ee\uff0c\u96be\u4ee5\u8bb0\u5fc6\u548c\u7ef4\u62a4\u3002<\/li>\n\n\n\n<li>\u9694\u79bb\u6027\u4e0d\u8db3\uff1a\u6240\u6709\u5bb9\u5668\u5171\u4eab\u540c\u4e00\u4e2a bridge \u7f51\u7edc\uff0c\u5b58\u5728\u547d\u540d\u51b2\u7a81\u548c\u5b89\u5168\u98ce\u9669\u3002<\/li>\n<\/ol>\n\n\n\n<p><code>--net elastic<\/code>&nbsp;\u8868\u793a\u5c06\u5bb9\u5668\u52a0\u5165\u540d\u4e3a&nbsp;<code>elastic<\/code>&nbsp;\u7684\u81ea\u5b9a\u4e49\u7f51\u7edc\uff0c\u4e3b\u8981\u76ee\u7684\u662f\uff1a<\/p>\n\n\n\n<p>\u5bb9\u5668\u95f4\u901a\u8fc7\u540d\u79f0\u4e92\u8bbf\uff1a\u5728&nbsp;<code>elastic<\/code>&nbsp;\u7f51\u7edc\u4e2d\uff0c\u5bb9\u5668\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5bb9\u5668\u540d\uff08\u5982&nbsp;<code>elasticsearch<\/code>\uff09\u8bbf\u95ee\u5176\u4ed6\u5bb9\u5668\uff0c\u65e0\u9700\u624b\u52a8\u89e3\u6790 IP \u5730\u5740\u3002<\/p>\n\n\n\n<ul>\n<li>Kibana \u5bb9\u5668\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7&nbsp;<code>http:\/\/elasticsearch:9200<\/code>&nbsp;\u8fde\u63a5 Elasticsearch<\/li>\n\n\n\n<li>\u670d\u52a1\u53d1\u73b0\u66f4\u52a0\u7b80\u5355\uff08\u901a\u8fc7 DNS \u81ea\u52a8\u89e3\u6790\u5bb9\u5668\u540d\u5230 IP\uff09<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u53ef\u4ee5\u770b\u5230 elastic \u7f51\u7edc\u6b63\u5e38\u521b\u5efa\u4e86\ndocker network ls \n           \nNETWORK ID     NAME      DRIVER    SCOPE\n00e36aa513ea   bridge    bridge    local\nf9a92ae19143   elastic   bridge    local\nfda20d52a9ae   host      host      local\n36a3c054b09c   none      null      local<\/pre>\n\n\n\n<ul>\n<li><strong>\u8fd0\u884c\u5bb9\u5668<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -d \\\n--name es \\\n--net elastic \\\n-e \"ES_JAVA_0PTS=-Xms512m -Xmx512m\" \\\n-e \"discovery.type=single-node\" \\\n-v \/Users\/xxx\/Documents\/elasticsearch\/data:\/usr\/share\/elasticsearch\/data \\\n-v \/Users\/xxx\/Documents\/elasticsearch\/plugins:\/usr\/share\/elasticsearch\/plugins \\\n-v \/Users\/xxx\/Documents\/elasticsearch\/logs:\/usr\/share\/elasticsearch\/logs \\\n--privileged \\\n-p 9200:9200 \\\n-p 9300:9300 \\\nelasticsearch:7.14.1<\/pre>\n\n\n\n<ul>\n<li><strong>Elasticsearch \u8bbe\u7f6e\u5bc6\u7801<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5bb9\u5668\u542f\u52a8\u4ee5\u540e\uff0c\u6211\u4eec\u7528\u4e0b\u9762\u547d\u4ee4\u8fdb\u5165\u5bb9\u5668\nMac-mini ~ % docker exec -it f02c5b21b360 \/bin\/bash   \n\n# \u8fdb\u5165\u5bb9\u5668\u4ee5\u540e \u4fee\u6539config\u4e0b\u9762\u7684 elasticsearch.yml\u6587\u4ef6\u3002\n[root@f02c5b21b360 elasticsearch]# ls\nbin  config  data  jdk\tlib  LICENSE.txt  logs\tmodules  NOTICE.txt  plugins  README.asciidoc\n\n[root@f02c5b21b360 elasticsearch]# cd config\n\n[root@f02c5b21b360 config]# ls\nelasticsearch.keystore\telasticsearch.yml  jvm.options\tjvm.options.d  log4j2.file.properties  log4j2.properties  role_mapping.yml  roles.yml  users  users_roles\n\n[root@f02c5b21b360 config]# vi elasticsearch.yml<\/pre>\n\n\n\n<p>\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">## \u914d\u7f6expack\uff0c\u5f00\u542f\u52a0\u5bc6\nxpack.security.enabled: true\nxpack.license.self_generated.type: basic\nxpack.security.transport.ssl.enabled: true\n\n## elasticsearch-head\u914d\u7f6e\u9700\u8981\u6dfb\u52a0\u6b64\u914d\u7f6e\nhttp.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-1024x333.png\" alt=\"\" class=\"wp-image-18215\" style=\"width:600px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-1024x333.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-300x97.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-768x250.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-830x270.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-230x75.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-350x114.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473-480x156.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-473.png 1182w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u4fdd\u5b58\u9000\u51fa\uff0c\u6267\u884cbin\u76ee\u5f55\u4e0b\u9762\u7684elasticsearch-setup-password\u6587\u4ef6\uff0c\u8bbe\u5b9a\u5bc6\u7801<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[root@f02c5b21b360 elasticsearch]# ls\nbin  config  data  jdk\tlib  LICENSE.txt  logs\tmodules  NOTICE.txt  plugins  README.asciidoc\n\n[root@f02c5b21b360 elasticsearch]# cd bin\n\n[root@f02c5b21b360 bin]# ls\nelasticsearch\t\telasticsearch-cli\telasticsearch-env-from-file  elasticsearch-migrate  elasticsearch-saml-metadata    elasticsearch-shard\t\t     elasticsearch-syskeygen  x-pack-security-env\nelasticsearch-certgen\telasticsearch-croneval\telasticsearch-geoip\t     elasticsearch-node     elasticsearch-service-tokens   elasticsearch-sql-cli\t     elasticsearch-users      x-pack-watcher-env\nelasticsearch-certutil\telasticsearch-env\telasticsearch-keystore\t     elasticsearch-plugin   elasticsearch-setup-passwords  elasticsearch-sql-cli-7.14.1.jar  x-pack-env\n\n[root@f02c5b21b360 bin]# .\/elasticsearch-setup-passwords interactive<\/pre>\n\n\n\n<p>\u8fd9\u91cc\u4f1a\u8bbe\u7f6e\u516d\u4e2a\u8d26\u53f7\u7684\u5bc6\u7801\uff1aelastic,apm_system,kibana,logstash_system,beats_system,remote_monitoring_user<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"396\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-1024x396.png\" alt=\"\" class=\"wp-image-18217\" style=\"width:578px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-1024x396.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-300x116.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-768x297.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-1536x594.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-830x321.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-230x89.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-350x135.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475-480x186.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-475.png 1552w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<ul>\n<li><strong>\u91cd\u542f\u5bb9\u5668\uff0c\u7136\u540e\u8bbf\u95ee <a href=\"http:\/\/localhost:9200\">http:\/\/localhost:9200<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u9700\u8981\u7528\u6237\u540d\u548c\u5bc6\u7801\u624d\u80fd\u8bbf\u95ee\u4e86<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"434\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-1024x434.png\" alt=\"\" class=\"wp-image-18216\" style=\"width:470px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-1024x434.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-300x127.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-768x326.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-1536x652.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-830x352.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-230x98.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-350x148.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474-480x204.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-474.png 1570w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u3000<\/p>\n\n\n\n<p>\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801 \u6210\u529f\u767b\u5f55\u8fdb\u53bb\u5c31\u8bf4\u660ees\u5df2\u914d\u7f6e\u5b8c\u6210&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"420\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476.png\" alt=\"\" class=\"wp-image-18219\" style=\"width:480px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476.png 930w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476-300x135.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476-768x347.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476-830x375.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476-230x104.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476-350x158.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-476-480x217.png 480w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure><\/div>\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>\u5b89\u88c5 kibana<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<ul>\n<li><strong>\u62c9\u53d6 kibana\u955c\u50cf\uff08\u6ce8\u610f\u9700\u8981\u7ffb\u5899\uff09<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u203c\ufe0f kibana\u7248\u672c\u53f7\u8981\u548celasticsearch\u4e00\u81f4\uff08\u975e\u5e38\u91cd\u8981\uff0c\u5426\u5219 kibana\u542f\u52a8\u65f6\u4f1a\u62a5\u9519\uff0c\u63d0\u793a\u548celasticsearch\u7248\u672c\u53f7\u4e0d\u4e00\u81f4\uff09\u8fd9\u91cc\u90fd\u662f\u7528\u7684 7.14.1<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker pull kibana:7.14.1<\/pre>\n\n\n\n<ul>\n<li><strong>\u8fd0\u884c\u5bb9\u5668<\/strong><\/li>\n<\/ul>\n\n\n\n<p>ELASTICSEARCH_HOSTS\u6307\u5411elasticsearch url \uff0c\u6ce8\u610f&#8211;net elastic<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -d \\\n--name kibana \\\n--net elastic \\\n-e ELASTICSEARCH_HOSTS=http:\/\/es:9200 \\\n-p 5601:5601 \\\nkibana:7.14.1<\/pre>\n\n\n\n<ul>\n<li><strong>\u8bbe\u5b9a\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u4ee5\u8fde\u63a5Elasticsearch<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u4fee\u6539 config\\kibana.yml\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u901a\u8fc7\u5bb9\u5668id \u8fdb\u5165kibana\u5bb9\u5668\nMac-mini ~ % docker exec -it db21974d8467 \/bin\/bash\n\n# \u8fdb\u5165\u5bb9\u5668\u4ee5\u540e\uff0c\u4fee\u6539config\u4e0b\u9762\u7684kibana.yml\u6587\u4ef6\nbash-4.4$ ls\nLICENSE.txt  NOTICE.txt  README.txt  bin  config  data\tnode  node_modules  package.json  plugins  src\tx-pack\n\nbash-4.4$ cd config\n\nbash-4.4$ ls\nkibana.yml  node.options\n\nbash-4.4$ vi kibana.yml\n\n<\/pre>\n\n\n\n<p>\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">xpack.security.enabled: true\nelasticsearch.username: \"elastic\"\nelasticsearch.password: \"xxxx\"   # elasticsearch\u4e2d\u8bbe\u5b9a\u7684\u5bc6\u7801<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"634\" height=\"284\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-477.png\" alt=\"\" class=\"wp-image-18220\" style=\"width:410px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-477.png 634w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-477-300x134.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-477-230x103.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-477-350x157.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-477-480x215.png 480w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/figure><\/div>\n\n\n<p>\u4fdd\u5b58\u9000\u51fa\uff0c\u91cd\u542f kibana \u5bb9\u5668\u3002<\/p>\n\n\n\n<ul>\n<li><strong>\u8bbf\u95ee <a href=\"http:\/\/localhost:9200\">http:\/\/localhost:<\/a>5601<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u9700\u8981\u7528\u6237\u540d\u548c\u5bc6\u7801\u624d\u80fd\u8bbf\u95ee<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-1024x566.png\" alt=\"\" class=\"wp-image-18221\" style=\"width:514px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-1024x566.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-300x166.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-768x424.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-1536x849.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-830x459.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-230x127.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-350x193.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478-480x265.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-478.png 1636w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u8f93\u5165elasticsearch\u4e2d\u8bbe\u5b9a\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0cLogin in<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"596\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-1024x596.png\" alt=\"\" class=\"wp-image-18223\" style=\"width:522px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-1024x596.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-300x175.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-768x447.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-1536x894.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-2048x1192.png 2048w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-830x483.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-230x134.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-350x204.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/06\/image-480-480x279.png 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u542f\u52a8\u4ee5\u540e\uff0c\u505a\u5b8cfrp\u5185\u7f51\u7a7f\u900f\uff0c\u5c31\u53ef\u4ee5\u5728\u516c\u7f51\u7528public ip\u8bbf\u95ee kibana dashboard\u4e86\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"666\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-1024x666.png\" alt=\"\" class=\"wp-image-18228\" style=\"width:512px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-1024x666.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-300x195.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-768x499.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-1536x999.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-2048x1332.png 2048w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-830x540.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-230x150.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-350x228.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-1-480x312.png 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u53d1\u73b0\u63d0\u793a\u4e86\u4e0b\u9762\u7684\u95ee\u9898<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">server.publicBaseUrl is missing and should be configured when running in a production environment. Some features may not behave correctly.<\/pre>\n\n\n\n<p>\u4f60\u770b\u5230\u7684\u8fd9\u4e2a\u8b66\u544a\u662f Kibana \u5728\u751f\u4ea7\u73af\u5883\u4e0b\u7684\u5b89\u5168\u63d0\u793a\uff0c\u63d0\u793a\u4f60\u7f3a\u5c11&nbsp;<code>server.publicBaseUrl<\/code>&nbsp;\u914d\u7f6e\u3002\u8fd9\u4e2a\u914d\u7f6e\u9879\u5bf9 Kibana \u7684\u6b63\u786e\u8fd0\u884c\u975e\u5e38\u91cd\u8981\uff0c\u7279\u522b\u662f\u5728\u6d89\u53ca URL \u751f\u6210\u3001\u91cd\u5b9a\u5411\u548c\u5b89\u5168\u529f\u80fd\u65f6\u3002<\/p>\n\n\n\n<p>\u4e3a\u4ec0\u4e48\u9700\u8981&nbsp;<code>server.publicBaseUrl<\/code>\uff1f<\/p>\n\n\n\n<ul>\n<li>URL \u751f\u6210\uff1aKibana \u5728\u751f\u6210\u94fe\u63a5\uff08\u5982\u90ae\u4ef6\u901a\u77e5\u3001\u6df1\u5c42\u94fe\u63a5\uff09\u65f6\uff0c\u9700\u8981\u77e5\u9053\u5916\u90e8\u8bbf\u95ee\u7684\u57fa\u7840 URL\u3002<\/li>\n\n\n\n<li>\u4ee3\u7406\u73af\u5883\u9002\u914d\uff1a\u5982\u679c Kibana \u8fd0\u884c\u5728\u53cd\u5411\u4ee3\u7406\uff08\u5982 Nginx\uff09\u540e\u9762\uff0cKibana \u9700\u8981\u77e5\u9053\u4ee3\u7406\u540e\u7684\u516c\u5f00 URL\u3002<\/li>\n\n\n\n<li>\u5b89\u5168\u529f\u80fd\uff1a\u67d0\u4e9b\u5b89\u5168\u529f\u80fd\uff08\u5982 OAuth \u56de\u8c03\u3001CSRF \u4fdd\u62a4\uff09\u4f9d\u8d56\u4e8e\u6b63\u786e\u7684\u57fa\u7840 URL\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7f3a\u5c11\u914d\u7f6e\u7684\u5f71\u54cd<\/p>\n\n\n\n<ul>\n<li>\u90e8\u5206\u529f\u80fd\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\uff08\u5982\u544a\u8b66\u901a\u77e5\u4e2d\u7684\u94fe\u63a5\u9519\u8bef\uff09\u3002<\/li>\n\n\n\n<li>\u5b89\u5168\u6f0f\u6d1e\u98ce\u9669\uff08\u5982\u5f00\u653e\u91cd\u5b9a\u5411\u653b\u51fb\uff09\u3002<\/li>\n\n\n\n<li>\u7528\u6237\u4f53\u9a8c\u95ee\u9898\uff08\u5982\u70b9\u51fb\u94fe\u63a5\u8df3\u8f6c\u5230\u9519\u8bef\u5730\u5740\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u89e3\u51b3 <code>kibana.yml<\/code>&nbsp;\u4e2d\u6dfb\u52a0\u914d\u7f6e\uff08\u63a8\u8350\uff09<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">server.publicBaseUrl: \"https:\/\/kibana.example.com\"  # \u66ff\u6362\u4e3a\u4f60\u7684\u5b9e\u9645\u57df\u540d\u6216 IP\n<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u8fdb\u5165kibana docker\u5bb9\u5668\nMac-mini ~ % docker exec -it db21974d8467 \/bin\/bash\n\n# \u7f16\u8f91\nbash-4.4$ ls\nLICENSE.txt  NOTICE.txt  README.txt  bin  config  data\tnode  node_modules  package.json  plugins  src\tx-pack\n\nbash-4.4$ cd config\n\nbash-4.4$ ls\nkibana.yml  node.options\n\nbash-4.4$ vi kibana.yml<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># kibana.yml \u6587\u4ef6\n\n#\n# ** THIS IS AN AUTO-GENERATED FILE **\n#\n\n# Default Kibana configuration for docker target\nserver.host: \"0\"\nserver.shutdownTimeout: \"5s\"\nelasticsearch.hosts: [ \"http:\/\/elasticsearch:9200\" ]\nmonitoring.ui.container.elasticsearch.enabled: true\n\nxpack.security.enabled: true\nelasticsearch.username: \"elastic\" #\u8fd9\u91cc\u66ff\u6362\u6210\u5b9e\u9645\u7684\u7528\u6237\u540d\nelasticsearch.password: \"xxxxxx\"  #\u8fd9\u91cc\u66ff\u6362\u6210\u5b9e\u9645\u7684\u5bc6\u7801\nserver.publicBaseUrl: \"http:\/\/xxx.xxx.xx.xx:5601\" #\u8fd9\u91cc\u66ff\u6362kibana dashboard\u7684ip\u57df\u540d\u548c\u7aef\u53e3\n~                                                 <\/pre>\n\n\n\n<p>\u4fee\u6539\u5b8c\u4fdd\u5b58\u4ee5\u540e\uff0c\u91cd\u542f\u5bb9\u5668\u3002<\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><strong>kibana \u6c49\u5316<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u6309\u7167\u4e0a\u9762\u64cd\u4f5c\u4ee5\u540e\uff0c \u53d1\u73b0kibana dashboard\u662f\u82f1\u6587\u753b\u9762\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u8bbe\u7f6e\uff0c\u6539\u6210\u4e2d\u6587\u3002<\/p>\n\n\n\n<p>kibana 6.7 \u7248\u672c\u4e4b\u540e\uff0c\u5b98\u65b9\u5df2\u7ecf\u652f\u6301\u8bed\u8a00\u9009\u62e9\uff0c\u53ea\u9700\u4fee\u6539kibana.yml\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u53ea\u8981\u5728 config\/ kibana.yml \u6dfb\u52a0 <strong>i18n.locale: &#8220;zh-CN&#8221;<\/strong> \u5373\u53ef<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\n# ** THIS IS AN AUTO-GENERATED FILE **\n#\n\n# Default Kibana configuration for docker target\nserver.host: \"0\"\nserver.shutdownTimeout: \"5s\"\nelasticsearch.hosts: [ \"http:\/\/elasticsearch:9200\" ]\nmonitoring.ui.container.elasticsearch.enabled: true\n\nxpack.security.enabled: true\nelasticsearch.username: \"elastic\"\nelasticsearch.password: \"xxxx\"\nserver.publicBaseUrl: \"http:\/\/xxx.xxx.xxx.xxx:5601\"\ni18n.locale: \"zh-CN\" \n~                                                                                                                                                                                                                                                                         \n~                                                                                                                                                                                                                                                                         \n~                                                                                                                                                                                                                                                                         \n~                             <\/pre>\n\n\n\n<p>\u4fdd\u5b58\u9000\u51fa\uff0c\u91cd\u542f\u5bb9\u5668\uff0c\u91cd\u65b0\u8bbf\u95eedashboard\u9875\u9762\uff0c\u53ef\u4ee5\u53d1\u73b0\u9875\u9762\u53d8\u6210\u4e2d\u6587\u4e86\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-1024x623.png\" alt=\"\" class=\"wp-image-18230\" style=\"width:536px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-1024x623.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-300x183.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-768x467.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-1536x935.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-2048x1247.png 2048w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-830x505.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-230x140.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-350x213.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2025\/07\/image-2-480x292.png 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5elasticsearch Docker \u652f\u6301\u591a\u79cd\u7f51\u7edc\u6a21\u5f0f\uff0c\u9ed8\u8ba4\u4f7f\u7528&nbsp;bridge&nbsp;\u7f51 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/18205"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18205"}],"version-history":[{"count":15,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/18205\/revisions"}],"predecessor-version":[{"id":18231,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/18205\/revisions\/18231"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}