Agents are only as good as the data we give them. We already give ours access to our code, business context, and Jira. So what about debugging and maintenance?
A year ago, when something went wrong, we opened our log dashboard and started searching. Find the error, read the stack trace, map it back to the code, form a hypothesis. That loop cost us hours every week. We do not do that anymore.
Giving your agent access to your logs changes the whole flow. It reads logs faster than any human. And when it also has your code, it does not need you for the chain: find the error, locate it in the code, and in the best case propose the fix.
Here is an example of what it looks like:
You can install the plugin to use the skill pretty easily. Just open Claude Code and run these two commands:
/plugin marketplace add https://github.tools.sap/I757089/sap-cloud-logs.git/plugin install sap-cloud-logs@sap-cloud-logsAfter running these two commands, you need to reload your plugins:
/reload-pluginsBefore you can run the skill, you first need to generate a service key for the SAP Cloud Logging service in SAP BTP.
Open your SAP BTP subaccount and navigate to your SAP Cloud Logging service instance. In the Service Keys section, click Create. In the dialog that appears, enter a name for the service key and click Create.
Once the service key has been created, click its name to open the details dialog and view the credentials. Copy the JSON content and create a file named .sap-cloud-logs in your home directory.
In the file, assign a name to your environment (for example, "dev" for your development system) and paste the JSON credentials as its value:
{
"dev": {
"dashboards-endpoint": "https://dashboards-<id>.cls-XX.cloud.logs.services.euXX.hana.ondemand.com",
"dashboards-username": "your-username",
"dashboards-password": "your-password"
}
}Security note: .sap-cloud-logs contains plaintext credentials. Keep this file private — do not share it, commit it, or store it anywhere others can access.
You can now fetch your logs in Claude Code by simply invoking the skill:
/sap-cloud-logs:sap-cloud-logs Which services in the dev environment have had errors in the last 24 hours?Next time something breaks. let the agent take the first pass. You might be surprised how far it gets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 45 | |
| 19 | |
| 17 | |
| 9 | |
| 9 | |
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |