Vincent Couturier
Vincent Couturier

Reputation: 526

How to format date as real UTC or Unix style in logback logstash encoder?

The timestamp provided by logstash encoder in logback is not in real UTC format even if I specify UTC timezone (instead of Z there's +00:00 at the end of the timestamp)

Upvotes: 1

Views: 1543

Answers (1)

Vincent Couturier
Vincent Couturier

Reputation: 526

I found that logstash composite encoder is a solution with timestamp provider containing timeZone as UTC and dateFormat as yyyyMMdd'T'hh:mm:ss.SSS'Z'

Upvotes: 2

Related Questions