Hi, I have string data looks like next.
"detail":"B01=10,B02=10,BANK02=10,BANK01=50,F04=10"
I want parse the value of "detail" field.
First I split with character ","
"detail":["B01=10","B02=10","BANK02=10","BANK01=50","F04=10"]
and for finally I want get field look like next.
"detal_new" : { "B01" : 10, "B02" : 10, "BANK02": 10, "BANK01" : 50, "F04" : 10 }
Now, I need make a loop with "detail" field, and have to split each value with "=".
Then I guess make another object type field with %{value[0]} => %{value[1]}.
I heard that if I want make loop in Logstash, I have to use ruby filter. Unfortunately I'm not familiar with ruby.
Can anyone help me how this can be figured out?
Thank you, for reading and helping me.