View the
Maximo® Manage logs for Server or System.Out,
MAXINST, Update database, User sync, Workspace operator, and Build from the Red Hat® OpenShift® console.
Procedure
- Log into the Red Hat OpenShift console.
- From the side navigation menu, click
menu.
- Select your
Maximo Manage project name from the
Project drop down.
- Select the pod from the list for which you want to view logs.
- Click the Logs tab to view the streaming log for that
pod.
- To push the server logs to any S3 compatible object storage:
- Set up S3 credentials, by creating the following four environment variables in your
Maximo Manage deployment, LOG_BUCKETNAME,
LOG_S3ACCESSKEY, and LOG_S3ENDPOINTURL, and
LOG_S3SECRETKEY.
- Create a log request, that is a POST request by using any HTTP REST Client, for
example, download and use the Postman tool to create the log request.
Request URL:
http://manageserver:7001/maximo/oslc/service/logging?action=wsmethd:submitUploadRequest
Note: Replace the
Maximo Manage server in the URL with your
Maximo Manage server host or IP address. A record for
Maximo Manage is created in the LOGREQUESTDET table. The
Maximo Manage records are removed by the LOGREQUESTCLEANUP cron task
after the logs are posted to the object storage. The cron task must be activated manually, and then
it runs once daily,
- Use the S3 browser to view the logs by using your S3 credentials.
Each
Maximo Manage server handles the latest log request. It
compresses the log files in the log directory and uploads it to cloud object
storage.
What to do next
You can install Red Hat OpenShift logging by deploying Red Hat OpenShift Elasticsearch and Red Hat OpenShift logging
operators. For more information, see Installing Logging.