sn_syslog
Query ServiceNow system logs by severity, source, and time, with pagination or tailing to inspect recent events and diagnose issues.
Instructions
Query ServiceNow system logs (syslog table) with severity, source, and time-based filters. Results ordered newest first, with pagination metadata (record_count, total, has_more, next_offset). To tail: tail=true, then after_cursor=cursor for newer entries, oldest first.
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": {
"profile": "<profile>"
},
"name": "sn_syslog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Start a tail: newest entries plus a cursor | |
| level | No | Filter by severity level: a name (error, warning, info, debug) or the numeric value syslog stores (-1=debug, 0=info, 1=warning, 2=error) | |
| limit | No | Max records (default 25, max 1000) | |
| since | No | Show logs from last N minutes (default 60, max 525600) | |
| fields | No | Fields to return (default: sys_id,level,source,message,sys_created_on) | |
| offset | No | Pagination offset (max 10000) | |
| source | No | Filter by source field (LIKE match) | |
| message | No | Filter message contains text (LIKE match) | |
| profile | Yes | Configured ServiceNow profile name (required; no default fallback). | |
| after_cursor | No | Cursor from the last call. Same level/source/message; since ignored |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| profile | Yes | Configured ServiceNow profile name (required; no default fallback). | |
| metadata | Yes |