Hi Guys,
I have a log event like the following
2015-01-08T08:56:30.835Z "Name:John"="21","Name:Sam"="29","Name:Jim"="40"
.....(not just three)
How do I extract the Name and the corresponding number and convert it in to a JSON format like the one below.
{John:21,Sam:29,Jim:40}
I can extract the name and the number, but what I'm not sure about is how I can change it to the JSON format above.
NB: I need to assign this json formatted string to a variable using eval.
eval new_var=[search that generate the JSON formatted string]
... View more