elasticsearch Filebeat 7.9.3更改索引不起作用,它总是创建默认Filebeat-7.9.3-2020.11.04-000001,elasticsearch,kibana,filebeat,elasticsearch,Kibana,Filebeat" /> elasticsearch Filebeat 7.9.3更改索引不起作用,它总是创建默认Filebeat-7.9.3-2020.11.04-000001,elasticsearch,kibana,filebeat,elasticsearch,Kibana,Filebeat" />

elasticsearch Filebeat 7.9.3更改索引不起作用,它总是创建默认Filebeat-7.9.3-2020.11.04-000001

elasticsearch Filebeat 7.9.3更改索引不起作用,它总是创建默认Filebeat-7.9.3-2020.11.04-000001,elasticsearch,kibana,filebeat,elasticsearch,Kibana,Filebeat,我试过这个 和 在windows环境中使用filebeat-7.9.3和kibana-7.9.2。但是在kibana中,它没有创建我在filebeat.yml中提到的indexname # ============================== Filebeat inputs =============================== filebeat.inputs: - type: log - C:\FREESOFT\myfilebeatlogs\* # ======

我试过这个 和

在windows环境中使用filebeat-7.9.3和kibana-7.9.2。但是在kibana中,它没有创建我在filebeat.yml中提到的indexname

# ============================== Filebeat inputs ===============================

filebeat.inputs:
- type: log
    - C:\FREESOFT\myfilebeatlogs\*


# ============================== 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: 1
  #index.codec: best_compression
  #_source.enabled: false

# ================================== Outputs ===================================

# Configure what output to use when sending the data collected by the beat.

# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9200"]
index: "customindexname-%{+yyyy.MM.dd}"
我也试过了

index: "myindexname-%{+yyyy.MM.dd}"
setup.template.enabled: false
setup.template.name: "myindexname"
setup.template.pattern: "myindexname-*"

请帮助我,我想创建一个自定义索引并从Filebeat向其中插入数据。堆栈中过去的问题并没有解决我的问题。

下面的配置适合我,并创建我想要的索引名

filebeat.inputs:
  - type: log
    paths:
      - "/var/log/*.log"
setup.ilm.enabled: false
setup.template.overwrite: true
output.elasticsearch:
  hosts: ["<my-es-host>"]
  index: "foo-%{+yyyy.MM}"
  username: '${ELASTICSEARCH_USERNAME:elastic}'
  password: '${ELASTICSEARCH_PASSWORD:elastic}'

setup.template:
  name: 'foo'
  pattern: 'foo-*'
  enabled: false
filebeat.inputs:
-类型:原木
路径:
-“/var/log/*.log”
setup.ilm.enabled:false
setup.template.overwrite:true
output.elasticsearch:
主机:[“”]
索引:“foo-%{+yyyy.MM}”
用户名:“${ELASTICSEARCH_用户名:elastic}”
密码:“${ELASTICSEARCH_密码:elastic}”
setup.template:
姓名:“富”
模式:“foo-*”
已启用:false

下面的配置适用于我,并创建我想要的索引名

filebeat.inputs:
  - type: log
    paths:
      - "/var/log/*.log"
setup.ilm.enabled: false
setup.template.overwrite: true
output.elasticsearch:
  hosts: ["<my-es-host>"]
  index: "foo-%{+yyyy.MM}"
  username: '${ELASTICSEARCH_USERNAME:elastic}'
  password: '${ELASTICSEARCH_PASSWORD:elastic}'

setup.template:
  name: 'foo'
  pattern: 'foo-*'
  enabled: false
filebeat.inputs:
-类型:原木
路径:
-“/var/log/*.log”
setup.ilm.enabled:false
setup.template.overwrite:true
output.elasticsearch:
主机:[“”]
索引:“foo-%{+yyyy.MM}”
用户名:“${ELASTICSEARCH_用户名:elastic}”
密码:“${ELASTICSEARCH_密码:elastic}”
setup.template:
姓名:“富”
模式:“foo-*”
已启用:false

非常感谢,它成功了,我不得不将“因为”改为“没有找到预期的钥匙”,这在@SameeraDeSilva中提到,很高兴它成功了,我也很有帮助:)非常感谢!@MaratGainutdinov您的欢迎:)非常感谢,它成功了,我不得不将“改为”因为@SameeraDeSilva中提到的“未找到预期的钥匙”,我很高兴它起了作用,并且我很有帮助:)非常感谢@MaratGainutdinov欢迎您:)