create_saved_query
Save a LEQL query with a name and description to reuse in InsightIDR. Specify log sets for targeted searching.
Instructions
Save a LEQL query for reuse in InsightIDR
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": {
"name": "<name>",
"leql_statement": "<leql_statement>",
"log_set_ids": "<log_set_ids>"
},
"name": "create_saved_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the saved query | |
| description | No | Description of what this query does | |
| log_set_ids | Yes | Array of log set IDs this query applies to | |
| leql_statement | Yes | LEQL query statement to save |