Sap Slg1 Lookup
sap_slg1_lookupSearch and read SAP application logs (SLG1) with structured metadata like date, user, object, and message count. Provide a log object to filter; use '*' to query all logs.
Instructions
Search and read SAP application logs from SLG1. USE THIS instead of sap_transaction('SLG1') - faster and returns structured data. Returns log entries with metadata (date, time, user, object, subobject, external ID, message count, log number). Best used when the log object is known (e.g., /SDF/CALM for Cloud ALM, /SDF/AIMAX for AI). Use '*' as object to search all logs. Requires at minimum the 'object' parameter. Returns up to 50 logs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object": "<object>"
},
"name": "sap_slg1_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | Yes | Log object (e.g., '/SDF/CALM', '/SDF/AIMAX', '*' for all) | |
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| to_date | No | End date filter (YYYY-MM-DD format) | |
| agent_id | No | Agent identifier for binding check. Optional. | |
| from_date | No | Start date filter (YYYY-MM-DD format) | |
| subobject | No | Log subobject (optional filter) | |
| external_id | No | External identifier (optional filter) | |
| output_file | No | If provided, write results to this JSON file and return summary. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |