简体   繁体   English

麋鹿堆栈-Windows上的Filebeat问题

[英]Elk-stack- Filebeat issue on windows

I'm having an issue with filebeat on windowsXP. 我在WindowsXP上出现filebeat问题。 There is a csv file that is written (every 10/15 seconds) by an application that collect data measurement. 有一个收集数据测量值的应用程序(每10/15秒)写入一个csv文件。 Filebeat reads this file every time from scratch and it causes duplicated rows. Filebeat每次都会从头开始读取此文件,并且会导致重复的行。 Any advices? 有什么建议吗?

filebeat.prospectors:
- input_type: log
  paths:
    - C:\nms2k\ems\measure\PERF*.csv
  include_lines: ['RTT','RTJ']
  logging.level: debug
  #----------------------------- Logstash output --------------------------------
  output.logstash:
      hosts: ["xxx.xxx.xxx.xxx:1000"]

Here my registry.log: https://pastebin.com/MbPVgH5S 这是我的registry.log: https : //pastebin.com/MbPVgH5S

and here my filebeat.log: https://pastebin.com/A8tqukQT 这是我的filebeat.log: https ://pastebin.com/A8tqukQT

From the registry file it looks like the file ID is changing every time. 从注册表文件来看,文件ID似乎每次都在变化。 I suspect this happens because the application rewrites the whole file, instead of just appending to it. 我怀疑发生这种情况是因为应用程序重写了整个文件,而不仅仅是将其追加到文件中。 If that's the case, then I'm afraid that Filebeat doesn't currently support that, so check if it can be changed on the application side. 如果是这样,那么恐怕Filebeat当前不支持该功能,因此请检查是否可以在应用程序端进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM