Ⅰ: Kibana介绍

Kibana 是一款开源的数据分析和可视化平台,它是 Elastic Stack 成员之一,设计用于和 Elasticsearch 协作。
您、可以使用 Kibana 对 Elasticsearch 索引中的数据进行搜索、查看、交互操作。
可以很方便的利用图表、表格及地图对数据进行多元化的分析和呈现
详情可见用户手册:
https://www.elastic.co/guide/cn/kibana/current/index.html
注意跟Elasticsearch版本兼容情况,详情见:
https://www.elastic.co/cn/support/matrix#matrix_compatibility
下载地址为:
https://www.elastic.co/cn/downloads/past-releases

Ⅱ: 下载Kibana

到相应地址,下载即可
解压下载后的文件

Ⅲ: 修改配置文件

修改配置文件:vim 安装目录/config/kibana.yml

# 更多配置信息,详见 https://www.elastic.co/guide/cn/kibana/current/settings.html
server.port: 5601
server.host: 0.0.0.0
server.name: Cat
elasticsearch.hosts: ['https://192.168.10.142:9200']

Ⅳ: 启动

到安装目录下:

./bin/kibana
#正常启动

Ⅵ: 查看

在浏览器里访问:http://localhost:5601/app/kibana
(如访问不到,尝试删除es中跟kibana相关的索引)
选择Dev Tools
在console中输入GET _settings ,查询可以看到如下

GET _settings

--
{
  "honglvliyu": {
    "settings": {
      "index": {
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "number_of_shards": "5",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": "honglvliyu",
        "creation_date": "1700206346503",
        "number_of_replicas": "2",
        "uuid": "54QlZLFoRUmelv82cdIxWQ",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-observability.logs.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-observability.logs.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-observability.logs.alerts-default-000001",
        "creation_date": "1700132720205",
        "number_of_replicas": "0",
        "uuid": "C5ctSCFMSmaozJdJIKn8ow",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-observability.uptime.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-observability.uptime.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-observability.uptime.alerts-default-000001",
        "creation_date": "1700132719990",
        "number_of_replicas": "0",
        "uuid": "daeKm0LoRcOHX5GNZyCDtQ",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-ml.anomaly-detection.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-ml.anomaly-detection.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-ml.anomaly-detection.alerts-default-000001",
        "creation_date": "1700132720495",
        "number_of_replicas": "0",
        "uuid": "yP9RY_d4QEGA_UIB1Vqdew",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-observability.slo.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-observability.slo.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-observability.slo.alerts-default-000001",
        "creation_date": "1700132719911",
        "number_of_replicas": "0",
        "uuid": "NBGBp1YpS_CnYj5jbXEqAg",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-observability.apm.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-observability.apm.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-observability.apm.alerts-default-000001",
        "creation_date": "1700132719945",
        "number_of_replicas": "0",
        "uuid": "7iu4BJ4TSLa4gr0So6LBfw",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-observability.metrics.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-observability.metrics.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-observability.metrics.alerts-default-000001",
        "creation_date": "1700132720523",
        "number_of_replicas": "0",
        "uuid": "GQhPuWdvQfyKxLuLYPdGaA",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".kibana-observability-ai-assistant-conversations-000001": {
    "settings": {
      "index": {
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "10000"
          }
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".kibana-observability-ai-assistant-conversations-000001",
        "creation_date": "1700132712554",
        "number_of_replicas": "0",
        "uuid": "vyhnjgZlRESmnbcT4eiHYQ",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  "cat": {
    "settings": {
      "index": {
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "number_of_shards": "5",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": "cat",
        "creation_date": "1700206616250",
        "number_of_replicas": "1",
        "uuid": "tU6Ph0pwRUSppmmdEP7KNw",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-observability.threshold.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-observability.threshold.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-observability.threshold.alerts-default-000001",
        "creation_date": "1700132720097",
        "number_of_replicas": "0",
        "uuid": "w_dfcAsfRO2ps1YFs4SB-g",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".kibana-observability-ai-assistant-kb-000001": {
    "settings": {
      "index": {
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "10000"
          }
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".kibana-observability-ai-assistant-kb-000001",
        "creation_date": "1700132721364",
        "number_of_replicas": "0",
        "uuid": "mIW_X8lNSLiCOYDD7wfgDQ",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-security.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-security.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-security.alerts-default-000001",
        "creation_date": "1700132720321",
        "number_of_replicas": "0",
        "uuid": "TO3Wo_yJQqC_XZ1JLtVUIw",
        "version": {
          "created": "8500003"
        }
      }
    }
  },
  ".internal.alerts-stack.alerts-default-000001": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": ".alerts-ilm-policy",
          "rollover_alias": ".alerts-stack.alerts-default"
        },
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "mapping": {
          "total_fields": {
            "limit": "2500"
          },
          "ignore_malformed": "true"
        },
        "hidden": "true",
        "number_of_shards": "1",
        "auto_expand_replicas": "0-1",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "provided_name": ".internal.alerts-stack.alerts-default-000001",
        "creation_date": "1700132720413",
        "number_of_replicas": "0",
        "uuid": "K2QeUZ1-TxClaqiBBYDKgQ",
        "version": {
          "created": "8500003"
        }
      }
    }
  }
}
End
文章作者:
文章地址:http://honglvliyu.cn/index.php/archives/149/
文章标题:ElasticSearch-Kibana
文章版权:本文由Beyond the game独立整理撰写,转载请保留文章出处。
Last modification:November 17th, 2023 at 05:45 pm
咋滴 看了不给钱呀
广而告知