logstash-不获取[log][file][path]的值

logstash-不获取[log][file][path]的值,logstash,elastic-beats,Logstash,Elastic Beats,我从logstash中的filebeats接收数据,但没有看到[log][file][path]的值。 我看到其他人在日志数据中得到数据,下面是我收到的。日志路径没有来自beats的数据。提前谢谢你的帮助 { "_index" : "%{merchant_id}", "_type" : "_doc", "_id" : "gpPkankB77M3Al5AC9Cs&q

我从logstash中的filebeats接收数据,但没有看到[log][file][path]的值。 我看到其他人在日志数据中得到数据,下面是我收到的。日志路径没有来自beats的数据。提前谢谢你的帮助

{
    "_index" : "%{merchant_id}",
    "_type" : "_doc",
    "_id" : "gpPkankB77M3Al5AC9Cs",
    "_score" : 1.0,
    "_source" : {
      "host" : {
        "name" : "53f955bf4e04"
      },
      "message" : "request: \nnull",
      "@version" : "1",
      "@timestamp" : "2021-05-08T09:50:26.090Z",
      "level" : "D",
      "stacktrace" : true,
      "ls_pipe" : "droid_log",
      "agent" : {
        "id" : "dffd6c5f-69e9-416c-b08c-f2229e6d477b",
        "name" : "53f955bf4e04",
        "version" : "7.12.1",
        "type" : "filebeat",
        "ephemeral_id" : "6417dd44-79fd-44a9-8798-5ae188f9fe62",
        "hostname" : "53f955bf4e04"
      },
      "device" : {
        "id" : "1850006639",
        "tid" : "3786",
        "pid" : "3732"
      },
      "tags" : [
        "beats_input_codec_plain_applied",
        "_grokparsefailure"
      ],
      "input" : {
        "type" : "log"
      },
      "ecs" : {
        "version" : "1.8.0"
      },
      "logger" : "postiliondriver.parameters.PostilionParamDownloadBase"
    }
  }


您的
文件beat.yml
中有一个
删除字段的处理器,该处理器正在删除
日志
字段

如果删除该字段,则无法在日志存储中使用它,因为它不存在于消息中


drop_fields
处理器中删除
log
字段,然后重试。

共享您的filebeat配置和logstash管道配置,您的管道中似乎有一些错误。非常感谢。将再次更改和测试。您为我节省了很多时间,再次感谢您。