getQueryLog
Retrieve DNS query logs for a selected period, then filter by domain, device, status, or category and paginate results to inspect activity.
Instructions
Gets query log
Returns the query log for the specified time period. Use filters to narrow the result set and cursor to paginate through the results. The log contains DNS query records with filtering, device, and domain information.
Calls GET /oapi/v1/query_log.
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": "getQueryLog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Pagination limit (default: 20) | |
| cursor | No | Pagination cursor from previous response | |
| search | No | Filter by domain name | |
| devices | No | Filter by devices | |
| statuses | No | Filter by statuses | |
| timespan | No | Query log timespan (has greater priority over explicitly provided millis) | |
| companies | No | Filter by companies | |
| countries | No | Filter by countries | |
| categories | No | Filter by categories | |
| dns_servers | No | Filter by DNS servers | |
| X_Account_Id | No | Optional ID of the account to operate on. Defaults to the authenticated user's own account. Use GET /oapi/v1/accounts to list available accounts. | |
| time_to_millis | No | Time to in milliseconds (inclusive), required if `timespan` is not specified | |
| time_from_millis | No | Time from in milliseconds (inclusive), required if `timespan` is not specified |