elasticsearch - 无法访问 Kibana 站点
问题描述
所以我正在尝试设置一个 Wazuh 服务器,安装后我收到了消息This site can't be reached
。当我尝试使用这样的端口卷曲 IP 时: curl http://192.168.1.108:5601它没有显示任何内容,甚至没有错误。Kibana 作为服务运行,甚至提供绿色信号和 http 链接以访问面板。
kibana.yml:
# Kibana is served by a back end server. This setting specifies the port to use.
#server.port: 5601
#ops.interval: 5000
# Specifies locale to be used for all localizable strings, dates and number formats.
# Supported languages are the following: English - en , by default , Chinese - zh-CN .
#i18n.locale: "en"
#server.ssl.key: /path/to/your/server.key
# Optional settings that provide the paths to the PEM-format SSL certificate and key files.
# These files are used to verify the identity of Kibana to Elasticsearch and are required when
# xpack.security.http.ssl.client_authentication in Elasticsearch is set to required.
#elasticsearch.ssl.certificate: /path/to/your/client.crt
#elasticsearch.ssl.key: /path/to/your/client.key
# Optional setting that enables you to specify a path to the PEM file for the certificate
# authority for your Elasticsearch instance.
#elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]
# To disregard the validity of SSL certificates, change this setting's value to 'none'.
#elasticsearch.ssl.verificationMode: full
# Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of
# the elasticsearch.requestTimeout setting.
#elasticsearch.pingTimeout: 1500
# Time in milliseconds to wait for responses from the back end or Elasticsearch. This value
# must be a positive integer.
#elasticsearch.requestTimeout: 30000
# List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side
# headers, set this value to [] (an empty list).
#elasticsearch.requestHeadersWhitelist: [ authorization ]
# Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
# by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration.
#elasticsearch.customHeaders: {}
# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
#elasticsearch.shardTimeout: 30000
# Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying.
#elasticsearch.startupTimeout: 5000
# Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
#elasticsearch.logQueries: false
# Specifies the path where Kibana creates the process ID file.
#pid.file: /var/run/kibana.pid
# Enables you to specify a file where Kibana stores log output.
#logging.dest: stdout
# Set the value of this setting to true to suppress all logging output.
#logging.silent: false
# Set the value of this setting to true to suppress all logging output other than error messages.
#logging.quiet: false
# Set the value of this setting to true to log all events, including system usage information
# and all requests.
logging.verbose: true
# Set the interval in milliseconds to sample system and process performance
# metrics. Minimum is 100ms. Defaults to 5000.
#ops.interval: 5000
# Specifies locale to be used for all localizable strings, dates and number formats.
# Supported languages are the following: English - en , by default , Chinese - zh-CN .
#i18n.locale: "en"
更改了参数 elasticsearch.yml
cluster.name: my-application
cluster.initial_master_nodes: ["node-1"]
node.name: node-1
更改参数 filebeat.yml
output.elasticsearch.hosts: ['http://192.168.1.108:9200']
卷曲http://192.168.1.108:9200给出以下内容:
{
"name" : "node-1",
"cluster_name" : "my-application",
"cluster_uuid" : "VbrZJIilQgSDPZSdvKKSjA",
"version" : {
"number" : "7.9.2",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
"build_date" : "2020-09-23T00:45:33.626720Z",
"build_snapshot" : false,
"lucene_version" : "8.6.2",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
解决方案
通过server.host
在您的kibana.yml文件中进行设置,您将能够设置 kibana 是否可以通过网络查看。如果您将此设置为您的 IP,或者0.0.0.0
您可以通过网络看到它,而不仅仅是从本地看到。
推荐阅读
- mysql - mySQL中的简单乘积计算
- c# - 将字符串中出现的枚举值替换为枚举值的索引以进行字符串比较
- r - 在 R 中使用带有分组条形图和 facet_wrap 的 ggsignif 时如何定义数据
- typescript - 即使使用 AdministratorAccess 运行 CDK,S3 访问也被拒绝
- c# - 如何在 C# 中将文本文件中的单词添加到数组列表中
- javascript - 在 React JS 状态下更新输入字段值
- sql - 如何以正确的方式使用模型 - 用 typescript 续集
- javascript - 将搜索结果传递给反应中的另一个页面/组件
- reactjs - 尝试设置坐标时设置状态无法正常工作
- unity3d - Physics.OverlapBox 的错误使用