How to create array of values in the event record with FluentD?
I have parsed latitude and longitude from the log. How to transform these values to an array ?
Ex. I have a log like
2014-9-23T09:27:28.345 1411464370345 -37.0081,174.792 BBC SEARCH be03debe-b0af-4939-9abc-7c0ad25bb114 DEPARTURE 16 576.00 ROLLBACK
I have parsed latitude=-37.0081 and longitude =174.792. How to form a JSON object like this ?
{location:[-37.0081,174.792]}
And how to parse the string value to data types in the event record ? Like integer /float / double