Sap Btp Cloud Logging logo

Sap Btp Cloud Logging

Community
secondsky
sap-btp-cloud-logging

This skill provides comprehensive guidance for SAP Cloud Logging service on SAP BTP. Use when setting up Cloud Logging instances, configuring log ingestion from Cloud Foundry or Kyma runtimes, implementing OpenTelemetry observability, analyzing logs/metrics/traces in OpenSearch Dashboards, configuring SAML authentication, managing certificates, or troubleshooting ingestion issues. Covers service plans (dev/standard/large), all 4 instance creation methods (BTP Cockpit, CF CLI, BTP CLI, Service Operator), all 4 ingestion methods (Cloud Foundry, Kyma, OpenTelemetry, JSON API), and security best practices.

Overview

Publishersecondsky
Repositorysap-skills
Skill namesap-btp-cloud-logging
Stars
445
Forks
117
Bundled files
8
LicenseGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by secondsky on GitHub. Read the source before you install it.

Installation

Install the Sap Btp Cloud Logging AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/secondsky/sap-skills.git /tmp/sap-skills
mkdir -p .claude/skills
cp -r /tmp/sap-skills/plugins/sap-btp-cloud-logging/skills/sap-btp-cloud-logging .claude/skills/sap-btp-cloud-logging
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sap Btp Cloud Logging in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sap Btp Cloud Logging on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sap Btp Cloud Logging is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SAP BTP Cloud Logging Skill

Related Skills

  • sap-btp-cloud-platform: Use for BTP subaccount setup, entitlements, and runtime context
  • sap-btp-cloud-identity-services: Use for SAML/IAS authentication and trust configuration
  • sap-btp-developer-guide: Use for application observability patterns across CAP and BTP apps
  • sap-btp-best-practices: Use for production monitoring and operations governance

When to Use This Skill

Use this skill when creating Cloud Logging instances, choosing service plans, configuring Cloud Foundry/Kyma/OpenTelemetry/JSON ingestion, rotating certificates, setting up OpenSearch dashboards, enabling SAML, or troubleshooting missing logs, metrics, traces, or alerts.

Table of Contents

Service Overview

SAP Cloud Logging is an instance-based observability service built on OpenSearch that stores, visualizes, and analyzes application logs, metrics, and traces from SAP BTP Cloud Foundry, Kyma, Kubernetes, and other runtime environments.

Key Capabilities:

  • Ingest logs, metrics, and traces via OpenTelemetry (OTLP) or JSON API
  • Ingest application and request logs from Cloud Foundry runtime
  • Configure data retention (1-90 days)
  • Visualize and analyze data in OpenSearch Dashboards
  • Create custom dashboards and alerts
  • SAML authentication via SAP Identity Authentication Service

Service Plans

PlanCapacityUse CaseAuto-Scaling
dev7.5 GB fixedEvaluation onlyNo
standard75 GB - 375 GBProduction (100 logs/sec)Yes
large750 GB - 3.75 TBProduction (1000 logs/sec)Yes

Important: Plan updates are not supported. Migration requires running instances in parallel.


Quick Start

Prerequisites

  1. SAP BTP Global Account
  2. Subaccount with Cloud Logging entitlement
  3. (Recommended) SAP Cloud Identity Services tenant for SAML authentication

Note for SAP Build Code Users: If using SAP Build Code, follow the SAP Build Code Initial Setup instructions instead. Cloud Logging in SAP Build Code is available for evaluation purposes only.

Instance Creation Options

Choose one method based on your workflow:

Option 1: SAP BTP Cockpit (UI)

  1. Navigate to Subaccount → Instances and Subscriptions → Create
  2. Select cloud-logging service and plan
  3. Configure parameters (see Configuration section)
  4. Create service key for credentials

Option 2: Cloud Foundry CLI

bash
cf create-service cloud-logging standard my-cls-instance -c '{
  "retention_period": 14,
  "backend": { "max_data_nodes": 10 },
  "ingest": { "max_instances": 10 }
}'

# Wait for provisioning
cf services  # Check "last operation" status

# Create service key
cf create-service-key my-cls-instance my-cls-key
cf service-key my-cls-instance my-cls-key

Option 3: SAP BTP CLI

bash
btp create services/instance \
  --subaccount <SUBACCOUNT_ID> \
  --name my-cls-instance \
  --offering-name "cloud-logging" \
  --plan-name standard \
  --parameters '{"retention_period": 14}'

# Create binding
btp create services/binding \
  --subaccount <SUBACCOUNT_ID> \
  --name my-cls-binding \
  --instance-name my-cls-instance

# Get credentials
btp get services/binding --name my-cls-binding --subaccount <SUBACCOUNT_ID>

Option 4: SAP BTP Service Operator (Kubernetes/Kyma)

yaml
apiVersion: services.cloud.sap.com/v1
kind: ServiceInstance
metadata:
  name: cloud-logging-instance
  namespace: sap-cloud-logging-integration
spec:
  serviceOfferingName: cloud-logging
  servicePlanName: standard
  parameters:
    retentionPeriod: 14
---
apiVersion: services.cloud.sap.com/v1
kind: ServiceBinding
metadata:
  name: cls-binding
  namespace: sap-cloud-logging-integration
spec:
  serviceInstanceName: cloud-logging-instance
  secretName: sap-cloud-logging

Configuration Parameters

ParameterTypeDefaultDescription
retention_periodint7Data retention in days (1-90)
backend.max_data_nodesint10Max OpenSearch data nodes (2-10)
dashboards.custom_labelstring-Dashboard identifier (max 20 chars)
ingest.max_instancesint10Max ingest instances for autoscaling (2-10)
ingest.min_instancesint2Min ingest instances (2-10)
ingest_otlp.enabledboolfalseEnable OpenTelemetry Protocol ingestion
feature_flagsarray[]Experimental features (e.g., upgradeToOpenSearchV2)
rotate_root_caboolfalseTrigger CA certificate rotation
samlobject-SAML authentication configuration

Full Configuration Example

json
{
  "retention_period": 14,
  "feature_flags": ["upgradeToOpenSearchV2"],
  "dashboards": {
    "custom_label": "PROD-CLS"
  },
  "backend": {
    "max_data_nodes": 10
  },
  "ingest": {
    "max_instances": 10,
    "min_instances": 2
  },
  "ingest_otlp": {
    "enabled": true
  },
  "saml": {
    "enabled": true,
    "initiated": true,
    "admin_group": "CLS-Admins",
    "roles_key": "groups",
    "idp": {
      "metadata_url": "https://<tenant>.accounts.ondemand.com/saml2/metadata",
      "entity_id": "https://<tenant>.accounts.ondemand.com"
    },
    "sp": {
      "entity_id": "cloud-logging-<instance-id>"
    }
  }
}

Data Ingestion Methods

1. Cloud Foundry Runtime

Bind applications directly to the Cloud Logging instance:

bash
cf bind-service <app-name> <cls-instance>

Index Patterns:

  • logs-cfsyslog-* - Application logs
  • metrics-otel-v1-* - Resource metrics

For user-provided services with mTLS, see references/cf-ingestion.md.

2. Kyma Runtime

Requires telemetry and btp-operator modules enabled:

bash
# Create namespace
kubectl create namespace sap-cloud-logging-integration

# Deploy ServiceInstance and ServiceBinding (see templates above)
kubectl apply -n sap-cloud-logging-integration -f cls-instance.yaml

Index Patterns:

  • logs-json-istio-envoy-kyma* - Istio access logs
  • logs-json-kyma* - Application logs

3. OpenTelemetry API (OTLP)

Enable with ingest_otlp.enabled: true, then configure your application:

Service Key Credentials:

  • ingest-otlp-endpoint - gRPC endpoint (hostname:443)
  • ingest-otlp-cert - Client certificate (PEM)
  • ingest-otlp-key - Private key (PKCS#8)
  • server-ca - Server CA certificate

Index Patterns:

  • logs-otel-v1-* - Logs
  • metrics-otel-v1-* - Metrics
  • otel-v1-apm-span-* - Traces
  • otel-v1-apm-service-map - Service map

Note: Only gRPC protocol supported. Use OpenTelemetry Collector to convert http/protobuf or http/json.

For Java/Node.js automation libraries, see references/opentelemetry-ingestion.md.

4. JSON API

Send logs via HTTP with mTLS:

bash
curl -X PUT "https://<ingest-endpoint>/v1/ingest" \
  --cert client.crt --key client.key \
  -H "Content-Type: application/json" \
  -d '[{"msg": "log message", "date": "2025-01-15T10:30:00Z"}]'

Index Pattern: logs-json-*

For Fluent Bit configuration, see references/json-api-ingestion.md.


Certificate Management

Certificate Validity

  • Default: 90 days
  • Configurable: 1-180 days via certValidityDays in binding parameters

Root CA Rotation (3-Step Process)

CAUTION: Not following this process causes ingestion interruption.

  1. Create new CA: Update instance with "rotate_root_ca": true
  2. Rebind all applications: Create new bindings for each shipping mechanism
  3. Delete old CA: Update instance with "rotate_root_ca": false

OpenSearch Dashboards

Access

  1. Create service binding/key
  2. Navigate to dashboards-url from credentials
  3. Authenticate (SAML or basic auth)

Pre-built Dashboards

  • Cloud Foundry application performance
  • Request latency and error rates
  • Resource utilization metrics

Custom Dashboards & Alerting

  • Create custom dashboards for specific analysis needs
  • Configure alerting based on observability data
  • Integrate with SAP Alert Notification for SAP BTP for advanced alerting workflows

Index Patterns Summary

SourceIndex Pattern
CF Logslogs-cfsyslog-*
CF Metricsmetrics-otel-v1-*
OTLP Logslogs-otel-v1-*
OTLP Metricsmetrics-otel-v1-*
OTLP Tracesotel-v1-apm-span-*
JSON APIlogs-json-*
Kyma Appslogs-json-kyma*
Kyma Istiologs-json-istio-envoy-kyma*

Note: Attribute names use @ instead of . due to OpenSearch/Lucene limitations.


Security Best Practices

Security Recommendations

  • BTP-CLS-0001: Configure SAML authentication with Identity Authentication Service (critical)
  • BTP-CLS-0002: Rotate service keys regularly; deletion doesn't automatically invalidate credentials
  • BTP-CLS-0003: Review Kyma runtime and JSON API security configuration

Note: Only BTP-CLS-0001 (critical level) is currently reported to SAP Cloud ALM. Other recommendations must be manually verified.

SAML Authentication Setup

  1. Create SAML 2.0 application in SAP Identity Authentication
  2. Configure "groups" attribute from Identity Directory
  3. Set Name ID Format to "E-mail"
  4. Enable request signing (recommended)
  5. Configure saml parameters in instance configuration
  6. The admin_group maps to all_access role

See references/saml-authentication.md for detailed setup.


Backup & Recovery

Automatic Backups

Backed up: OpenSearch settings, roles, role mappings, tenants, groups, security configs, saved objects, ISM policies Not backed up: Alerts

Restoration Process

Create SAP support ticket with component BC-CP-CLS including:

  1. Dashboard URL
  2. Instance configuration
  3. Deprovisioning timestamp
  4. Target restoration date (max 7 days)
  5. Owner information
  6. Business justification

Common Issues & Troubleshooting

Instance Creation Fails

  • Verify entitlement in subaccount
  • Check service plan availability in region
  • Validate JSON configuration syntax

Ingestion Not Working

  • Verify binding credentials are current (check certificate expiry)
  • For CF: Binding takes effect without restaging
  • For OTLP: Ensure ingest_otlp.enabled: true
  • Check network connectivity to ingest endpoint

Dashboard Access Issues

  • Verify SAML configuration if enabled
  • Check user is in configured admin group
  • Validate IdP metadata URL accessibility

Certificate Expiration

  • Default validity: 90 days
  • Create new binding before expiration
  • Consider root CA rotation if widespread

Reference Files

For detailed information, see bundled reference files:

Configuration & Setup

  • references/service-plans.md (183 lines) - Service plans comparison and capacity planning
  • references/configuration-parameters.md (270 lines) - Complete parameter reference with examples

Ingestion Methods

  • references/cf-ingestion.md (211 lines) - Cloud Foundry ingestion details
  • references/kyma-ingestion.md (293 lines) - Kyma runtime integration
  • references/opentelemetry-ingestion.md (363 lines) - OTLP setup with Java/Node.js automation
  • references/json-api-ingestion.md (435 lines) - JSON API and Fluent Bit configuration

Security & Authentication

  • references/saml-authentication.md (329 lines) - SAML setup with Identity Authentication Service

Documentation Links

Official Sources

Bundled Resources

Reference Documentation

  • references/cf-ingestion.md - Cloud Foundry runtime ingestion guide
  • references/kyma-ingestion.md - Kyma/Cloud Foundry Kyma runtime ingestion
  • references/opentelemetry-ingestion.md - OpenTelemetry data ingestion
  • references/json-api-ingestion.md - JSON API ingestion methods
  • references/saml-authentication.md - SAML authentication configuration
  • references/service-plans.md - Service plans comparison and selection

Related Documentation


Data Protection Notice

SAP Cloud Logging is not designed for personal or business-critical data. Take measures to prevent transmission of such data. Data is stored regionally but physical data center locations may differ from consumption locations within the same region.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sap Btp Cloud Logging AI skill do?

This skill provides comprehensive guidance for SAP Cloud Logging service on SAP BTP. Use when setting up Cloud Logging instances, configuring log ingestion from Cloud Foundry or Kyma runtimes, implementing OpenTelemetry observability, analyzing logs/metrics/traces in OpenSearch Dashboards, configuring SAML authentication, managing certificates, or troubleshooting ingestion issues. Covers service plans (dev/standard/large), all 4 instance creation methods (BTP Cockpit, CF CLI, BTP CLI, Service Operator), all 4 ingestion methods (Cloud Foundry, Kyma, OpenTelemetry, JSON API), and security bes...

Why use Sap Btp Cloud Logging on TypingMind?

Because you install it once and use it with any model. Sap Btp Cloud Logging is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sap Btp Cloud Logging in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/secondsky/sap-skills/tree/main/plugins/sap-btp-cloud-logging/skills/sap-btp-cloud-logging. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sap Btp Cloud Logging?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sap Btp Cloud Logging?

As many as you like. As long as a model supports skills, you can use Sap Btp Cloud Logging with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sap Btp Cloud Logging AI skill free?

Yes. It is published on GitHub by secondsky under the GPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇