btp-cloud-logging
Skill1 starsChanged 4 months agoMITView on GitHub
SAP BTP Cloud Logging — OpenSearch-based centralized logging with structured logs, correlation IDs, Kibana dashboards, and retention management.
In this repository413 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .cursor/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sap-router-skillCopilot instructions
- .cursor/rules/sap-router.mdcCursor rule
- abap-cloud-migrationSkill
- abap-cloudSkill
- abap-code-patternsSkill
- abap-code-reviewSkill
- abap-docs-referenceSkill
- abapgitSkill
- abapSkill
- abap-snippetSkill
- abap-sql-amdpSkill
- abap-system-infoSkill
- abap-unit-testingSkill
- arc-1-skillsSkill
- atc-cloudificationSkill
- authorization-iamSkill
- automation-pilot-catalog-explorerSkill
- automation-pilot-command-generationSkill
- automation-pilot-command-reviewSkill
- automation-pilot-content-management-via-apiSkill
- automation-pilot-debuggerSkill
- automation-pilot-executions-apiSkill
- automation-pilot-executor-executescriptSkill
- automation-pilot-executor-httprequestSkill
- automation-pilot-mcp-server-generationSkill
- automation-pilot-scheduled-executions-apiSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-best-practicesSkill
- btp-build-work-zoneSkill
- btp-business-application-studioSkill
- btp-ciasSkill
- btp-cloud-foundrySkill
- btp-cloud-identitySkill
- btp-cloud-platformSkill
- btp-cloud-transport-managementSkill
- btp-connectivitySkill
- btp-developer-guideSkill
- btp-diagram-generatorSkill
- btp-integration-suiteSkill
- btp-job-schedulingSkill
- btp-master-data-integrationSkill
- btp-service-managerSkill
- cap-add-remote-serviceSkill
- cap-developerSkill
- cap-triviaSkill
- capture-answerSkill
- cap-upgradeSkill
- cds-view-entitiesSkill
- claude-abap-skillsSkill
- claude-memSkill
- clean-abapSkill
- context-modeSkill
- cpi-iflow-developmentSkill
- engine-cap-developmentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Verify the binding appears in VCAP_SERVICES:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SAP BTP Cloud Logging
Centralized observability on SAP BTP powered by OpenSearch + Kibana dashboards.
Prerequisites
- CF CLI logged in to target space
- An app deployed on SAP BTP (CAP/Node.js/Python/Java)
- Cloud Logging entitlement assigned to the subaccount (Lite/Standard/Enterprise)
1. Create Service Instance and Bind
cf create-service cloud-logging standard my-logging
cf bind-service my-app my-logging
cf restage my-appVerify the binding appears in VCAP_SERVICES:
cf env my-app | grep -A 20 cloud-logging2. Structured Logging (CAP / Node.js)
const cds = require('@sap/cds')
const LOG = cds.log('procurement')
LOG.info('Order created', { orderId: 'ORD123', userId: 'USER1', duration: 245 })
LOG.error('BAPI call failed', new Error('Connection timeout'))Log entries appear in OpenSearch with fields: correlation_id, component, level, message, custom_fields.
3. OpenTelemetry Tracing
const { trace } = require('@opentelemetry/api')
const tracer = trace.getTracer('procurement-service')
async function processOrder(orderId) {
const span = tracer.startSpan('processOrder')
span.setAttribute('order.id', orderId)
try {
await callBapi(orderId)
span.setStatus({ code: trace.SpanStatusCode.OK })
} catch (e) {
span.setStatus({ code: trace.SpanStatusCode.ERROR, message: e.message })
span.recordException(e)
} finally {
span.end()
}
}4. Python Integration
import logging
from sap_cloud_logging import CloudLoggingHandler
logger = logging.getLogger('my-btp-app')
handler = CloudLoggingHandler(
component='procurement',
correlation_id=request.headers.get('X-Correlation-ID')
)
logger.addHandler(handler)
logger.info('Processing batch', extra={'batch_size': 1000})5. Kibana Query Examples
# Errors for a specific order
component:"procurement" AND level:"error" AND custom_fields.orderId:"ORD123"
# Slow requests over 5 seconds
response_time:>5000
# All activity by user in last 24h
custom_fields.userId:"USER1" AND @timestamp:>now-24h6. Retention Plans
- Lite — 7 days, 500 MB/day
- Standard — 14 days, 10 GB/day
- Enterprise — 30 days, 100 GB/day
Pitfalls
- Logs not appearing immediately
- Cause: Ingestion delay of up to 2 minutes is expected.
- Solution: Wait and refresh Kibana. Do not assume logging is broken.
- Free tier logs silently dropped
- Cause: Lite plan has a 500 MB/day hard cap; exceeding it drops logs without error.
- Solution: Upgrade to Standard plan or reduce log volume via level filters.
- Correlation ID missing across services
- Cause:
X-Correlation-IDheader is not propagated between service calls. - Solution: Forward the header in every HTTP call; use CAP middleware or OTel context propagation.
- Cause:
- Inconsistent component names
- Cause: Different instances log under different component names, making Kibana filters unreliable.
- Solution: Standardize component naming (e.g.,
procurement,fulfillment) across all instances.
- Logs are immutable
- Cause: OpenSearch indexes are append-only after ingestion.
- Solution: Cannot modify or delete — design log content carefully before emitting.
Verification
# Confirm service instance is created
cf services | grep my-logging
# Confirm binding exists
cf services | grep my-app
# Check app logs are flowing (from app side)
cf logs my-app --recent | grep "procurement"
# Open Kibana dashboard from BTP Cockpit:
# Subaccount → Instances → my-logging → Open Dashboard
# Run: component:"procurement" AND level:"info"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

