Logstash将列表转换为对象

时间:2019-06-22 16:58:19

标签: elasticsearch logstash logstash-grok

如果将以下数据发送到Logstash:

{
"a": 1,
"b": 2,
"c": 3,
"d": {
      ["key": "felan", "value": 123], ["key": "bahman", "value":321]
    }
}

我想将其转换为:

{
"a": 1,
"b": 2,
"c": 3,
"d": {
      "felan": 123, 
      "bahman": 321
    }
}

我应该如何在Logstash中编写过滤器?

0 个答案:

没有答案