1、filebeat windows版

filebeat.inputs:
- type: log
  enabled: true
  paths:
    - C:\logs\*.log
  multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
  multiline.negate: true
  multiline.match: "after"
  tags: ["winlog"]

output.elasticsearch:
  hosts: ["192.168.60.164:9200"]
  indices:
    - index: "winlog-%{+yyyy.MM}"
      when.contains:
        tags: "winlog"

2、windows 开机自启,C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

@echo off

cd "C:\filebeat-7.5.1-windows-x86_64\filebeat-7.5.1-windows-x86_64\"
net start filebeat

@pause

  

相关文章:

  • 2021-07-13
  • 2021-04-20
  • 2022-02-08
  • 2022-01-05
  • 2022-01-09
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2021-09-10
  • 2021-11-08
  • 2022-03-04
相关资源
相似解决方案