Make a loop to read values in logstash

Hello,

I have a result like this
' values [
[0] { X = 1
Y = 2
Z = 3
V = 4
}
[1] { X = 5
Y = 6
Z = 7
V= 8
}
'

How can i read this result and put every value in variable (example Var_X = Values[0][0] = 1, Var_Y = Values[0][1] = 2, after that, in the output Block i will inject them in a csv file
Thank you for your help

It is unclear what result you are looking for. You seem to want

"Var_X" => 1
"Var_Y" => 2

and I can infer from that what you want for Var_Z and Var_V, but what do you want for the second hash in the array?

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