Refactor log upload to create JSON via obs_data