File beat 未将数据传输到 logstash

File beat is not transferring data to logstash

Beat 输入未传输到 logstash。我在下面提供了 filebeat 和 logstash 配置文件。

输入Test.cs文件

Date,Open,High,Low,Close,Volume,Adj Close
2015-04-02,125.03,125.56,124.19,125.32,32120700,125.32
2015-04-01,124.82,125.12,123.10,124.25,40359200,124.25

filebeat.yml

filebeat.inputs:
   - type: log
     enabled: true
     paths:
           -C:/ELK Stack/filebeat-8.2.0-windows-x86_64/filebeat-8.2.0-windows-x86_64/Test.csv

output.logstash:
hosts: ["localhost:5044"]

logstash.conf

input {
   beats {
      port => 5044
   }
}
filter {
     csv {
        separator => ","
        columns => ["Date","Open","High","Low","Close","Volume","Adj Close"]
 }
 mutate {convert => ["High", "float"]}
 mutate {convert => ["Open", "float"]}
 mutate {convert => ["Low", "float"]}
 mutate {convert => ["Close", "float"]}
 mutate {convert => ["Volume", "float"]}
}
output {  
    stdout {}
}

请检查 filebeat yml 文件,因为缩进有问题

filebeat documentation

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

你的文件

filebeat.inputs:
   - type: log
     enabled: true
     paths:
           -C:/ELK Stack/filebeat-8.2.0-windows-x86_64/filebeat-8.2.0-windows-x86_64/Test.csv

output.logstash:
hosts: ["localhost:5044"]

和信息log input is deprecated, instead use filesream input