-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liberty log is not in JSON format #520
Comments
I would recommend to use JSON logging in all cloud guides as all cloud service should have some sort of log aggregation feature such as LogDNA, EFK, etc. For guides that run on local docker, you can leave it as plain text logging as it may be easier to read. |
Thank you @fmhwong |
Need to consider the following guides
|
Based on https://openliberty.io/docs/latest/log-trace-configuration.html#_json_logging, add following to the server.xml |
I think the best practice is to set the environment variables for containers so that you don't need to rebuild the image if you want to change it in the future. |
@fmhwong It means better to do it through yaml |
We can further break this down into one issue for each cloud guide that needs to be updated. |
It is recommended to use JSON format for Liberty log when running in containers so that the log entries can be aggregated and analyzed by EFK.
The text was updated successfully, but these errors were encountered: