SAP HANA
The SAP HANA source collects logs from an SAP HANA database. It reads the database's trace and diagnostic files from the collector host's filesystem, optionally parses each record into structured fields, and forwards them through your pipeline. Collection is file-based: the collector tails the configured trace file paths. No connection to the database is required.
Supported Telemetry Types
Linux
✓
Windows
✓
macOS
✓
Prerequisites
An SAP HANA database that is writing trace and diagnostic files to disk. By default these are written to
/usr/sap/<SID>/HDB<instance>/<host>/trace/on the database host. See Diagnostic Files and Logs in the SAP HANA Platform documentation. Configuring or enabling individual traces requires theTRACE ADMINsystem privilege.A collector installed on the SAP HANA host (or a host with access to the trace files) with read permission on the configured log path(s). The trace directory and its files are typically owned by the
<sid>admoperating-system user, so run the collector as a user that can read them.The trace file path(s) for your instance. The default
/usr/sap/*/HDB*/*/trace/*.trcglob matches a standard single-tenant layout. Tenant databases write to aDB_<database_name>subdirectory, so adjust the path for multitenant systems.
Configuration

Logs
Log Path(s)
Strings
Yes
/usr/sap/*/HDB*/*/trace/*.trc
File paths to logs. Supports glob patterns. Add one or more paths to match the trace files for your instance.
Advanced
Timezone
Timezone
No
UTC
The timezone to use when parsing timestamps.
Start At
Enum: beginning, end
No
end
Start reading logs from the beginning or end of each file. Use beginning to ingest existing content on first run.
Parse
Boolean
No
true
Parses the log fields into structured data. When disabled, records are forwarded as raw lines.
Examples
Collect trace logs from a single-tenant instance
Read the default trace files, parse them into structured fields, and only ingest new entries written after the collector starts.
Backfill existing logs from a tenant database
Point at a tenant database's trace subdirectory and read existing content from the beginning of each file.
Configuration Tips
The default path glob targets a standard single-tenant layout. For multitenant systems, add a path that includes the
DB_<database_name>subdirectory for each tenant you want to collect.Leave Start At on
endfor steady-state collection to avoid re-ingesting historical files. Set it tobeginningonly for an initial backfill, then revert.Set Timezone to match the timezone the database host writes into its trace timestamps so parsed timestamps are accurate.
Troubleshooting
No logs are collected
Symptoms: the source is configured but no log records flow.
Solutions:
Confirm the configured path(s) match real
.trcfiles on the collector host. Verify the glob resolves to actual files for your SID, instance, and host.Confirm the collector's operating-system user has read permission on the trace directory and files. They are typically owned by
<sid>adm.If you expect existing content, set Start At to
beginning. Withend, only new lines written after the collector starts are read.
Timestamps are off by hours
Symptoms: parsed log timestamps are shifted from the actual event time.
Solutions:
Set Timezone to the timezone the SAP HANA host uses when writing trace timestamps.
Confirm Parse is enabled. With Parse disabled, records are forwarded as raw lines and timestamps are not extracted.
Standalone Source
Related Resources
Last updated
Was this helpful?