filebeat收集日志配置

文章目录

  • 收集log日志

收集log日志

filebeat.prospectors:
- type: log
  paths:
    - /home/logs/apps/tcpservice-catalina.out
  fields_under_root: true
  ignore_older: 24h
  close_inactive: 5m
  scan_frequency: 1s
  clean_inactive: 72h
  tags: ["actcpservice"]
- type: log
  paths:
    - /home/logs/apps/webservice-catalina.out
  fields_under_root: true
  ignore_older: 24h
  close_inactive: 5m
  scan_frequency: 1s
  clean_inactive: 72h
  tags: ["acwebservice"]
setup.template.settings:
  index.number_of_shards: 5
output.elasticsearch:
  hosts: ["http://10.1.xx.xx:9200"]
  index: "ac-%{+yyyy.MM.dd}"
setup.template:
  name: 'ac'
  pattern: 'ac-*'
  enabled: false
path:
  data: /usr/local/filebeat-5.3.3/data
  logs: /var/log/beats

你可能感兴趣的:(#,filebeat)