Skip to main content

Agent logs

Agent logs shows structured events sent by SaaS pull connectors. Use it to diagnose installation, configuration pull, heartbeat, SAP extraction, Elastic writes, and managed upgrades without logging into the host.

Remote logs are best-effort: if a log write fails, the agent does not block SAP extraction or heartbeat. Retention is short and intended for recent troubleshooting.

Agent logs in Tenant console
Agent logs can be filtered by range, connector, level, host, event, and text.

Filters​

FilterUse
Time rangeDefaults to the last 15 minutes; use wider ranges for upgrades or closed incidents
ConnectorIsolates one runtime when the tenant has several agents
Levelinfo, warn, or error; start with error when a connector is NOK
HostnameFilters by host reported by the agent; use sanitized names in external reports
EventSearches concrete events such as config.pull.failed, sap.extraction.failed, or upgrade.verify_failed
SearchFree-text search across message and main fields
Page sizeAdjusts rows per page

The table shows Time, Level, Connector, Host, Event, and Message. Expanding a row shows the full event JSON. Do not paste complete outputs into tickets when they contain internal paths, hostnames, or identifiers; share only the relevant sanitized fragment.

Important Events​

Event FamilyMeaningNext Check
config.pull.started / config.pull.succeededThe agent is requesting SaaS configurationCheck Config in Connectors if the applied revision does not move
config.pull.not_modifiedLocal revision already matches SaaSNormal when SAP connections or upgrades did not change
config.pull.failedThe agent cannot fetch configurationOutbound HTTPS, local credential, re-enrollment
heartbeat.sent / heartbeat.failedConnector liveness; heartbeat.sent is logged at start, when status or applied configuration changes and otherwise hourly; heartbeat.failed alwaysIf it fails, review network and control plane access
sap.extraction.started / sap.extraction.succeededSAP extraction is running or completeCross-check Metrics and Operations
sap.extraction.failedRFC, SAP permissions, or data availability issueReview technical user, ASHOST, SYSNR, and enabled family
sap.collection.schedule.completedActual phase and duration for each source/family; logged at start, when a run starts 60 s or more late, skips cycles, runs longer than its interval, changes status or fails, and otherwise hourly. A partial Jobs or RFC failures run is always loggedCompare scheduled_at, start_delay_ms, duration_ms, and skipped_cycles; on a partial run, ledger_outcome, catching_up, and backlog_seconds (Jobs) or truncated_tables (RFC failures). For IDocs, when the previous run was busy and ended past its slot, the next run can start up to one interval late on purpose to continue the pending work: that start_delay_ms does not mean a delayed scheduler, and that slot is not counted in skipped_cycles
sap.jobs.ledger.negotiationHow Jobs read each pass of the cycle; a partial cycle adds outcome=partial, stop_reason=budget_exhausted, catching_up, backlog_seconds, and budget_msWith resumed=true the cycle continues saved progress; backlog_seconds should decrease from cycle to cycle
sap.rfc_failures.truncatedWarning: the RFC failures read of one table was limited in this cycle (reason row_cap or budget_exhausted, row_cap, rows_read)Reduce the failure backlog in SAP; meanwhile the subcapability is partial and no recoveries are reported
sap.programs.progressConfirmed Programs coverage by source; logged when the state changes, when the lag crosses 10 minutes, on failure, or at most once per hourCompare coveredThrough, lagSeconds, pendingWindows, and state across observations
sap.programs.cycle.summarySummary of each Programs run: leaves, outcomes, maximum duration and phasesSlow, failed, rejected or deadline leaves, the first leaf after start and retries are also logged one by one as sap.programs.leaf.completed; failures and last_error summarize failures
sap.collection.degraded / sap.collection.recoveredA family becomes partial or is supported againAn unchanged partial state repeats at most once per hour; errors are logged every cycle
sap.connection.session_lostWarning: the SAP server ended the RFC session of a connection (source_id, rfc_code and, where applicable, close_failed); usually caused by an ABAP short dump or a network cut. The connector drops that connection and opens a replacement in the next cycleIf it repeats with rfc_code RFC_ABAP_RUNTIME_FAILURE, check ST22 for the connector's RFC user and restore its authorizations; no connector restart is needed
sap.idoc.document.quarantinedWarning: an IDoc with a status code that the SAP status catalog cannot confirm, or that SAP returns inconsistently in two consecutive reads (reason=unreadable_document), stays out of the evidence and IDoc coverage is marked as possibly incomplete; it is retried automatically. So does an IDoc with more than about 14,900 retained statuses (reason=history_too_large) or one that makes no progress in three consecutive attempts (reason=no_progress); neither of these two is read again until its header changes, and it is then retried once. An older reconciliation whose only gaps are IDocs set aside this way, or for a status code the verified catalog does not contain, counts as reconciled with an explicit gap and its coverage stays gap possible. For a status code it carries lane, reason, row_table, field_name, value_shape, catalog_state and source_id; with reason=unreadable_document, history_too_large or no_progress only lane, reason and source_id; never IDoc numbers or SAP valuesCheck that the connector's technical user reads the status catalog; ask BASIS if the code is custom or if the IDoc's status history is very large. With no_progress, also review the load of the connector host and of the data target. Other documents are not affected
sap.idoc.staging.limitpaused when the local IDoc workspace reaches its limit (1 GiB or 32768 files) and resumed when it drops below 90%, with staged_bytes, staged_files, limit_bytes and limit_files. Only IDocs pauses; other collections continueCheck disk space on the connector host; it does not resume until usage is below 90%, and confirmed coverage is kept
sap.idoc.staging.retired_limitpaused when finished or discarded IDoc work that the connector is still releasing reaches 4 GiB or 131072 files, and resumed when it drops below 90%, with retired_bytes, retired_files, limit_bytes and limit_files. Only IDocs pauses; the connector keeps releasing that spaceUsually none; it resumes on its own. If it does not, check disk space on the connector host and contact support
sap.idoc.staging.residueinfo when the connector automatically releases old leftovers of IDoc work it no longer uses (for example, after an upgrade), with trigger (binding_transition or staging_limit), residue_files, residue_bytes and skipped_entries. Those leftovers do not count toward the limit and do not pause IDocsNone; informational
sap.idoc.binding.transitionA change to the SAP connection configuration affects IDoc coverage: change_class (session, time_zone, connection_target, export_target or multiple), coverage_action, pending and abandoned_passessession keeps coverage; time_zone restarts the recent 24 hours; connection_target and export_target restart it and discard pending items. Wait for the new coverage to be confirmed
elastic.bulk.succeeded / elastic.bulk.failedWrite to the tenant targetIf it fails, review ingest connectivity and tenant target
upgrade.*Download, verification, installation, and restart phasesCross-check Request upgrade in Connectors

Diagnosis by Symptom​

SymptomRecommended FilterReading
Connector PendingConnector + last 30 minutesIf no logs appear, the agent did not start or did not enroll
Connector StaleConnector + heartbeat.failed or any recent eventNo events at all (including config.pull.*, every 5 minutes) means the process stopped; review user service or outbound HTTPS
Config not appliedConnector + config.pullIf pull fails, re-enroll or review connectivity
Empty dashboardsConnector + sap.extraction and elastic.bulkSeparates SAP failure, write failure, or simply no data in range
Programs behindConnector + sap.programs.progressCompare confirmed coverage with the current time; a newly received document can cover old history
Failed upgradeConnector + upgradeValidate checksum/signature, disk space, and supervisor

Cadence and resources​

Observed/@timestamp is SAP time, ingested_at is receipt time, and chart axes show bucket starts. Use all four signals when diagnosing lag. Missed cycles are coalesced and do not form a queue.

The heartbeat exposes allowlisted aggregate RSS/PSS, heap/GC/cgo, goroutine, thread, dispatcher, RFC, row, document, and byte counters. Derive CPU between two process_cpu_time_ns values; one cumulative value is not a percentage. For IDocs it includes how many older reconciliations finished complete (idoc_older_passes_confirmed_total), how many count as reconciled, complete or with an explicit gap (idoc_older_passes_reconciled_total), how many IDocs were set aside in the last of them (idoc_older_last_pass_quarantined_documents), and how many IDocs are still quarantined in total (idoc_quarantined_documents); these are aggregate counts without IDoc numbers. The total can be higher than the count of the last reconciliation: a set-aside IDoc whose status is already a confirmed success no longer counts as a gap, but it stays quarantined.

For Programs, coveredThrough and lagSeconds reflect only coverage confirmed by acknowledgement; windowSeconds shows leaf width and pendingWindows pending leaves. current means lag is at most the configured interval plus 120 seconds; catching_up means recovery, and backoff means waiting after a failure. Before the first confirmed cursor, freshness is unknown and coverage and state fields may be absent. Compare successive events: recent receipt alone does not prove Programs is current.

Jobs changes while being read​

SAP does not provide a stable snapshot for paginating TBTCO. The connector verifies every complete pass before publishing data. If jobs change between pages, the Jobs cycle ends with a sanitized error, publishes no incomplete view, and does not advance its cursor; the next stable cycle reads again from the beginning. An interruption between a page and its confirmed progress also cannot mix old and new runs. An isolated occurrence can coincide with normal batch activity. If it repeats, review extraction duration, SAP load, and read permissions before increasing intervals or limits.

For tables larger than 500 rows, the connector agrees on one SAP ordering mode before publishing the first page. A repeated ROWSKIPS or ordering message means that family did not complete its cycle: check Job Runs or RFC failures freshness separately, because a healthy aggregate Jobs snapshot does not prove that those paged lists completed.

The connector collects the complete Job Log for each terminal execution through the standard BAPI. When collection starts more than 3 hours behind (first collection or a long outage), while the catch-up lasts only executions that ended in the last hour before each cycle's cutoff are queued; that hour moves with every cycle, and imported history shows the execution without a Job Log. Collection is asynchronous and does not block the job_runs cursor or the long-running jobs snapshot. Because SAP does not paginate this response, a large read may temporarily increase agent memory use. In the detail, check the manifest: complete or empty are confirmed outcomes; retrying, too_large, unauthorized, unavailable, or error explains why the log is not available yet. SPOT never interprets a partial collection as a complete or empty log.

Large systems: catch-up in slices​

On a large SAP system, the first Jobs collection (24 hours of history) or the catch-up after an outage of several hours does not fit into a single cycle. The connector splits it into slices that do fit: each cycle finishes in time with status partial (not an error), saves its progress, and the next cycle continues (resumed=true). backlog_seconds shows how much history is still missing; once it reaches the present, Jobs returns to supported and to its normal cost. A partial cycle normally ends cleanly before the deadline and leaves the connection reusable; a single call much slower than the previous ones can still hit the deadline. If backlog_seconds does not decrease for several cycles, check SAP load and call duration before changing intervals.

RFC failures reads at most the first 5,000 failures of each table (ARFCSSTATE, TRFCQOUT) per cycle, always in the same order. With a larger backlog, or when the cycle runs out of time, sap.rfc_failures.truncated appears, the affected subcapability is partial, known failures stay active, and none is reported as recovered. Failures outside that prefix are not visible until the backlog shrinks. Exactly 5,000 failures is a complete read.

SAP returns an incomplete structure​

Required RFC failures, qRFC, and Certificates tables/lists are validated before publication. If SAP omits a structure, returns an incompatible shape, or stops an enumeration early, the cycle ends with a sanitized error and retains the latest confirmed state. It is not interpreted as zero, an empty list, a removal, or a recovery. An explicitly empty result with the correct structure remains valid.

For Certificates, an empty discovery list does not prevent probing canonical PSE contexts. When one exists, the inventory is published; insufficient permissions, malformed structures, and other RFC errors still fail closed.

A SAP connection loses its session​

sap.connection.session_lost means the SAP server ended the RFC session of one of the connector's connections, for example because of an ABAP short dump or a network cut. The connector does not reuse that connection: it drops it and opens a replacement in the next cycle, without restarting the service. The event carries source_id and rfc_code (RFC_ABAP_RUNTIME_FAILURE, RFC_COMMUNICATION_FAILURE, RFC_CLOSED or RFC_INVALID_HANDLE), never the SAP message text. An isolated loss needs no action. If it repeats with RFC_ABAP_RUNTIME_FAILURE, see On-premise troubleshooting.

CCMS alerts without SAP text​

A CCMS alert may contain a valid identity, timestamp, and value while SAP omits its explanatory text. The connector does not discard the cycle: it publishes a stable operational message and marks its source as a fallback. Do not confuse this with an RFC failure. A real authorization error, a corrupt response, or a missing required value still leaves the collection in error and does not advance its watermark.

Extraction diagnostics distinguish eligible nodes, alert candidates, emitted events, message fallbacks, and real failures. The eligible-node count therefore does not represent the number of missing messages.

Relation to Local Logs​

The host keeps local logs at:

$HOME/spot-agent-saas/log/spot-agent-sap.log

Use remote logs for normal diagnosis from SPOT. Log into the host only when you need to validate systemd --user, linger, file permissions, or local connectivity.