diff --git a/src/main/java/com/teragrep/aer_02/EventDataConsumer.java b/src/main/java/com/teragrep/aer_02/EventDataConsumer.java index d23ec62..4c6cafb 100644 --- a/src/main/java/com/teragrep/aer_02/EventDataConsumer.java +++ b/src/main/java/com/teragrep/aer_02/EventDataConsumer.java @@ -139,7 +139,7 @@ public Long getValue() { SyslogMessage syslogMessage = new SyslogMessage() .withSeverity(Severity.INFORMATIONAL) .withFacility(Facility.LOCAL0) - .withTimestamp(enqueuedTime == null ? Instant.now() : enqueuedTime.toInstant()) + .withTimestamp(enqueuedTime == null ? Instant.now().toEpochMilli() : enqueuedTime.toInstant().toEpochMilli()) .withHostname(syslogConfig.hostName()) .withAppName(syslogConfig.appName()) .withSDElement(sdId)