阿里云Elasticsearch filebeat.yml 配置文件


filebeat.inputs:


- type: log
#enabled: ture
encoding: GB2312

paths:
#- /var/log/*.log
- D:\logs\*.log

filebeat.config.modules:
path: ${path.config}/modules.d/*.yml


setup.template.settings:
index.number_of_shards: 1

setup.kibana:


host: "https://es-sg-25u1z2ljn000hhwmp.kibana.elasticsearch.aliyuncs.com:5601" #阿里云Kibana 地址

output.elasticsearch:
# Array of hosts to connect to.
username: elastic                            #阿里云Elasticsearch 账号
password: "sM9oRub4M2roadQa"  #阿里云Elasticsearch 密码
hosts: ["http://es-sg-25u1z2ljn000hhwmp.elasticsearch.aliyuncs.com:9200"] #阿里云Elasticsearch 地址
index: 192.168.3.32-%{+yyyy.MM.dd}
setup.template.name: "192.168.3.32"
setup.template.pattern: "192.168.3.32-*"
setup.ilm.enabled: false

processors:
- add_host_metadata:
when.not.contains.tags: forwarded
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~

posted @ 2020-12-25 19:10  戒爱不戒情  阅读(295)  评论(0编辑  收藏  举报