网站跳出率怎么计算,北京网站建设公司排名浩森宇特,微信分销系统开发得多少钱,视频制作软件pr默认的filebeat配置会把所有的索引都放到一个文件中#xff0c;通过摸索发现可以自定义索引的名字、模板、生命周期
#xff08;重点注意#xff09;该配置文件只适应于ES版本是8#xff0c;不适应于其他版本
/app/logs/info.log日志文件为JSON格式自定义索引生命周期名为…默认的filebeat配置会把所有的索引都放到一个文件中通过摸索发现可以自定义索引的名字、模板、生命周期
重点注意该配置文件只适应于ES版本是8不适应于其他版本
/app/logs/info.log日志文件为JSON格式自定义索引生命周期名为pn_springboot,可提前建好自定义索引名为idx_springboot自写义索引模板名为tn_springboot
ES8版本默认生成的是数据流不是默认的索引这么配置生成的数据流名称就是idx_springboot不是默认的filebeat了如查索引发现生成长索引名是.ds-idx_springboot-2024.07.21-000001这种格式的但我们配置视图时选idx_springboot就行了
filebeat.inputs:- type: filestreamid: my-filestream-idenabled: truepaths:- /app/logs/info.logparsers:- ndjson:keys_under_root: trueoverwrite_keys: truesetup.template.name: tn_springboot
setup.template.pattern: idx_springboot
setup.template.overwrite: true
setup.template.settings:index.lifecycle.name: pn_springbootindex.number_of_replicas: 0output.elasticsearch:hosts: [http://192.168.21.2:8800]username: elasticpassword: elasticindex: idx_springboot为保护我的个人隐私有的生命周期名、索引名、模板名我做过修改如发现有问题可评论或与我联系