<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 一、概述 Kibana 是一個免費且開放的用戶界面,能夠讓您對 Elasticsearch 數據進行可視化,并讓您在 Elastic Stack 中進行導航。您可以進行各種操作,從跟蹤查詢負載,到理解請求如何流經您的整個應用,都能輕松完成; ## 二、安裝 下載: ``` wget https://artifacts.elastic.co/downloads/kibana/kibana-7.15.1-linux-x86_64.tar.gz ``` 解壓: ``` tar -zxvf kibana-7.15.1-linux-x86_64.tar.gz mv kibana-7.15.1-linux-x86_64 kibana cd kibana ``` ## 三、配置 進入config目錄; 修改kibana端口號,host和連接es的配置信息; ``` cd config vi kibana.yml ``` ``` server.port: 5601 server.host:your ip elasticsearch.hosts: ["http://es ip:9200"] elasticsearch.username: "kibana" elasticsearch.username: "在ElasticSearch配置密碼的時候,設置的kibana密碼" ``` >[danger]注意,這里主機地址,不能是回環地址,需要配置非回環inet地址; ## 四、運行 啟動: 切換到es賬戶: >[danger] 需要將kibana目錄授權給es用戶; ``` cd .. chown -R es:es kibana ``` ``` su -es ``` ``` cd kibana nohup ./bin/kibana & ``` 停止: ``` ps -ef|grep kibana ``` 然后殺死進程即可; ## 五、訪問 訪問: ``` http://ip:5601 ``` >[danger] 如果前面配置了密碼驗證,這里就要輸入賬戶密碼了,賬戶固定為kibana,密碼為之前設置的密碼; > ![](https://img.kancloud.cn/60/d0/60d000f8e6662781a2966e73de04b4b7_1920x1039.png) ![](https://img.kancloud.cn/a5/63/a563991098e1b454aa1bd37f0bdb2900_1920x1039.png) 輸入之前設定的密碼,賬戶固定為elastic; ![](https://img.kancloud.cn/ad/6f/ad6fb9fe6c0385bc4791f6a5c69b4301_1920x942.png) ![](https://img.kancloud.cn/63/33/6333865bf4c1932f8583a86990a2d496_1920x1039.png) 這類可以看到剛才命令增加的index了; ![](https://img.kancloud.cn/55/67/5567b4f8fe26053cc89aa9e45f54b547_1920x942.png) ## 六、管理功能 ### **索引統計** 進入管理Management欄目; ![](https://img.kancloud.cn/fe/87/fe876b48341f1e5af80479e7d45671c1_1920x942.png) 進入Stack Management模塊; ![](https://img.kancloud.cn/ac/82/ac82828622e7809c29bde996dde8fa2e_1920x942.png) 點擊Data欄目; 索引管理模塊,就能看到索引的情況了 ![](https://img.kancloud.cn/f4/50/f4501558ac93ed1aef7d83c635ce13a7_1920x942.png) ### **索引數據** 第一次訪問的時候,你會被要求定義一個index pattern用來匹配一個或多個索引; 如何創建index pattern呢? 進入Management-->Stack Management-->Kibana--># Index patterns; ![](https://img.kancloud.cn/b2/bb/b2bb1227c88817218b372f7779392ac6_1920x942.png) ![](https://img.kancloud.cn/b9/23/b923ff0bc4bb0c49c36eb286be99037b_1920x942.png) ![](https://img.kancloud.cn/f7/b3/f7b31b22903ee7ea7a2047aa4e9e483f_1920x942.png) 默認情況下,Kibana認為你要訪問的是通過Logstash導入ElasticSearch的數據。這時候你可以用默認的logs-\*作為你的index pattern。通配符(\*)匹配索引名中零到多個字符; ![](https://img.kancloud.cn/ca/3d/ca3d18ea0c7525bc8e1570b3ee2f0ef3_1920x942.png) 新增一個過濾器index pattern,選擇索引,即可查看索引下所有的數據; ![](https://img.kancloud.cn/3f/5b/3f5b094f722c5e4fdf708156010a2cb1_1920x984.png) ![](https://img.kancloud.cn/d1/2f/d12f167443ff648656fe70d747377be1_1920x942.png) ![](https://img.kancloud.cn/39/f2/39f2ca7625ce3a06b728c925274b7b7e_1920x926.png) ![](https://img.kancloud.cn/f9/88/f988aeafac0daaa16c8b0b9315e2cabd_1920x942.png) ## 七、開發工具 Kibana提供了開發輔助工具,以分詞解析為例; 點擊DevTools標簽,進入開發工具,在console中,輸入命令,即可執行,非常方便; ### **分詞執行** ``` GET _analyze { "analyzer": "ik_smart", "text":"黑龍江省雙鴨山市中國移動" } ``` ![](https://img.kancloud.cn/95/24/95248dcef4ea16d9c6ca15158c7c4cb1_1920x942.png) ### **搜索命令** ``` GET _search { "query" : { "term" : { "area": "黑龍江省雙鴨山市中國移動" } } } ``` ![](https://img.kancloud.cn/d8/51/d85175a37914fb6df64f0a2ffef8acc1_1920x942.png) ### **查看字段的分詞效果** ``` POST /rayphonenumber/_analyze { "field": "area", "text": "黑龍江省雙鴨山市中國移動" } ``` ![](https://img.kancloud.cn/2e/dd/2eddd11cdfcac2f1c95ddb2e03197112_1920x942.png) ### **查看索引定義** ``` GET /rayphonenumber/_mapping?pretty ``` ![](https://img.kancloud.cn/97/aa/97aa92e4191152c68e4e790417eaeae0_1920x942.png) ### **刪除索引定義** ``` DELETE /rayphonenumber ``` ![](https://img.kancloud.cn/ba/d8/bad88b834a12de48aa89f65e38464f9b_1920x942.png) ### **其他** 凡此種種,都可以通過這個命令行來執行,還提供了代碼提示,非常方便,有沒有?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看