修改 filebeat.yml 文件
追加下面红色部分的语句,索引就修改成 filebeatautotest 开头的了
setup.template.name: "filebeatautotest" setup.template.pattern: "filebeatautotest-*" setup.template.enabled: true setup.template.overwrite: true setup.ilm.enabled: false # ---------------------------- Elasticsearch Output ---------------------------- output.elasticsearch: # Array of hosts to connect to. hosts: ["10.32.7.11:9200"] # Protocol - either `http` (default) or `https`. #protocol: "https" index: "filebeatautotest_log-%{+YYYY-MM-dd}"