Split a field value and add extracted values in other fields


#1

Hi at all!

I have a field
"message" => "A306, S1, 6742, prof1, 135.89, 13.89, 45.90,1,1"

I want split its value with separator "," and add fields

"id_product" => "A306"
"id_model" => "S1"
"serial" => "6742"
"profile" => "prof1",
"pressure" => "135.89"
"temperature" => "13.89"
"laps" => "45.90"
"status_a" => "1"
"status_b" => "1"

How can I do this?

Thank you very much!


(Magnus B├Ąck) #2

Use the csv filter.


#3

Thank you very much magnusbaeck!
I've resolved using grok filter.


(system) #4