-
Notifications
You must be signed in to change notification settings - Fork 63
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
Report API ML state to the MF System Programmer #1633
Comments
With reference to an earlier, similar request #373 in this Repo. Other relevant Issues in other repos: |
Since Zowe 2.18 it's possible to achieve this functionality. It's combination of functionality within Zowe Launcher and new message introduced in the API Mediation Layer together with functionality to change the way API Mediation Layer logs the information. The first part is zowe.sysMessages. This is functionality introduced in Zowe 2.12 that allows user to specify messages from the standard output which will be republished to the Syslog (e.g. WTO)
In order to know which message needs to be published we introduced new message that is issued to standard log when the API Mediation Layer is fully started, e.g. the components are aware of each other and are fully functional. The message contains: The current default logging implementation starts with the information about the current time unlike with the message id as is typical in the z/OS world. To change this behavior we introduced the possibility to change the structure of the messages issues by API Mediation Layer in Zowe 2.18. The general details are here: https://docs.zowe.org/stable/user-guide/api-mediation/configuration-logging To get the correct message with the id in the beginning you need to prepare custom logback.xml based on the one in the documentation article. This is an example that duplicates the message id to the beginning of the log message, or if there is no message id provides first eight characters of the message instead.
The last step is to configure API Mediation Layer services to use this customized logback file. If you are looking only for this specific message then it's enough to configure gateway to use this file:
After that you should see the message ZWEAM001I in the Syslog when the API Mediation Layer fully starts and is ready to tackle requests. |
Use Case
As a System Programmer, I want to automate system behavior based on the state of the API Mediation Layer. I want to use WTO to capture the state.
Technical Requirements
Notes
The text was updated successfully, but these errors were encountered: