企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 安装 ```shell rpm -ihv /tmp/filebeat-5.5.2-x86_64.rpm ``` ### 配置范例 ```yaml filebeat.prospectors: - input_type: log #收集的文件 paths: - /var/log/messages #过滤空行 exclude_lines: ["^DBG","^$"] #document_type: abc fields: type: sys fields_under_root: true exclude_files: [".gz$"] #输出到本地文件 output.file: path: "/tmp/filebeat" filename: filebeat ``` >注意:ducument_type参数已经在5.5版本建议丢弃,6.0中彻底废弃,使用fields代替,通过fields_under_root属性,替换原始type属性 注释 ```shell #定义自定义字段 fields: #字段名称和值 type: ddd #如果自定义字段和原有字段重名,是否覆盖原有字段 fields_under_root: true ``` 启动告警 ```shell WARN DEPRECATED: document_type is deprecated. Use fields instead. ```