Logstash 为什么Kibana无法创建索引模式?(厄尔布克)

Logstash 为什么Kibana无法创建索引模式?(厄尔布克),logstash,kibana,elastic-stack,filebeat,Logstash,Kibana,Elastic Stack,Filebeat,我正在尝试将filebeats设置为从我们的spring应用程序登录到logstash。。我找到了一个很好的教程,它正好包含了我需要在本地测试的内容 但是当我去创建一个索引模式时,我得到一条消息说- 找不到任何Elasticsearch数据 在创建索引模式之前,需要将一些数据索引到Elasticsearch中 这是我的日志存储配置文件 # Sample Logstash configuration for creating a simple # Beats -> Logstash -&g

我正在尝试将filebeats设置为从我们的spring应用程序登录到logstash。。我找到了一个很好的教程,它正好包含了我需要在本地测试的内容

但是当我去创建一个索引模式时,我得到一条消息说-

找不到任何Elasticsearch数据 在创建索引模式之前,需要将一些数据索引到Elasticsearch中

这是我的日志存储配置文件

# Sample Logstash configuration for creating a simple
# Beats -> Logstash -> Elasticsearch pipeline.

input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => ["http://localhost:9200"]
    index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
    #user => "elastic"
    #password => "changeme"
  }
}
filebeats.yml文件

#=========================== Filebeat inputs =============================
filebeat.inputs:

- type: log

  # Change to true to enable this input configuration.
  enabled: false

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /opt/test.log

#============================= Filebeat modules ===============================

filebeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: false

#==================== Elasticsearch template setting ==========================

setup.template.settings:
  index.number_of_shards: 3

#============================== Kibana =====================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9200"]

#----------------------------- Logstash output --------------------------------
#output.logstash:
  # The Logstash hosts
  hosts: ["localhost:5044"]

#================================ Processors =====================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

日志存储是否设置为与ES服务器通信?在chrome中下载弹性搜索头插件,检查索引是否在ES服务器中创建。Kibana只有在ES中有索引时才能发现该索引。这是插件。它基本上使用弹性搜索服务器Api,这意味着kibana正在使用ES url,但您的日志存储没有与ES服务器通信。您必须配置该部分。之后,您将能够在ES头中看到索引。完成后,您必须在kibanaYes中添加索引,类似于
hosts=>[“localhost:9200”]
其中localhost可以是es服务器的api/url/ip。你能用logstash配置文件和弹性搜索api编辑你的帖子吗?让我们看看。logstash是否设置为与ES服务器通信?在chrome中下载弹性搜索头插件,检查索引是否在ES服务器中创建。Kibana只有在ES中有索引时才能发现该索引。这是插件。它基本上使用弹性搜索服务器Api,这意味着kibana正在使用ES url,但您的日志存储没有与ES服务器通信。您必须配置该部分。之后,您将能够在ES头中看到索引。完成后,您必须在kibanaYes中添加索引,类似于
hosts=>[“localhost:9200”]
其中localhost可以是es服务器的api/url/ip。你能用logstash配置文件和弹性搜索api编辑你的帖子吗。