Split single object in array to multiple?

I'm using logstash to index data from mysql to elasticsearch.
Is there a way to convert this output:
"interests" : [
{
"interest_id" : "1,2",
"interest_name" : "Business,Farming"
}
]

To this:
"interests" : [
{
"interest_id" : "1",
"interest_name" : "Business"
},
"interest_id" : "2",
"interest_name" : ",Farming"
]

from filter section in logstash.
Please help i'm trying to do this since couple of days i tried using split filter but it didn't work.

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