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.