IBM Support

My systemout.log file shows the wrong date format. I also want to change the language of the log.

Troubleshooting


Problem

I am combining two issues in this one document. Both are related to the Websphere Application Server systemout.log. 
The systemout.log is showing the date in MM/DD/YYYY format like for the US, but should be changed to see the date in DD/MM/YYY format like in the UK. 
The systemout.log is showing the native language, but want to change it to English for support.  

Symptom

The systemout.log and the other logs, such as systemerr.log, trace.log are showing the wrong date format and/or wrong language

Resolving The Problem

The date format can be changed by changing the system's locale to "en_GB.UTF-8".  
However, to change the format for a single  application server set the Generic JVM argument -Duser.country
To set the date format for the UK make the following change from the WAS administration console:
  1. In the administrative console, click Application Servers > server-name
  2. Under Server Infrastructure,   click Java and Process Management > Process Definition.
  3.  Select Java Virtual Machine.
  4. In the Generic JVM arguments field enter -Duser.country=GB
    • If you enter more than one argument, enter a space between each argument.
  5. Click OK. 
  6. Save your changes.
  7. Stop the app server and restart it.
To change the language for a single application server set the Generic JVM argument  -Duser.language
To change the langugae to English make the following changes in the WAS administration console
  1. In the administrative console, click Application Servers > server-name
  2. Under Server Infrastructure,   click Java and Process Management > Process Definition.
  3.  Select Java Virtual Machine.
  4. In the Generic JVM arguments field enter -Duser.language=en
    • If you enter more than one argument, enter a space between each argument.
  5. Click OK. 
  6. Save your changes.
  7. Stop the app server and restart it.
You can make the same changes in the Nodeagent and Deployment Manager using these paths
Deployment manager: System Administration > Deployment manager. Then, in the Server Infrastructure section, click Java and process management > Process definition > Java virtual machine
Node agent: System Administration > Node agent > node_agent. Then, in the Server Infrastructure section, click Java and process management > Process definition > Java virtual machine

Related Information

Document Location

Worldwide

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
12 December 2019

UID

ibm11135546