Winlogbeat à kafka à logstash à elasticsearch

 

1. Winlogbeat

 

Winlogbeat 配置:

output.kafka:

 

  # initial brokers for reading cluster metadata

 

  # Place your HELK IP(s) here (keep the port).

 

  # If you only have one Kafka instance (default for HELK) then remove the 2nd IP that has port 9093

 

  hosts: ["<HELK-IP>:9092","<HELK-IP>:9093"]

 

  topic: "winlogbeat"

 

  ############################# HELK Optimizing Latency ######################

 

  max_retries: 2

 

  max_message_bytes: 1000000

 

Winlogbeat 会将采集的数据 写入kafka broker的topic winlogbeat。

 

2. Kafka

 

在docker-compose文件中,会设定需要创建的topic,

HELK ETL

在kafka-create-topics.sh,会根据变量$KAFKA_CREATE_TOPICS创建相应的topic

HELK ETL

也就是说,是kafka先创建topic,然后winlogbeat将消息写入该topic。

 

3. Logstash

 

在pipeline配置文件0002-kafka-input.conf中,

HELK ETL

Logstash从kafka broker中读取topics

["winlogbeat","winevent","SYSMON_JOIN","filebeat"] 中的消息

 

 

相关文章:

  • 2021-07-16
  • 2021-06-25
  • 2021-04-12
  • 2021-04-17
  • 2022-03-05
  • 2021-11-23
  • 2022-01-05
猜你喜欢
  • 2021-10-29
  • 2021-04-25
相关资源
相似解决方案