Filebeat 7.9.3 更改索引不起作用,它始终创建默认文件 beat-7.9.3-2020.11.04-000001
Filebeat 7.9.3 change index is not working and it always creates default filebeat-7.9.3-2020.11.04-000001
我试过了
https://www.elastic.co/guide/en/beats/filebeat/master//change-index-name.html#change-index-name 和
https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876
在 windows 环境中使用 filebeat-7.9.3 和 kibana-7.9.2。但是在 Kibana 中它不会创建我在 filebeat.yml
中提到的索引名称
# ============================== 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
我试过了 https://www.elastic.co/guide/en/beats/filebeat/master//change-index-name.html#change-index-name 和 https://discuss.elastic.co/t/index-management-change-index-name-in-filebeat/202876
在 windows 环境中使用 filebeat-7.9.3 和 kibana-7.9.2。但是在 Kibana 中它不会创建我在 filebeat.yml
中提到的索引名称# ============================== 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