Timezone of "oc logs --timestamp"
Issue
- According to KCS article, when set
env TZ=Asia/Tokyo, the timestamp in the log seems to follow the timezone.
However, when I executedoc logscommand with--timestampsoption, the timestamp seems not to follow the timezone as follows.
2018-09-13T07:32:20.337625000Z 16:32:20,335 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0021: Registered web context: '/auth' for server 'default-server'
2018-09-13T07:32:20.378337000Z 16:32:20,370 INFO [org.jboss.as.server] (ServerService Thread Pool -- 51) WFLYSRV0010: Deployed "keycloak-server.war" (runtime-name : "keycloak-server.war")
2018-09-13T07:32:20.441106000Z 16:32:20,439 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2018-09-13T07:32:20.466762000Z 16:32:20,450 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
2018-09-13T07:32:20.467104000Z 16:32:20,450 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0054: Admin console is not enabled
2018-09-13T07:32:20.467392000Z 16:32:20,450 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Red Hat Single Sign-On 7.2.1.GA (WildFly Core 3.0.12.Final-redhat-1) started in 20373ms - Started 660 of 1059 services (759 services are lazy, passive or on-demand)
Is this a specification?
If so, is it possible to change the timezone of the log which is output with --timestamps option?
Environment
- OpenShift Container Platform 3.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
