Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

sap-btp-cloud-loggingSAP BTP 云日志记录

Agent Skill

sap-btp-cloud-logging 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,699

周安装

73

GitHub Stars

239

下载量

596
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sap-btp-cloud-logging(SAP BTP 云日志记录)
来源仓库:https://github.com/secondsky/sap-skills
仓库路径:skills/sap-btp-cloud-logging
安装命令:
npx skills add https://github.com/secondsky/sap-skills --skill sap-btp-cloud-logging
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/secondsky/sap-skills --skill sap-btp-cloud-logging

简介

用于查找、检索和筛选 SAP BTP 云日志记录相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位资料。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • 可结合原始 README 进一步核验具体用法和功能边界。

SKILL.md

SAP BTP Cloud Logging Skill

Table of Contents

- Prerequisites - Instance Creation Options

- Full Configuration Example

- 1. Cloud Foundry Runtime - 2. Kyma Runtime - 3. OpenTelemetry API (OTLP) - 4. JSON API

- Certificate Validity

- Root CA Rotation (3-Step Process)

- Access - Pre-built Dashboards - Custom Dashboards & Alerting - Index Patterns Summary

- Security Recommendations - SAML Authentication Setup

- Automatic Backups - Restoration Process

- Official Sources - Related Documentation

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

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

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)

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

{
  "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",](https://<tenant>.accounts.ondemand.com/saml2/metadata",)
      "entity_id": "[https://<tenant>.accounts.ondemand.com"](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:

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:

# 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:

curl -X PUT "[https://<ingest-endpoint>/v1/ingest"](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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.06%
按下载量换算191

Claude

29.74%
按下载量换算177

Cursor

20.02%
按下载量换算119

Gemini CLI

10.08%
按下载量换算60

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills