Skip to content
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

Duplicate log messages into syslog according to zowe.sysMessages #3553

Merged
merged 7 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to the Zowe Installer will be documented in this file.

## `2.11.0`

### New features and enhancements
- Enhancement: Duplicate log messages into syslog according to "zowe.sysMessages" array [#93](https://github.com/zowe/launcher/pull/93)

### Minor enhancements/defect fixes
- Bugfix: Fixed that Zowe would allow newer Java versions to generate PKCS12 keystores that was not compatible with some components. Newer versions of Java by default create PKCS12 keystores that aren't compatible with GSK / SystemSSL which components such as ZSS use, but include flags to restore a compatibility mode, which Zowe now uses. (#3507)

Expand Down
28 changes: 28 additions & 0 deletions example-zowe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,34 @@ zowe:
# ZWED_SSH_PORT: 22
# ZWED_TN3270_PORT: 23

# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# You can define any Zowe message portions to be checked for and the whole message added to the system log
sysMessages:
# # Zowe starting
- "ZWEL0021I"
# # Zowe started
- "ZWEL0018I"
- "ZWEL0006I"
# # Zowe ready to use
- "ZWES1601I"
# # Zowe stopping
- "ZWEL0008I"
# # Zowe stopped
- "ZWEL0022I"
# # Zowe components starting
- "ZWEL0001I"
# # Zowe components stopped
- "ZWEL0002I"
# # API ML components ready
- "ZWEAM000I"
# # App server ready
- "ZWED0031I"
# # ZSS ready
- "ZWES1013I"

# # Not limited to Zowe message ID's
# - "ERROR"

# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# Enable debug mode for zowe launch scripts
launchScript:
Expand Down
10 changes: 9 additions & 1 deletion schemas/zowe-yaml-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
},
"unsafeDisableZosVersionCheck": {
"type": "boolean",
"description": "Used to allow Zowe to warn, instead of error, when running on a version of zOS that this version of Zowe hasn't been verified as working with",
"description": "Used to allow Zowe to warn, instead of error, when running on a version of z/OS that this version of Zowe hasn't been verified as working with",
"default": false
}
}
Expand Down Expand Up @@ -534,6 +534,14 @@
"description": "Customize how Zowe should validate certificates used by components or other services.",
"enum": ["STRICT", "NONSTRICT", "DISABLED"]
},
"sysMessages": {
"type": "array",
"description": "List of Zowe message portions when matched will be additionally logged into the system's log (such as syslog on z/OS). Note: Some messages extremely early in the Zowe lifecycle may not be added to the system's log",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"useConfigmgr": {
"type": "boolean",
"default": false,
Expand Down