debian

Debian上Filebeat配置文件详解

小樊
92
2025-02-14 20:41:01
栏目: 智能运维

在Debian上配置Filebeat主要涉及编辑/etc/filebeat/filebeat.yml文件。以下是一个基本的配置文件示例及其详解:

filebeat.inputs:
- type: log
  paths:
    - /var/log/*.log
  exclude_files: ['*.gz']
  fields:
    app_id: my_app
  fields_under_root: true

output.elasticsearch:
  hosts: ["localhost:9200"]
  index: "filebeat-%{+YYYY.MM.dd}"
  document_type: my_custom_type

配置详解

其他重要配置项

以上就是Debian上Filebeat配置文件的基本详解,根据实际需求,您可能还需要进行更多的配置。

0
看了该问题的人还看了