Skip to content

Commit

Permalink
Use millis
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Pascual committed Oct 4, 2018
1 parent c3db59c commit 1615ac5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public LoggingEvent call() {
}

private String getIndexPattern(LoggingEvent event) {
return String.format("%s-%s", getElasticIndex(), formatter.format(Date.from(Instant.ofEpochSecond(event.getTimeStamp()))));
return String.format("%s-%s", getElasticIndex(), formatter.format(Date.from(Instant.ofEpochMilli(event.getTimeStamp()))));
}
}
}

0 comments on commit 1615ac5

Please sign in to comment.