Artificial Intelligence Blogs Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
Jan-Luksch
Associate
Associate
189

Introduction

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:

Screenshot 2026-07-09 at 16.26.44.png

How to set it up

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-logs

After running these two commands, you need to reload your plugins:

/reload-plugins

Before 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.

3 Comments
_Dimitri_
Product and Topic Expert
Product and Topic Expert
0 Likes

This is a gamechanger when it comes to debugging errors affecting multiple microservices in BTP đźš€

Benny-Goerzig
Associate
Associate

Valid case, but please be careful with credential exposure. Using skills like this can be risky.

Nicklas_Dohrn
Employee
Employee

Hey all,
Please be aware, that this is an experimental approach,
That might give claude or other genAI agents more power than they should have for production systems.
This should, at this point in time, be used for dev only.

Greetings,
Nicklas from the cloud logging team