writer.append(" }");
writer.append("\n}");
<BUG>String index = this.index + "-"+ new SimpleDateFormat("yyyy.MM.dd").format(new Date(paxLoggingEvent.getTimeStamp()));</BUG>
IndexRequest request = new IndexRequest()
<BUG>.index(index)
.type(type)</BUG>
.source(writer.toString())
.create(true);
sender.put(request);
} catch (Exception e) {

writer.append(" }");
writer.append("\n}");
IndexRequest request = new IndexRequest()
.index(getIndex(paxLoggingEvent.getTimeStamp()))
.type(type)
.source(writer.toString())
.create(true);
sender.put(request);
} catch (Exception e) {
