-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Feature epic details
- For the title of this issue, type: Documentation, Development epic name
- Link to development epic: Provide a way to send Liberty Audit Logs to OpenTelemetry open-liberty#29229
- Target GA release: 25.0.0.3
Operating systems
Does the documentation apply to all operating systems?
- Yes
- No; specify operating systems: ______
Summary
Provide a concise summary of your feature. What is the update, why does it matter, and to whom? What do 80% of target users need to know to be most easily productive using your runtime update?
Liberty Audit logs can now also be collected to OpenTelemetry using the mpTelemetry-2.0 feature, along with the audit-1.0 or audit-2.0 feature, in addition to Open Liberty runtime log sources (messages, traces, ffdcs) and application logs generated via java.util.logging (JUL).
Configuration
List any new or changed properties, parameters, elements, attributes, etc. Include default values and configuration examples where relevant:
To enable the MicroProfile Telemetry 2.0 feature to collect audit logs, add either the audit-1.0 or audit-2.0 feature and the new audit log source to the source attribute for the <mpTelemetry/> server configuration element, as stated in the following configuration to your server.xml:
<featureManager>
<feature>audit-1.0 or audit-2.0</feature>
<feature>mpTelemetry-2.0</feature>
</featureManager>
<mpTelemetry source="audit"/>
- Different audit events that are captured and routed to OpenTelemetry are also configurable, by specifying the relevant audit events and outcomes in the
auditFileHandlerelement, as follows:
<auditFileHandler maxFiles="5" maxFileSize="20" compact="true">
<events name="AuditEvent_1" eventName="SECURITY_AUTHN" outcome="SUCCESS"/>
<events name="AuditEvent_2" eventName="SECURITY_AUTHN" outcome="REDIRECT"/>
<events name="AuditEvent_3" eventName="SECURITY_AUTHN" outcome="FAILURE"/>
<events name="AuditEvent_4" eventName="SECURITY_AUTHZ"/>
</auditFileHandler>
Updates to existing topics
Documentation to be updated: https://openliberty.io/docs/latest/reference/feature/mpTelemetry-2.0.html#logs
- Add the
auditlog source: - Mention that the
audit-1.0/audit-2.0features are required in the server configuration, along with theauditsource in the source list for the audit log events to be collected by OpenTelemetry.
Documentation to be updated: https://openliberty.io/docs/latest/mptel-log-events-list.html
- Add a reference table for audit events, with the correct OTel field mappings, similar to https://openliberty.io/docs/latest/json-log-events-list.html#_supported_audit_events_and_their_audit_data
(Refer to Table A in Slide 12 and the tables in Appendix A (Slides 38 - 55) in the UFO: https://ibm.box.com/s/x5g1f0tl37w7ebujnuwzkn40r1snl0mx)