get_audit_logs
Read the LogicMonitor portal audit log to see who did what and when, filtering by user, time, action, configuration changes, logins, or API token activity.
Instructions
Read the portal audit log: call this for who did what and when. kind='all' returns one page of entries, newest first; kind='change' returns the configuration changes (create, update, delete or import, read from each entry's description) found in a pool of the newest entries, with scanned and has_more; kind='login' returns portal sign-ins, sign-outs and failed logins, one query per login wording (up to six calls), with status and method per row, success_only or failed_only, and total as a lower bound while has_more is true; kind='api_token' returns the rows naming an API token, given by access_id or token_id (read to its access ID), keeping only that exact access ID, with event (change, rejected, throttled), path and method per row. username is an exact name or a comma-separated list; action and resource_type (kinds all and change) are whole words the description holds (the portal applies one, the second is matched on the fetched page); start_time and end_time bound the entry time in epoch seconds. System and automation actors (System:*, LogicMonitor Internal, cloud auto-delete) are dropped after the fetch for kinds all and change unless exclude_system is false or a username is given; dropped counts them and paging follows the rows the portal returned. An argument another kind reads is refused. offset plus the rows read must stay within 10,000, and the filter within about 900 characters.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_audit_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | all: every entry; change: configuration changes; login: portal logins; api_token: rows naming an API token | all |
| limit | No | Max results | |
| action | No | Whole words the description holds, e.g. Action=Delete | |
| offset | No | Pagination offset | |
| end_time | No | Only entries at or before this epoch second | |
| token_id | No | With kind api_token: the token's id, read to its access ID | |
| username | No | Exact username, or a comma-separated list | |
| access_id | No | With kind api_token: the token's whole access ID | |
| start_time | No | Only entries at or after this epoch second | |
| change_type | No | With kind change: the change type to keep | |
| failed_only | No | With kind login: failed logins only | |
| success_only | No | With kind login: successful logins only | |
| resource_type | No | Whole words the description holds, e.g. Type=Device | |
| exclude_system | No | Drop system and automation actors (default true) |