微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法到达Kibana网站

如何解决无法到达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,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']

我已按照以下指南进行了设置:https://documentation.wazuh.com/3.13/installation-guide/installing-wazuh-manager/linux/ubuntu/wazuh_server_packages_ubuntu.html

卷曲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"
}

解决方法

尝试在 kibana.yml 配置文件中添加server.host: 192.168.1.108

server.host:

此设置指定后端服务器的主机。允许 远程用户进行连接,将值设置为IP地址或DNS名称 Kibana服务器。默认值:“ localhost”

来自here

,

通过在您的 kibana.yml 文件中设置server.host,您可以设置是否可以通过网络看到kibana。如果将其设置为IP或设为0.0.0.0,则可以通过网络而不只是本地进行查看。

,

我认为您应该在#server.port:5601上更改#,并从Firewall检查端口。也许此端口未打开。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。