so3500 / TIL

0 stars 0 forks source link

2024-01-16 #8

Open so3500 opened 5 months ago

so3500 commented 5 months ago

Filebeat

so3500 commented 5 months ago

[ configura the kafka output ]

https://www.elastic.co/guide/en/beats/filebeat/7.17/kafka-output.html

hosts

[ Configure > Inputs > Log ]

https://www.elastic.co/guide/en/beats/filebeat/7.17/filebeat-input-log.html

The log input is deprecated. Please use the filestream input for sending log files to ouptut

Use the log input to read lines from log files. To configuration this input, specify a list of glob-based paths that must be crawled to locate and fetch the log lines.

example configuration:

filebeat.inputs:
- type: log
  paths:
    - /var/log/messages
    - /var/log/*.log

you can apply additional configuraton settings (such as fileds, include_lines, exclude_lines, multiline, ...)

configurations

tail_files