Logstash convert data from array list to objects

I send following data to Logstash:

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

I want to convert it to:

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

How should I write the filter in Logstash?

You will need something like this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.