Hi Guys
I have the following input as example:
generator { count => 1 lines => [ '{ "RATING_GROUP": "7,843,13", "CONSUMO": "328994,29715,13948" }' ] codec => json }
Which filter can I use in Logstash to obtain a output like this one bellow ?
{
"rating_group_consumo" : [
{
"rating_group" : "7",
"consumo" : "328994"
},
{
"rating_group" : "843",
"consumo" : "29715"
},
{
"rating_group" : "13",
"consumo" : "13948"
}
]
}