You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2016/12/30 18:08:58 UTC

[jira] [Commented] (LOG4J2-1752) Add ISO8601 format to timestamp in JSONLayout

    [ https://issues.apache.org/jira/browse/LOG4J2-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15788093#comment-15788093 ] 

Mikael Ståldal commented on LOG4J2-1752:
----------------------------------------

Are you using Logstash? If so, have you tried [GelfLayout|http://logging.apache.org/log4j/2.x/manual/layouts.html#GELFLayout] and [Logstash's GELF input|https://www.elastic.co/guide/en/logstash/current/plugins-inputs-gelf.html]?

> Add ISO8601 format to timestamp in JSONLayout
> ---------------------------------------------
>
>                 Key: LOG4J2-1752
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1752
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Layouts
>    Affects Versions: 2.7
>            Reporter: Jonas Lindholm
>            Priority: Minor
>              Labels: json, layout
>
> The [JSONLayout|https://logging.apache.org/log4j/2.x/manual/layouts.html#JSONLayout] formats the timestamp field to timeMillis.
> Moving from [logstash-logback-encoder|https://github.com/logstash/logstash-logback-encoder] it would be nice to be able to format the timestamp with ISO 8601 as the date pattern instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org