import org.osgi.service.event.Event;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;
import static org.fusesource.insight.log.elasticsearch.ElasticSender.quote;
public class InsightEventHandler implements EventHandler {
<BUG>static final private AtomicLong SEQUENCE_COUNTER = new AtomicLong(System.currentTimeMillis()*1000);</BUG>
private String name;
private String index;
private String type;
private ElasticSender sender;
<BUG>private final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
public String getName() {</BUG>
return name;

import org.osgi.service.event.Event;
import org.osgi.service.event.EventConstants;
import org.osgi.service.event.EventHandler;
import static org.fusesource.insight.log.elasticsearch.ElasticSender.quote;
public class InsightEventHandler implements EventHandler {
private String name;
private String index;
private String type;
private ElasticSender sender;
private final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
private SimpleDateFormat indexFormat = new SimpleDateFormat("yyyy.MM.dd");
public String getName() {
return name;
