看,灰机...

filebeat收集日志不完整

Beats | 作者 wangcheng_ding | 发布于2020年12月20日 | 阅读数:2464

日志:

日志.jpg

异常:

异常.jpg

多行合并:
  ### Multiline options

  # Mutiline can be used for log messages spanning multiple lines. This is common
  # for Java Stack Traces or C-Line Continuation

  # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  multiline.pattern: '^[[:space:]]'

  # Defines if the pattern set under pattern should be negated or not. Default is false.
  multiline.negate: false

  # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  multiline.match: after
日志和filebeat同时运行时,收集到的就会出现以上异常。停用filebeat时,日志文件增加后,再收集增加的量时,收集解析正常。采用filebeat6.0.0 Windows版本,收集Windows xp/Winodws 2003任务计划日志
已邀请:

要回复问题请先登录注册