Map<String, byte[]> fields = new HashMap<String, byte[]>();
if (service != null)
fields.put("service", service.getBytes());
// Event e = new EventImpl(body.getBytes(), d.getTime(), Priority.INFO,
Event e = new EventImpl(s.getBytes(), d.getTime(), Priority.INFO,
Clock.nanos(), host, fields);
return e;
}