Hello,
I have the following input in JSON file:
{"jobs":[
{"name":"Onboarding_Build","builds":[{"duration":127431,"number":2480,"timestamp":1477608643723},{"duration":132275,"number":2479,"timestamp":1477605046524},{"duration":128311,"number":2478,"timestamp":1477603244388},{"duration":131157,"number":2477,"timestamp":1477601742760},{"duration":130942,"number":2476,"timestamp":1477594241970},{"duration":131681,"number":2475,"timestamp":1477592443221},{"duration":130358,"number":2474,"timestamp":1477591845485},{"duration":134905,"number":2473,"timestamp":1477590943481},{"duration":125540,"number":2472,"timestamp":1477583442267},{"duration":126236,"number":2471,"timestamp":1477581042801}]},
{"name":"Onboarding_Deploy_E1DEV4","builds":[{"duration":792391,"number":2255,"timestamp":1477608783769},
....
The actual config create one event in elasticsearch.
I am looking for creating multiple event based on this array:
"builds":[{"duration":792391,"number":2255,"timestamp":1477608783769},
How to split the JSON line in order to have one event per build AND use the timestamp value as the @datetime field ?
Thanks by advance.
BR
Emmanuel