The CDS plugin for SAP Audit Log service enables Java CAP applications to emit audit log events in a standardized way. It is fully compatible with the Audit Log Event Catalog, ensuring standardized event semantics and compatibility.
You can emit the following types of audit log events:
- Personal Data Access Event
- Personal Data Modification Event
- Configuration Change Event
- Security Event
Official CAP documentation can be found here.
For both local and cloud testing, refer to the cloud-cap-samples-java repository and follow the instructions provided in its README.
For local testing, make sure to create a default-env.json file at the root of your project. This file should contain the following content:
{
"VCAP_SERVICES": {
"application-logs": [
{
"binding_guid": "binding_guid",
"binding_name": null,
"credentials": {},
"instance_guid": "instance_guid",
"instance_name": "cf-logging",
"label": "application-logs",
"name": "cf-logging",
"plan": "lite",
"provider": null,
"syslog_drain_url": null,
"tags": [],
"volume_mounts": []
}
],
"user-provided": [
{
"binding_guid": "binding_guid",
"binding_name": null,
"credentials": {
"url": "als-endpoint",
"region": "als-region",
"namespace": "registered namespace",
"cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----",
"key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----",
"passphrase": "private key pass phrase"
},
"instance_guid": "instance_guid",
"instance_name": "auditlog-ng",
"label": "user-provided",
"name": "auditlog-ng",
"syslog_drain_url": null,
"tags": [
"auditlog-ng"
],
"volume_mounts": []
}
]
},
"VCAP_APPLICATION": {
"application_id": "application_id",
"application_name": "bookshop-srv",
"application_uris": [
"application_uris"
],
"cf_api": "cf_api",
"limits": {
"fds": 32768
},
"name": "bookshop-srv",
"organization_id": "organization_id",
"organization_name": "organization_name",
"space_id": "space_id",
"space_name": "space_name",
"uris": [
"application_uris"
],
"users": null
}
}
This file simulates the Cloud Foundry environment variables required for your application to run locally.
To get your project running, ensure you have the following prerequisites:
- Java 17 or higher installed
- A user-provided service instance for SAP Audit Log service created in your Cloud Foundry space
- The Maven dependency for
cds-feature-auditlog-ng
added to your project
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2025 SAP SE or an SAP affiliate company and cds-feature-auditlog-ng contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.